Skip to content

Get version

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

Versions of the games, e.g., Red, Blue or Yellow.

id
required
string

This parameter can be a string or an integer.

Media typeapplication/json

Should have a link to Version Group info but the Circular dependency and compilation order fight eachother and I’m not sure how to add anything other than a hyperlink

object
id
required
integer
name
required
string
<= 200 characters
names
required
Array<object>
object
name
required
string
<= 200 characters
language
required
object
name
required
string
<= 200 characters
url
required
string format: uri
version_group
required
object
name
required
string
<= 200 characters
url
required
string format: uri
Examplegenerated
Terminal window
{
"name": "example",
"version_group": {
"name": "example"
}
}