Ssocialgraph.dev
API reference / YouTube API / Internationalization regions list

YouTube regions API: the list of supported country codes

Read-only YouTube Data API v3 i18nRegions list endpoint.

1 credit per successful call Errors are never charged No login or OAuth needed

About the Internationalization regions list endpoint

The YouTube regions API returns every region the YouTube website supports as ISO 3166-1 country codes with display names. It is the authoritative list of values for the regionCode parameter used by search, video categories and the most-popular chart, and it mirrors the YouTube Data API v3 i18nRegions.list endpoint.

What you can build with it

  • Country pickers for region-specific YouTube searches and charts
  • Validating regionCode values before other YouTube calls
  • Mapping country codes in your data to names

Request

GET https://socialgraph.dev/api/v1/youtube/i18nRegions

Send your API key as Authorization: Bearer YOUR_API_KEY. Parameters go in the query string.

Parameters

NameTypeDescription
part
required
string Required. Use snippet.
hl
optional
string Language for the region names. For example: es

Code examples


Example response

{
    "etag": "O0XOx_7MspCVzc3CES1obXm31_s",
    "kind": "youtube#i18nRegionListResponse",
    "items": [
        {
            "id": "AE",
            "etag": "RmvQrICcSKx5BZkuwuIam0hkr9o",
            "kind": "youtube#i18nRegion",
            "snippet": {
                "gl": "AE",
                "name": "United Arab Emirates"
            }
        },
        {
            "id": "BH",
            "etag": "lYa87JjqaXmfqWaf6vuQD3YSNo4",
            "kind": "youtube#i18nRegion",
            "snippet": {
                "gl": "BH",
                "name": "Bahrain"
            }
        },
        {
            "id": "DZ",
            "etag": "sNy_f3n1a8hzh4cy6lk7Blq6MgU",
            "kind": "youtube#i18nRegion",
            "snippet": {
                "gl": "DZ",
                "name": "Algeria"
            }
        },
        {
            "id": "EG",
            "etag": "epyyUiiXSMjhLjkCvWGK-3zDKpM",
            "kind": "youtube#i18nRegion",
            "snippet": {
                "gl": "EG",
                "name": "Egypt"
            }
        },
        {
            "id": "IQ",
            "etag": "foRr-koDaxI_23FCQgzB6S9YdQw",
            "kind": "youtube#i18nRegion",
            "snippet": {
                "gl": "IQ",
                "name": "Iraq"
            }
        }
    ]
}

Errors

StatusMeaningCharged?
401Missing, invalid or revoked API keyNo
402Not enough credits (insufficient_credits)No
404The account or post doesn't existNo
422Missing or invalid parametersNo
502 / 503The data source is temporarily unavailableNo

All error codes →

Internationalization regions list API: frequently asked questions

Which code format do YouTube regions use?

Two-letter ISO 3166-1 alpha-2 codes such as US, IN or GB.

Can I get region names in my language?

Yes, pass the hl parameter with a language code.

Where are region codes used?

In the regionCode parameter of the Search, Video categories and Videos (mostPopular chart) endpoints.

Should I cache the list?

Yes. It changes very rarely.

How much does the Internationalization regions list endpoint cost?

1 credit per successful call (0.002 USD at 500 credits per dollar). Errors, "not found" responses and invalid input are never charged, and credits never expire.

Can I try the Internationalization regions list API without signing up?

Yes. The live demo on this page runs a real request with a fixed sample input, free and without an account. Creating a free account gives you 100 credits to test every endpoint with your own inputs.

Try it live: Internationalization regions list GET

🔒 Preset demo input. Live demos use the Google for Developers channel, youtube.com/@GoogleDevelopers. Sign up free to use your own.

Start with 100 free credits

Create an account in seconds. No card, no subscription. Credits never expire.

Create free account →