- Microlancer Beta Tester
- Author had a File in an Envato Bundle
- Author was Featured
- Bought between 50 and 99 items
- Exclusive Author
- Has been a member for 3-4 years
- Item was Featured
- Sold between 100 000 and 250 000 dollars
Hi guys,
Has anybody used the YouTube API ? Is it easy to get all the videos of a user id ? Or all the videos from a playlist id ?
Thanks!
- Grew a moustache for the Envato Movember competition
- Community Moderator
- Contributed a Blog Post
- Author was Featured
- Item was Featured
- Won a Competition
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Has been a member for 4-5 years
According to my rather broken memory it is possible to get the latest 25 user videos from the RSS feed. I’m sure more is possible via the API .
You can get a user’s videos with this URL for ex (in this case it’s the whitehouse videos): http://gdata.youtube.com/feeds/api/users/whitehouse/uploads?v=2&alt=jsonc
The max results are 25, but you can get the rest by specifying the startIndex… You will notice this in the feed returned:
"totalItems":1976,"startIndex":1,"itemsPerPage":25
The full documentation is here.
You can get an XML as well, but with the json result you can use the json_decode() function and have the feed returned converted to an array (easier to manipulate) 
- Microlancer Beta Tester
- Author had a File in an Envato Bundle
- Author was Featured
- Bought between 50 and 99 items
- Exclusive Author
- Has been a member for 3-4 years
- Item was Featured
- Sold between 100 000 and 250 000 dollars
Wow, thanks guys, just what I needed
- Microlancer Beta Tester
- Author had a File in an Envato Bundle
- Author was Featured
- Bought between 50 and 99 items
- Exclusive Author
- Has been a member for 3-4 years
- Item was Featured
- Sold between 100 000 and 250 000 dollars
Ok, the playlist id thing was not answered and I found it by mistake -
http://gdata.youtube.com/feeds/api/playlists/08BACDB761A0C52A?alt=json&start-index=1&max-results=40Just in case someone else searches for this
