YouTube languages API: the list of supported language codes
Read-only YouTube Data API v3 i18nLanguages list endpoint.
About the Internationalization languages list endpoint
The YouTube languages API returns every language the YouTube interface supports, as BCP-47 language codes with their display names. Use it to build language pickers, validate hl parameters for other YouTube endpoints, or map the language codes found in video and caption data to readable names. It mirrors the YouTube Data API v3 i18nLanguages.list endpoint.
What you can build with it
- Language selectors in apps that localise YouTube data
- Validating language codes before passing them to other YouTube endpoints
- Turning language codes in video metadata into readable names
Request
https://socialgraph.dev/api/v1/youtube/i18nLanguages
Send your API key as Authorization: Bearer YOUR_API_KEY.
Parameters go in the query string.
Parameters
| Name | Type | Description |
|---|---|---|
partrequired |
string | Required. Use snippet. |
hloptional |
string | Language for the language names. For example: es |
Code examples
Example response
{
"etag": "BWfamz4EkEUnBLn4e5RPGocAZbo",
"kind": "youtube#i18nLanguageListResponse",
"items": [
{
"id": "af",
"etag": "1OjwIvsEf9UstcR8l9SVbvsK8Qw",
"kind": "youtube#i18nLanguage",
"snippet": {
"hl": "af",
"name": "Afrikaans"
}
},
{
"id": "am",
"etag": "ptN1RQzFShVdKYWSazyl6Givu1Q",
"kind": "youtube#i18nLanguage",
"snippet": {
"hl": "am",
"name": "Amharic"
}
},
{
"id": "ar",
"etag": "GOvkz2ITW6w0y-0cigEa0BiHOac",
"kind": "youtube#i18nLanguage",
"snippet": {
"hl": "ar",
"name": "Arabic"
}
},
{
"id": "as",
"etag": "qq6RBDRnnlL26sMbNlNgGRzeHUA",
"kind": "youtube#i18nLanguage",
"snippet": {
"hl": "as",
"name": "Assamese"
}
},
{
"id": "az",
"etag": "uDg13IUyl-wwViQm18NMTW_ce0A",
"kind": "youtube#i18nLanguage",
"snippet": {
"hl": "az",
"name": "Azerbaijani"
}
}
]
}Errors
| Status | Meaning | Charged? |
|---|---|---|
| 401 | Missing, invalid or revoked API key | No |
| 402 | Not enough credits (insufficient_credits) | No |
| 404 | The account or post doesn't exist | No |
| 422 | Missing or invalid parameters | No |
| 502 / 503 | The data source is temporarily unavailable | No |
Internationalization languages list API: frequently asked questions
What format are the YouTube language codes in?
BCP-47 codes such as en, en-GB, hi or zh-Hans, each with a localised name.
Can I get the names in another language?
Yes, pass hl with a language code and the names are returned in that language.
Does this list change?
Rarely. It's safe to cache the response for a long time.
Does it cost quota or need a Google key?
No Google key is needed; it's a one-credit call here.
How much does the Internationalization languages 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 languages 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.
🔒 Preset demo input. Live demos use the Google for Developers channel, youtube.com/@GoogleDevelopers. Sign up free to use your own.