Rate Limiting
Learn how does NekoSauce’s API apply rate limits.
NekoSauce has to rate limit the use of it’s API to avoid abuse. Currently, our server resources are not enough to handle the amount of requests that we get so the limit can be quite restrictive for some applications.
The global rate limit is of 1 request per second. There is no going faster than that. However, the /search
endpoint has a much higher limt, which is a request every 10 seconds. This limit is lowered for donators since they help us cover the server costs, and therefore they deserve more server resources dedicated to them.
Headers
The API will return the following headers in all responses:
Your allowed amount of requests per time window.
The amount of requests remaining in the current time window.
The number of seconds until the current time window resets.
The duration in seconds of the current time window.
The category of the rate limit. Different categories have different limits.
Whether the rate limit is global or not. If it’s global, the block (once you get rate limited) is applied to all endpoints.
Blocking
If you got rate limited, you’ll receive a 429 Too Many Requests
response:
Psst! Donators have a special rate limit (^///^)
Was this page helpful?