You wrote a few lines with youtube-transcript-api , it worked on your laptop, you deployed it to AWS, Google Cloud, Azure or a cheap VPS - and every call now fails with RequestBlocked or IpBlocked . Older versions of the library reported the same thing as TranscriptsDisabled , which sent many people hunting for a bug that wasn't there.
Your code is fine. The problem is where the request comes from.
Why it happens
YouTube refuses most requests that come from IP addresses known to belong to cloud providers. The library's own README says so: "YouTube has started blocking most IPs that are known to belong to cloud providers (like AWS, Google Cloud Platform, Azure, etc.)".…