Skip to content

Get evolution variable

GET
/api/v2/evolution-variable/{id}/
const url = 'https://pokeapi.co/api/v2/evolution-variable/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);
}

Evolution variables represent parameters (such as Encryption Constant and Personality Value) used in boolean expressions for form-branching evolutions. Check out Bulbapedia for greater detail.

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
symbol
required

The symbol used for this variable in evolution condition expressions.

string
<= 10 characters
data_type

The data type of this variable.

string
<= 20 characters
source

The source of the variable value.

string
<= 20 characters
version_group
required

The version group in which this variable was introduced.

object
name
required

The name of the referenced resource.

string
<= 200 characters
url
required

The URL of the referenced resource.

string format: uri
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
descriptions
required

The description of this resource listed in different languages.

Array<object>
object
description

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

string
<= 2000 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": "encryption-constant",
"symbol": "EC",
"data_type": "uint32",
"source": "pokemon",
"version_group": {
"name": "x-y",
"url": "https://pokeapi.co/api/v2/version-group/15/"
},
"names": [
{
"name": "Encryption Constant",
"language": {
"name": "en",
"url": "https://pokeapi.co/api/v2/language/9/"
}
}
],
"descriptions": [
{
"description": "An unsigned 32-bit integer introduced in Generation VI that is generated alongside a Pokémon's personality value. It is used to calculate internal form variations (such as Dudunsparce, Maushold, and Wurmple), determine Spinda spot patterns, break ties in characteristic calculations, and structure Pokémon data.",
"language": {
"name": "en",
"url": "https://pokeapi.co/api/v2/language/9/"
}
}
]
}