GET /pokemon/:name
Get fullständig data för valfri Pokemon by namn or Pokedex nummer. Returnerar typer, abilities, base stats (HP/Attack/Defense/Speed), height, weight, sprite bilder (front/back/shiny/officiell artwork), and move antal. Data från PokeAPI.
name
obligatorisk
Pokemon name or Pokedex number
| Namn | Obligatorisk | Standard | Beskrivning |
|---|---|---|---|
name |
Ja | - | Pokemon name or Pokedex number |
curl https://nordapi.ee/api/v1/pokemon/pikachu
curl https://nordapi.ee/api/v1/pokemon/pikachu
curl https://nordapi.ee/api/v1/pokemon/25
curl https://nordapi.ee/api/v1/pokemon/charizard
{
"data": {
"abilities": [
{
"is_hidden": false,
"name": "static"
},
{
"is_hidden": true,
"name": "lightning-rod"
}
],
"base_experience": 112,
"height": 4,
"id": 25,
"moves_count": 105,
"name": "pikachu",
"sprites": {
"back": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/back/25.png",
"front": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/25.png",
"official_artwork": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/25.png",
"shiny": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/shiny/25.png"
},
"stats": [
{
"base": 35,
"name": "hp"
},
{
"base": 55,
"name": "attack"
},
{
"base": 40,
"name": "defense"
},
{
"base": 50,
"name": "special-attack"
},
{
"base": 50,
"name": "special-defense"
},
{
"base": 90,
"name": "speed"
}
],
"types": [
"electric"
],
"weight": 60
},
"success": true
}