Skip to content

Get stat

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

Stats determine certain aspects of battles. Each Pokémon has a value for each stat which grows as they gain levels and can be altered momentarily by effects in battles.

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

ID the games use for this stat.

integer
<= 32767
is_battle_only

Whether this stat only exists within a battle.

boolean
affecting_moves
required

A detail of moves which affect this stat positively or negatively.

object
increase
required

A list of moves and how they change the referenced stat.

Array<object>
object
change
required

The maximum amount of change to the referenced stat.

integer
>= -6 <= 6
move
required

The move causing the change.

object
name
required

The name of the referenced resource.

string
<= 200 characters
url
required

The URL of the referenced resource.

string format: uri
decrease
required

A list of moves and how they change the referenced stat.

Array<object>
object
change
required

The maximum amount of change to the referenced stat.

integer
>= -6 <= 6
move
required

The move causing the change.

object
name
required

The name of the referenced resource.

string
<= 200 characters
url
required

The URL of the referenced resource.

string format: uri
affecting_natures
required

A detail of natures which affect this stat positively or negatively.

object
increase
required

A list of natures and how they change the referenced stat.

Array<object>
object
name
required

The name of the referenced resource.

string
<= 200 characters
url
required

The URL of the referenced resource.

string format: uri
decrease
required

A list of nature sand how they change the referenced stat.

Array<object>
object
name
required

The name of the referenced resource.

string
<= 200 characters
url
required

The URL of the referenced resource.

string format: uri
affecting_items
required

Items that affect this stat, such as vitamins and battle items.

Array<object>
object
name
required

The name of the referenced resource.

string
<= 200 characters
url
required

The URL of the referenced resource.

string format: uri
characteristics
required

A list of characteristics that are set on a Pokémon when its highest base stat is this stat.

Array<object>
object
url
required

The URL of the referenced resource.

string format: uri
move_damage_class
required

The class of damage this stat is directly related to.

One of:
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

Example

Terminal window
{
"id": 1,
"name": "hp",
"game_index": 1,
"is_battle_only": false,
"affecting_moves": {
"increase": [],
"decrease": []
},
"affecting_natures": {
"increase": [],
"decrease": []
},
"affecting_items": [
{
"name": "hp-up",
"url": "https://pokeapi.co/api/v2/item/45/"
}
],
"characteristics": [
{
"url": "https://pokeapi.co/api/v2/characteristic/1/"
},
{
"url": "https://pokeapi.co/api/v2/characteristic/7/"
}
],
"move_damage_class": null,
"names": [
{
"name": "HP",
"language": {
"name": "en",
"url": "https://pokeapi.co/api/v2/language/9/"
}
}
]
}