Regional issues using proxy but not locally

Author: apricate4Created Sep 28, 2026Updated Sep 28, 2026

When using a proxy (WebShare Rotating Residential in my case) to access some regionally restricted videos (e.g. tWW_CDYKqGE ) I get a the following error:

Could not retrieve a transcript for the video https://www.youtube.com/watch?v=tWW_CDYKqGE! This is most likely caused by:

The video is unplayable for the following reason: The uploader has not made this video available in your country

If you are sure that the described cause is not responsible for this error and that a transcript should be retrievable, please create an issue at https://github.com/jdepoix/youtube-transcript-api/issues. Please add which version of youtube_transcript_api you are using and provide the information needed to replicate the error. Also make sure that there are no open issues which already describe your problem!

But it works from my machine in UK without using the proxy and I have configured the WebShare proxy to be using only UK IP addresses:

Image

To Reproduce

Steps to reproduce the behavior:

  1. Be in the UK (or perhaps use a VPN configured for UK)
  2. Configure WebShare proxy to use just UK IP addresses
  3. Use this API with a Webshare proxy to access the following videos transcript: tWW_CDYKqGE
  4. Get the error

What code / cli command are you executing?

Python in app code:

    ytt_api = YouTubeTranscriptApi(
        proxy_config=WebshareProxyConfig(
            proxy_username="myusername",
            proxy_password="mypassword",
        )
    )
    transcript  = ytt_api.fetch("tWW_CDYKqGE")

Which Python version are you using?

Python 3.14.4

Which version of youtube-transcript-api are you using?

youtube-transcript-api 1.2.4

Expected behavior

I would expect this to retrieve the transcript like it does if I access it from my UK machine without the proxy, by using the code:

    ytt_api = YouTubeTranscriptApi()
    transcript  = ytt_api.fetch("tWW_CDYKqGE")

Actual behaviour

Fails to retrieve transcript with the following error:

Could not retrieve a transcript for the video https://www.youtube.com/watch?v=tWW_CDYKqGE! This is most likely caused by:

The video is unplayable for the following reason: The uploader has not made this video available in your country

If you are sure that the described cause is not responsible for this error and that a transcript should be retrievable, please create an issue at https://github.com/jdepoix/youtube-transcript-api/issues. Please add which version of youtube_transcript_api you are using and provide the information needed to replicate the error. Also make sure that there are no open issues which already describe your problem!

Source: jdepoix/youtube-transcript-api