I Have read the soundcloud documentation, It doesn't say much on searching for a track on soundcloud. So far in my app i can get, list and search all track of a user but i cant search all of soundcloud tracks(tracks by all soundcloud users).
Thou i have seen this but don't know how to use it:
$ curl "http://api.soundcloud.com/tracks/13158665.json?client_id=YOUR_CLIENT_ID"
I got the above from
http://developers.soundcloud.com/docs/api/reference#tracks
Please how do i use this ?
Use the /tracks endpoint with the q & other parameters.
Example search:
Format JSON / Search for "Berlin" / Genres: Techno
http://api.soundcloud.com/tracks?client_id=YOURCLIENTID&q=berlin&format=json&genres=techno
Related
I want to get the timeline post of the other user using weibo api but not getting.weibo API. I am using few API Call like user_timeline,trends but not getting any proper data. please, let me know if I missing any API or any settings in App. I have appKey, secret key and redirect url.
As far as I can tell, the API calls that would get you this info have all been restricted. The English documentation is not updated, but the chinese documentation specifies for example that you can only use User_timeline to get your own timeline, not others.
http://open.weibo.com/wiki/2/statuses/user_timeline
接口升级后:uid与screen_name只能为当前授权用户
At least a year ago, if I go to
http://gdata.youtube.com/feeds/api/videos?v=2&max-results=1&q=intitle:"Relapse"+intitle:"Eminem"&orderby=viewCount
from FireFox browser, I could the list of video titles that meet the search query in this address.
But now it doesn't work.
Has it been deprecated?
#user3123767 The YouTube Data API (v2) has been officially deprecated as of March 4, 2014. Please refer to our deprecation policy for more information. Please use the YouTube Data API (v3) for new integrations and migrate applications still using the v2 API to the v3 API as well. Ref
All calls to Google APIs now require that you send Your Api Key, which you can obtain one from Here
Once you got your API Key You can Make various calls
For example Search for videos using the key word "Hollywood"
Run this code and see the result in console
(function($){
function SearchYouTube(queryToSearch,pageToken,ApiKey,maxResults){
var
YoutubeUrl="https://www.googleapis.com/youtube/v3/",
pageToken=pageToken,
maxResults=maxResults,
ApiKey=ApiKey,
$.get(YoutubeUrl+"search?q="+queryToSearch,{
part : 'snippet',
pageToken:pageToken,
key:ApiKey,
maxResults:maxResults
},
function(data) {
//let check if request is granted with our Api Key
if(!data.items[0]){console.log("System Configuration Error");}
//If request granted okay
var
videoId=data.items[0].id.videoId,
videoImgUrl=data.items[0].snippet.thumbnails.high.url,//medium | default | high
videoTile=data.items[0].snippet.title,
nextPageToken=data.items[0].nextPageToken;// Useful if you want the next set of datas
//Display data on page here if you want
//See console Log of results that you can use
console.log(data);//Dump data
}//Success
);
}
//Usage
SearchYouTube("Hollywood","","xxx Your Api Key xxx",5);
//==================All Closed==========
})(jQuery);
See Working Sample Here
could be a few reasons.
YouTube API v2.0 is deprecated not sure if it totally down now or not.
All calls to Google APIs now I think require that you send a at the very least a public API key. I just tested the following
http://gdata.youtube.com/feeds/api/videos?q=skateboarding+dog&start-index=21&max-results=10&v=2&key=[api
key]
It returned
This webpage is not available
I think I am going to have to say that its not working anymore you should try and use YouTube API v3 instead.
I've been trying to figure this out for quite some time now. I am trying to Display most recently uploaded video from a specific user. First I tried doing It with most_recent (https://gdata.youtube.com/feeds/api/standardfeeds/GB/most_recent) etc.., but I soon realized that It is only able to get most recent video from a specific country, not user specific like I want. So the question is, what IS The url to get to user specific latest upload? All the google's pages about their API didn't mention a word about it(or I'm blind)
Pages I've read:
https://developers.google.com/youtube/2.0/reference?csw=1
https://developers.google.com/youtube/2.0/developers_guide_protocol#Standard_feeds
Getting most recent youtube video links for a user using API
https://developers.google.com/youtube/2.0/developers_guide_protocol_video_feeds
I suggest to use Data API v3 instead of GData since it's the supported API. Support and new features will only come to Data API v3.
The way to do in v3 is, you first do a channels->list with part=contentDetails and mine=true to get authorized user's channel or id=USERS_CHANNEL_ID or forUsername = USERS_USERNAME
like GET https://www.googleapis.com/youtube/v3/channels?part=contentDetails&mine=true&key={YOUR_API_KEY}
in the response you get uploads playlist id and put it into playlistItems->list call in "id" parameter
GET https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&id={ID}&key={YOUR_API_KEY}
Uploads playlist is in order, so first result is the most recent upload. If you just want that result, in the call you can set maxResults=1
If you want to use api version 2 instead of 3: Here is the documentation link:
https://developers.google.com/youtube/2.0/developers_guide_protocol_video_feeds#User_Uploaded_Videos
The url to use is:
https://gdata.youtube.com/feeds/api/users/userId/uploads
;Where you replace userId, with the id of the specific user.
Use: https://gdata.youtube.com/feeds/api/users/userId/uploads?max-results=1 , if only 1 result is needed.
I am trying to get all the playlist feed URLs from the YouTube channel in my iOS application.
Below is the URL to get the XML data consists of the required contents.
https://gdata.youtube.com/feeds/api/users/thenewboston/playlists?v=2
This is working fine, which results in the response of an XML with data.
But when I change this to my username nothing is retrieved. I have couple of playlists in my channel.
My Attempts:
Attempt 1:
I have googled and cross checked my channel's privacy settings which is Public in default.
Am I making any wrong? Please let me know your comments.
Attempt 2:
When I try like this in browser, http://www.youtube.com/user/myusername
getting "This channel is not available at the moment. Please try again later.".
The same url is working fine for thenewboston.
Try this
https://gdata.youtube.com/feeds/api/videos?v=2&author=USER_NAME&orderby=published
This will fetch all the user videos.
I have found the solution:
Below is the format that I have tried.
https://gdata.youtube.com/feeds/api/users/userId/playlists?v=2
But it seems there is some change in the API.
To request a feed of another user's playlists, send a GET request to the following URL. This request does not require authentication.In the URL above, you should replace the text userId with the user's YouTube user ID. For backward compatibility purposes, the API also supports having the user's YouTube username specified instead.
To find the userId in YouTube : (Follow the steps below)
Click the arrow on top right after login to your YouTube account.
Select YouTube settings.
Select the link Advanced and find the YouTube User Id there.
Reference : YouTube API v.2.0
I am trying to access earnings and monetizedPlaybacks from the YouTube analytics API and all I am able to get is "401 Unauthorized"-Responses. I have logged in using OAuth2 and I used the scopes
https://www.googleapis.com/auth/yt-analytics-monetary.readonly
https://www.googleapis.com/auth/yt-analytics.readonly
https://www.googleapis.com/auth/youtube.readonly
Here is the Java-Snippet that I use in my application:
analytics.reports()
.query("channel==" + channelId, "2013-06-01", "2013-07-01", "earnings,views,monetizedPlaybacks")
.setFilters("video==" + videoId)
.setDimensions("month")
.execute()
I also tried to use the APIs Explorer, but this behaves identical.
If I retrieve only the number of views (no earnings and not monetizedPlaybacks) everything works fine.
I found this bugreport that claims that the API is broken, but it causes remarkably few reactions.
Any ideas appreciated.
This feature is currently not available in the API for youtube partner even though the information can be retrieved using the GUI. Instead a CMS-Account is needed.
There is a bugreport / feature request about the issue:
https://code.google.com/p/gdata-issues/issues/detail?id=4826