Skip to content

Get ability

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

Abilities provide passive effects for Pokémon in battle or in the overworld. Pokémon have multiple possible abilities but can have only one ability at a time. 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
is_main_series

Whether or not this ability originated in the main series of the video games.

boolean
generation
required

The generation this ability originated in.

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

The effect of this ability listed in different languages.

Array<object>
object
effect
required

The localized effect text for an API resource in a specific language.

string
<= 6000 characters
short_effect
required

The localized effect text in brief.

string
<= 300 characters
language
required

The language this effect 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
effect_changes
required

The list of previous effects this ability has had across version groups.

Array<object>
object
version_group
required

The version group in which the previous effect of this ability originated.

object
name
required

The name of the referenced resource.

string
<= 200 characters
url
required

The URL of the referenced resource.

string format: uri
effect_entries
required

The previous effect of this ability listed in different languages.

Array<object>
object
effect
required

The localized effect text for an API resource in a specific language.

string
<= 6000 characters
language
required

The language this effect 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
flavor_text_entries
required

The flavor text of this ability listed in different languages.

Array<object>
object
flavor_text
required

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

string
language
required

The language this text resource 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
version_group
required

The version group that uses this flavor text.

object
name
required

The name of the referenced resource.

string
<= 200 characters
url
required

The URL of the referenced resource.

string format: uri
pokemon
required

A list of Pokémon that could potentially have this ability.

Array<object>
object
is_hidden

Whether or not this a hidden ability for the referenced Pokémon.

boolean
slot
required

Pokémon have 3 ability ‘slots’ which hold references to possible abilities they could have. This is the slot of this ability for the referenced pokemon.

integer
>= 1 <= 3
pokemon
required

The Pokémon this ability could belong to.

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": "stench",
"is_main_series": true,
"generation": {
"name": "generation-iii",
"url": "https://pokeapi.co/api/v2/generation/3/"
},
"names": [
{
"name": "Stench",
"language": {
"name": "en",
"url": "https://pokeapi.co/api/v2/language/9/"
}
}
],
"effect_entries": [
{
"effect": "This Pokémon's damaging moves have a 10% chance to make the target flinch with each hit if they do not already cause flinching as a secondary effect.\n\nThis ability does not stack with a held item.\n\nOverworld: The wild encounter rate is halved while this Pokémon is first in the party.",
"short_effect": "Has a 10% chance of making target Pokémon flinch with each hit.",
"language": {
"name": "en",
"url": "https://pokeapi.co/api/v2/language/9/"
}
}
],
"effect_changes": [
{
"version_group": {
"name": "black-white",
"url": "https://pokeapi.co/api/v2/version-group/11/"
},
"effect_entries": [
{
"effect": "Has no effect in battle.",
"language": {
"name": "en",
"url": "https://pokeapi.co/api/v2/language/9/"
}
}
]
}
],
"flavor_text_entries": [
{
"flavor_text": "Helps repel wild POKéMON.",
"language": {
"name": "en",
"url": "https://pokeapi.co/api/v2/language/9/"
},
"version_group": {
"name": "ruby-sapphire",
"url": "https://pokeapi.co/api/v2/version-group/5/"
}
},
{
"flavor_text": "Helps repel wild POKéMON.",
"language": {
"name": "en",
"url": "https://pokeapi.co/api/v2/language/9/"
},
"version_group": {
"name": "emerald",
"url": "https://pokeapi.co/api/v2/version-group/6/"
}
}
],
"pokemon": [
{
"is_hidden": true,
"slot": 3,
"pokemon": {
"name": "gloom",
"url": "https://pokeapi.co/api/v2/pokemon/44/"
}
},
{
"is_hidden": false,
"slot": 1,
"pokemon": {
"name": "grimer",
"url": "https://pokeapi.co/api/v2/pokemon/88/"
}
}
]
}