youtube-dl do not working.HTTP error 429: too many requests How can i solve this problem? youtube-dl is up-to date

[youtube] lMttqRuFmL8: Downloading webpage
ERROR: Unable to download webpage: HTTP Error 429: Too Many Requests (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Using --cookies works for me.

Install the cookies.txt addon on Firefox. Export cookie.

$ youtube-dl --cookies cookies.txt www.youtube.com/watch?v=..

In this issue, @dstftw explains that all IPv6 addresses get banned by YouTube.

https://github.com/ytdl-org/youtube-dl/issues/21729

So, --force-ipv4 should help. If it doesn't, the another workaround could be attaching a cookie from your browser with --cookies option.


Perhaps you are actually sending too many request at the given time.

The status code 429 refers to TooManyRequest. In the real scenario you are sending more than expected requests on that site.

You could try later or change your IP using a proxy or VPN.


Try updating youtube-dl to the latest version.

youtube-dl -U 

if installed via PIP

pip install --upgrade youtube-dl