2

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?

stvar
  • 5,871
  • 2
  • 10
  • 23
Man
  • 58
  • 5

2 Answers2

2

It appears that this is a new server-side limit coming from YouTube. There is an open issue in the youtube-dl repo on Github regarding the same: https://github.com/ytdl-org/youtube-dl/issues/26092. I haven't seen/thought of a workaround yet.

0

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.

Benjamin Loison
  • 880
  • 1
  • 6
  • 17