Skip to main content
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 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.
Some of the API endpoints have their own rate limit before showing captcha to the user:

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=true to 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_KEY to 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_IPS to give them the higher whitelisted-IP limit.
Rate limits apply per API key type and IP, not per consumer. There is no separate toggle for frontend traffic versus external REST API traffic. To keep public API callers rate limited while exempting your own services, give your services the 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.