Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Youtube Error 429 Too many requests. Ways to slow down crawling? #22839
Comments
|
Probably related, but (for me) the four /get_video_info requests always respond with a 429, even after throttling every network requests to one per minute. youtube-dl/youtube_dl/extractor/youtube.py Lines 1776 to 1792 in 42cd082 |
|
i have the same problem with my Server. it seem´s ig get blocked :-/ `sshadmin@larsmueller: [1]+ Exit 1 youtube-dl --extract-audio --audio-format mp3 --yes-playlist https://www.youtube.com/watch?v=6VKduh2PCpA` |
|
Using proxy works for me. I downloads hundreds videos in a hour. |
|
^Downloading hundreds of videos is not the issue, checking dozens of channels for new videos (even using --download-archive) is where I run into this. |
But all of the requests communicate with YouTube servers. isn't it ? |
|
^No, it downloades all the pages and it skips looking for videos that have been locally downloaded based on the --download-archive lists. It skips thousands of videos a second so no way it does that remotely. |
Which Proxy do you use? Any Guide available? Edit: it works again with an Proxy |
Hello, But there is some threshold for each ip. If you use same ip or proxy a little bit too much, they are banned by YouTube for some hours. So you can need more than 1 ip/proxy if you communicate YouTube servers too much. It is my experience. |
|
Happened to me now. I downloaded just one video today, and in the second, from the same channel, I got this error
|
|
Never had this issue until recently. Was trying to download a big list of videos sequentially and started getting this error after about 15 successful downloads or so. Seems to dislike the repeated requests to I get this page, which I've never seen before.
|
Use an Proxy Server and it works fine https://www.netzwelt.de/proxy/index.html |
|
When I get banned, will I get automatically unbanned after sometime? |
Yes |
I'm curious as to how this works. I have two machines in my office. One gets 429s right now, the other doesn't. Surely as far as youtube are concerned they're coming from the same source. How are they detecting one and not the other? |
|
For some reason, my 429 messages seem to be video specific. I could be attempting to download a video and get a 429 error, then successfully download another video after that, and then get a 429 error when I try the first one again or another one. |
|
Using --cookies solves the problem |
Please elaborate: using a different value for --cookies for every request, or the same value? I'm still not sure why it works just fine on my Macbook, but on the Linux box next to me in I just get 429s... |
|
I too have this problem. Only work-around I've found is to get a new public IP for traffic to come from. Shortly after that though, it happens again. |
|
With a new public IP, this has fixed it for me. |
|
^I only use it to download new videos for channels I have hundreds of videos already. It doesn't matter, I still get 429 as youtube-dl is scraping the pages for videos. And --sleep-interval does no effect on that initial scraping, which I think is the issue. |
|
@bathrobehero that's not the issue. They are throttling based on requests to |
|
I have a weird one. Its working for me on Mac OS but fails on linux. Both OSs running v2019.11.28 and operate on the same local network but sharing same public / WAN address. |
|
I have a strange version of this issue myself. I had an old PC running Vista that I occasionally captured a Live Stream at times. Sometimes a regular video at times also. Yet since Thur, youtube-dl and a similar program both spit out "429 Too Many Requests" even if I give it hours-days. Yet my Ubuntu PC also with youtube-dl and similar tools, same public IP, never once got the 429 error. I even tried changing user-agents and everything on Vista, nothing helps. How could YouTube so easily detect when I am sending from the Vista PC or when I am sending from Ubuntu? It obviously arrives from the same public IP...... |
|
I have a Home-Server and a Workstation both are visible from the Internet with the same public IP. On the Server I get 429s and on my Workstation it just works fine. Tested at the same time with same video. Its kinda funny xD There is deffo more behind it than just "use a proxy!!!" Google is probably using some kind of fingerprinting the client that connects - in the end youtube-dl is just a "web-browser" - and that way they can differentiate between machines. It might be possible to circumvent, but would probbably need some investment of dev time, wich is unlikely to happen. IMO the times of automatic downloads from youtube are over. #neverforget |
|
I've done some patching based on this post and it seems to be working most of the time. By using tor the results are somewhat random as I guess youtube/google blocks tor exit nodes they don't like. But without proxy it is working atm... |
|
For all complainers over here: there will be no solution until you provide complete reproducible environment. We are not black magicians and can't fix something that does not reproduce on our side. Any useless posts like "any solution?" will be considered spam with corresponding consequences. |

Hi, recently I keep running into Error 429: Too many request on Youtube even with 2 minutes between checking a list of channels for new videos and even with --sleep-interval set. And EVEN if I change the IP, it comes back soon.
It's usually followed after "Downloading video info webpage".
So I wonder, can I somehow slow down the speed at which youtube-dl crawls channels/videos?
I don't want to rate limit downloads, that's not the issue, the issue seems to be crawling too fast.