PER INSTANCE API WILL BE DEPRECATED JULY 1.
The Blockscout PRO API is a multichain API with enhanced limits based on your plan (5 rps included in the free plan). Check our PRO API docs for more info. Note that per-instance API access will be deprecated soon.
The Blockscout PRO API is a multichain API with enhanced limits based on your plan (5 rps included in the free plan). Check our PRO API docs for more info. Note that per-instance API access will be deprecated soon.
The default rate limit config of each API endpoint is described in the codebase and can be re-defined via
API_RATE_LIMIT_CONFIG_URL env variable. Here you can find details on the rate limits config.Disable or bypass rate limits on a self-hosted instance
If you run your own instance, you can change how rate limiting is applied:- Set
API_RATE_LIMIT_DISABLED=trueto ignore all rate limits (available since v5.1.0). This is useful for ruling out rate limiting as the cause of intermittent frontend errors. - Set
API_NO_RATE_LIMIT_API_KEYto define an administrator API key that bypasses rate limits entirely (available since v6.8.0). Requests that pass this key are never throttled. - Add trusted IPs to
API_RATE_LIMIT_WHITELISTED_IPSto give them the higher whitelisted-IP limit.
API_NO_RATE_LIMIT_API_KEY key or whitelist their IPs, and leave the default IP-based limits in place for everyone else.
See the backend ENV variables page for the full list of API_RATE_LIMIT_* variables.