YouTube API only fetching latest 20,000 videos on a channel

Viewed 187

I'm trying to get the videoId's of all the videos in a channel. But when I run the command list_channel_videos(channel_id = "channel_id", max_results = 5000) using package tuber in R, only the latest 20,000 videos are returned.

Is there any workaround the 20,000 limit?

2 Answers

The 20,000 videos upper limit is due to YouTube backend.

However by faking requests done when browsing "Videos" tab on a YouTube channel as done in this script, you can retrieve all YouTube videos of a YouTube channel having strictly more than 20,000 videos.

Related