Scitech
Scitech

Reputation: 535

YouTube API - Get all Video IDs from other YouTube Channels

Read this similar post, but no correct answer yet. It is easy to extract video list from our own YouTube channel but my query is to extract full video list from other channels.

This URL results only 50 video requests.

https://www.googleapis.com/youtube/v3/search?key={your_key_here}&channelId={channel_id_here}&part=snippet,id&order=date&maxResults=50

I need to scrape all the videos from a channel.

Upvotes: 1

Views: 1206

Answers (1)

johnh10
johnh10

Reputation: 4185

That request will return 50 video results, including a nextPageToken. Then you make same request, only passing in that pageToken to get the next 50 results, and so on.

https://developers.google.com/youtube/v3/docs/search/list#pageToken

Upvotes: 1

Related Questions