http://www.codeproject.com/Tips/998364/Youtube-video-list-with-PHP
I am currently working with youtube api v3. I am trying to retrieve
video ids from a particular playlist. I have search through the documentation but can’t find an example that references that or something similar. I am using this repo from GITHUB. How can I retrieve video ids from a given playlist id ?
Here is a snippet but it only yields general information of the playlist:
| ||
add a comment
|
2
|
Yes, you can !
With the YouTube API v3 with the ressource playlistItems.list
Use this parameters to get the video ID of a playlist :
https://www.googleapis.com/youtube/v3/playlistItems?part=contentDetails&playlistId=PL590L5WQmH8fJ54F369BLDSqIwcs-TCfs&key={YOUR_API_KEY}
The output :
Then you have the video IDs of the playlist.
I look up quickly the github you link into in your post, you would have something like this : ( /!\ I haven't tested this code/!)
| |||
undefined index: results
– Code_Ed_Student Nov 9 '14 at 0:09