GET /api/v2/pokemon/pikachu • HTTP 200 OK

PokeAPI Game Metadata Public API Example — Request & Response Example

The golden standard of educational APIs: querying Pokemon characteristics with nested resource arrays and sprite URLs.

1. HTTP Client Request (GET)

GET /api/v2/pokemon/pikachu HTTP/1.1
{
  "Accept": "application/json"
}

2. Server JSON Response (HTTP 200 OK)

{
  "id": 25,
  "name": "pikachu",
  "base_experience": 112,
  "height": 4,
  "weight": 60,
  "types": [
    {
      "slot": 1,
      "type": {
        "name": "electric"
      }
    }
  ],
  "abilities": [
    {
      "ability": {
        "name": "static"
      },
      "is_hidden": false
    },
    {
      "ability": {
        "name": "lightning-rod"
      },
      "is_hidden": true
    }
  ]
}

Copy-Paste Code Snippets (cURL, JavaScript Fetch, Python, Node.js)

curl "https://pokeapi.co/api/v2/pokemon/pikachu"
fetch('https://pokeapi.co/api/v2/pokemon/pikachu')
  .then(res => res.json())
  .then(data => console.log(data.name, data.types));
import requests

res = requests.get('https://pokeapi.co/api/v2/pokemon/pikachu')
print(res.json()['types'])

How This API Call Works Step-by-Step

  1. 1. Resource Identifier: pikachu in path /pokemon/pikachu.
  2. 2. Cache Hit: Served via Fastly CDN with strong cache-control headers.
  3. 3. Rich Structured Objects: Delivers nested types and ability descriptors.

Backend API Functions: A read-only ORM query querying relational tables and bundling into a comprehensive JSON payload.

Frequently Asked Questions

What is PokeAPI commonly used for?

It is the most popular open-source sandbox API used by coding bootcamps, university computer science programs, and frontend engineers to practice building search bars, cards, and pagination.