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).
Applications and websites using the API must provide a valid User Agent which specifies information about the app and website, in the following format:
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 implements a process for limiting and preventing excessive requests in accordance with RFC 6585.
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.
Current rate limit is 500 API calls in 12 hours. And we will increase the rate limits every time we upgrade our server for better performance.
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.
The HTTP response code.
A message saying you are being rate limited.
The number of milliseconds to wait before submitting another request.
Note that the normal rate-limiting headers will be sent in this response.
API users that regularly hit and ignore rate limits will be banned (by their IP address) from using the API again.
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.",