Pokédex API is based on a single layer, a HTTPS/REST consumption-only API that only allows the
GETmethod to consume all the Pokémon information you’ll ever need.
The base URL for all API requests is:
Pokédex API exposes different versions of the API. You can specify version by including it in the request path:
Omitting the version number from the route will route requests to the current default version. We recommend specifying a version number in the request path so that your app doesn’t run into incompatibility when the default version is changed.V
No authentication is required to access this API. All the resources are and available to everyone. However, we will implement authentication methods in the future that will give authenticated users higher rate limits or no rate limits at all (more on rate limits later).
User-Agent: AppName ($url, $version)
Applications and websites may append more information and metadata to the end of this string as they wish.
User-Agent: BastionDiscordBot (https://bastionbot.org, 6.16.1)
This API rate limits requests in order to prevent abuse and overload of our services. Rate limits are applied on a global basis, spanning across the entire API.
Because we may change rate limits at any time and rate limits can be different per application, rate limits should not be hard coded into your application or website. In order to properly support our dynamic rate limits, your application or website should parse for our rate limits in response headers and locally prevent exceeding of the limits as they change.
We recommend that your application or website should locally cache the data that you receive to save the number of API calls consumed for the same resource.
For every API request made, we return optional HTTP response headers containing the rate limit encountered during your request.
Retry-After- The number of milliseconds after which the rate limit will reset. It is returned only if you’ve been rate limited.
X-RateLimit-Limit- The number of requests that can be made
X-RateLimit-Remaining- The number of remaining requests that can be made
X-RateLimit-Reset- Epoch time (seconds since 00:00:00 UTC on January 1, 1970) at which the rate limit resets. It is returned only if you’ve been rate limited.
In the case that a rate limit is exceeded, the API will return a HTTP 429 response code with a JSON body.
Note that the normal rate-limiting headers will be sent in this response.
The rate-limiting response will look something like the following:
< HTTP/1.1 429 TOO MANY REQUESTS
< Content-Type: application/json
< Retry-After: 14400000
< X-RateLimit-Limit: 500
< X-RateLimit-Remaining: 0
< X-RateLimit-Reset: 905212800000
"message": "You are being rate limited. You're way too spicy at catching Pokémon.",