PokéAPI (GraphQL)
Send a GraphQL query for Pokémon data and see exactly the fields you asked for. Useful for developers learning GraphQL or testing which fields they need before writing code against a Pokémon data service.
The pre-filled query asks for the id and name of pikachu and gets back id 25.
What it's useful for
- Test a GraphQL query for a Pokémon before putting it in your app.
- Check that a field name exists by requesting it and reading the result.
- Learn how GraphQL returns only the fields you list, using a small example.
- Look up a Pokémon's number from its name.
Frequently asked questions
What do I type in the query box?
A GraphQL query, such as {pokemon(name:"pikachu"){id name}}. List the fields you want inside the inner braces and the response contains only those.
Why did I get an error instead of data?
Usually a typo in the query or a field the schema does not have. GraphQL errors are returned in the response body and name the problem.
How is this different from the standard PokéAPI?
It is an unofficial GraphQL layer on top of PokéAPI, so you choose fields in one request instead of receiving the full record.
Where does the data come from?
From the unofficial GraphQL wrapper for PokéAPI, which proxies PokéAPI and is MIT licensed. Pokémon belongs to Nintendo and Game Freak.
About this data
- Data comes from a free third-party service (graphql-pokeapi.graphcdn.app). We pass your request through our server so your browser never contacts it directly.
- Terms: MIT licensed, no sign-up or key (per README). GraphQL query via GET; proxies PokeAPI. Pokemon IP belongs to Nintendo/Game Freak.
- The service can change or go offline without notice, and we can't vouch for the accuracy of what it returns.
- Official documentation