Rate Limit
Last updated
Last updated
Xano allows you to set rate limits on your queries so that you can limit the requests per given time period that an API endpoint can be called.
The Rate Limit function comes with a few settings for configuration.
Key: define a key for the rate limit.
Max: set the max amount of requests allowed in the given time or TTL.
TTL: set the time to live, in seconds, of each cycle.
Error: optionally include an error message. If you include an error message, when the Rate Limit is reached it will automatically throw an error and display this message. If you do not, the Rate Limit will output a boolean of false when the Rate Limit is reached. This can be used if you wish to create custom logic for what happens when the Rate Limit is reached.