← 娱乐

Pokemon 详情

GET /pokemon/:name

按名称或图鉴编号获取任何 Pokemon 的完整数据。返回属性、特性、基础能力值(HP/攻击/防御/速度)、身高、体重、精灵图片(正面/背面/闪光/官方插画)和招式数量。数据来自 PokeAPI。

参数

name 必填

Pokemon name or Pokedex number

请求示例

基本用法
curl https://nordapi.ee/api/v1/pokemon/pikachu
Look up Pikachu
curl https://nordapi.ee/api/v1/pokemon/pikachu
Look up by Pokedex number
curl https://nordapi.ee/api/v1/pokemon/25
Look up Charizard
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
}