When a single user makes too many requests to Horizon in a one hour time frame, Horizon returns a
rate_limit_exceeded error. By default, Horizon allows 3600 requests per hour – an average of one request per second.
If you are encountering this error, please reduce your request speed. Here are some strategies for doing so:
- For collection endpoints, try specifying larger page sizes.
- Try streaming responses to watch for new data instead of pulling data every time.
- Cache immutable data, such as transaction details, locally
See the Rate Limiting Guide for more info.
As with all errors Horizon returns,
rate_limit_exceeded follows the Problem Details for HTTP APIs draft specification guide and thus has the following attributes:
||The identifier for the error. This is a URL that can be visited in the browser.
||A short title describing the error.
||An HTTP status code that maps to the error.
||A more detailed description of the error.
||A token that uniquely identifies this request. Allows server administrators to correlate a client report with server log files.
"title": "Rate Limit Exceeded",
Edit this doc in GitHub