← Underhållning

Pokemon efter typ

GET /pokemon/type/:type

Get all Pokemon of a specifik type (fire, water, electric, etc.) med type effectiveness data. Returnerar som typer it's strong against, weak against, and immune to. Användbart för team att bygga and battle strategy verktyg.

Parametrar

typ obligatorisk

Pokemon type (fire, water, electric, grass, etc.)

Exempelförfrågningar

Grundläggande användning
curl https://nordapi.ee/api/v1/pokemon/type/fire
All Fire-type Pokemon
curl https://nordapi.ee/api/v1/pokemon/type/fire
All Dragon-type Pokemon
curl https://nordapi.ee/api/v1/pokemon/type/dragon
All Electric-type Pokemon
curl https://nordapi.ee/api/v1/pokemon/type/electric

Livesvar

{
  "data": {
    "double_damage_from": [
      "ground",
      "rock",
      "water"
    ],
    "double_damage_to": [
      "bug",
      "steel",
      "grass",
      "ice"
    ],
    "half_damage_to": [
      "rock",
      "fire",
      "water",
      "dragon"
    ],
    "name": "fire",
    "no_damage_to": [],
    "pokemon": [
      {
        "name": "charmander"
      },
      {
        "name": "charmeleon"
      },
      {
        "name": "charizard"
      },
      {
        "name": "vulpix"
      },
      {
        "name": "ninetales"
      },
      {
        "name": "growlithe"
      },
      {
        "name": "arcanine"
      },
      {
        "name": "ponyta"
      },
      {
        "name": "rapidash"
      },
      {
        "name": "magmar"
      },
      {
        "name": "flareon"
      },
      {
        "name": "moltres"
      },
      {
        "name": "cyndaquil"
      },
      {
        "name": "quilava"
      },
      {
        "name": "typhlosion"
      },
      {
        "name": "slugma"
      },
      {
        "name": "magcargo"
      },
      {
        "name": "houndour"
      },
      {
        "name": "houndoom"
      },
      {
        "name": "magby"
      },
      {
        "name": "entei"
      },
      {
        "name": "ho-oh"
      },
      {
        "name": "torchic"
      },
      {
        "name": "combusken"
      },
      {
        "name": "blaziken"
      },
      {
        "name": "numel"
      },
      {
        "name": "camerupt"
      },
      {
        "name": "torkoal"
      },
      {
        "name": "chimchar"
      },
      {
        "name": "monferno"
      }
    ],
    "pokemon_count": 109
  },
  "success": true
}