Skip to content

Get language

GET
/api/v2/language/{id}/
const url = 'https://pokeapi.co/api/v2/language/1/';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}

Languages for translations of API resource information.

id
required
string

This parameter can be a string or an integer.

Examples

Example1
Terminal window
1
Media typeapplication/json
object
id
required

The identifier for this resource.

integer
name
required

The name for this resource.

string
<= 200 characters
official

Whether or not the games are published in this language.

boolean
iso639
required

The two-letter ISO 639-1 language code. Multiple PokéAPI language records may share this code.

string
<= 10 characters
iso3166
required

The two-letter ISO 3166-1 alpha-2 code of the country or region associated with this language record. Multiple PokéAPI language records may share this code.

string
<= 2 characters
names
required

The name of this resource listed in different languages.

Array<object>
object
name
required

The localized name for an API resource in a specific language.

string
<= 200 characters
language
required

The language this name is in.

object
name
required

The name of the referenced resource.

string
<= 200 characters
url
required

The URL of the referenced resource.

string format: uri

Example

Terminal window
{
"id": 1,
"name": "ja-hrkt",
"official": true,
"iso639": "ja",
"iso3166": "jp",
"names": [
{
"name": "Japanese Hiragana and Katakana",
"language": {
"name": "en",
"url": "https://pokeapi.co/api/v2/language/9/"
}
}
]
}