Welcome to Shaun Luttin's public notebook. It contains rough, practical notes. The guiding idea is that, despite what marketing tells us, there are no experts at anything. Sharing our half-baked ideas helps everyone. We're all just muddling thru. Find out more about our work at bigfont.ca.

Export YouTube Video Uploads by UserName via the Google REST API

Tags: youtube, rest, google

The following uses the Google API explorer:

https://developers.google.com/apis-explorer/#p/youtube/v3/

First, GET the playlistId for your Uploads playlist.

https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.channels.list?part=contentDetails&forUsername=luttinshaun&fields=items%252FcontentDetails%252FrelatedPlaylists%252Fuploads&_h=26&

Second, GET the list of videos from that playlistId.

https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.playlistItems.list?part=snippet&maxResults=50&playlistId=UUI8EKSym1tSP3O5JQTB0p9w&_h=23&

Third, GET the next page, using the nextPageToken. Repeat for each page.

https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.playlistItems.list?part=snippet&maxResults=50&pageToken=CDIQAA&playlistId=UUI8EKSym1tSP3O5JQTB0p9w&_h=24&