Types
Get a type
Returns a Pokémon type with its full damage relation table — what the type is super effective against, resisted by, and immune to.
GET
/type/{name}get-typeServer
https://pokeapi.co/api/v2Production (no auth required)
Path Parameters
The type's lowercase name (e.g. `fire`, `water`, `electric`) or its numeric ID.
Responses
200The full type resource with damage relations.application/json
Type ID (1–18).
Lowercase type name (e.g. `electric`).
404Type not found.application/json
curl https://pokeapi.co/api/v2/type/electricfetch('https://pokeapi.co/api/v2/type/electric')requests.get("https://pokeapi.co/api/v2/type/electric")fetch('https://pokeapi.co/api/v2/type/electric'){
"id": 0,
"name": "<string>",
"damage_relations": {
"no_damage_to": [
{
"name": "<string>",
"url": "https://example.com"
}
],
"half_damage_to": [
{
"name": "<string>",
"url": "https://example.com"
}
],
"double_damage_to": [
{
"name": "<string>",
"url": "https://example.com"
}
],
"no_damage_from": [
{
"name": "<string>",
"url": "https://example.com"
}
],
"half_damage_from": [
{
"name": "<string>",
"url": "https://example.com"
}
],
"double_damage_from": [
{
"name": "<string>",
"url": "https://example.com"
}
]
},
"pokemon": [
{
"slot": 0,
"pokemon": {
"name": "<string>",
"url": "https://example.com"
}
}
],
"moves": [
{
"name": "<string>",
"url": "https://example.com"
}
]
}"Not Found"