Gdata Api V3 Youtube, Can Not Retrieve Contentdetails
I am trying to get the duration of a youtube video via search var request = gapi.client.youtube.search.list({ q: q, type : 'video', maxResults : 10, part: 'snippet,
Solution 1:
As written in the document, for search->list call, part can only take value "snippet".
Depending on the kind of the response, as a secondary call, you can do one of videos->list, playlists->list, channels->list with the id and part=snippet,contentDetails to get more details of each result item.
Post a Comment for "Gdata Api V3 Youtube, Can Not Retrieve Contentdetails"