Overview
The beaconcha.in API uses rate limiting to ensure fair usage and maintain service quality for all users. Rate limits vary by subscription tier and are enforced across multiple time windows.Rate Limit Headers
Every API response includes headers that show your current rate limit status:Primary Headers
| Header | Description | Example |
|---|---|---|
ratelimit-limit | Requests allowed per window | 1 |
ratelimit-remaining | Requests remaining in current window | 0 |
ratelimit-reset | Seconds until the window resets | 1 |
ratelimit-window | The time window type | second |
ratelimit-bucket | The rate limit bucket for this endpoint | default |
ratelimit-validapikey | Whether your API key is valid | true |
Extended Headers
The API also returns detailed limits for each time window:| Header | Description |
|---|---|
x-ratelimit-limit-second | Requests allowed per second |
x-ratelimit-limit-minute | Requests allowed per minute |
x-ratelimit-limit-hour | Requests allowed per hour |
x-ratelimit-limit-day | Requests allowed per day |
x-ratelimit-limit-month | Requests allowed per month |
x-ratelimit-remaining-second | Remaining requests this second |
x-ratelimit-remaining-minute | Remaining requests this minute |
x-ratelimit-remaining-hour | Remaining requests this hour |
x-ratelimit-remaining-day | Remaining requests today |
x-ratelimit-remaining-month | Remaining requests this month |
Checking Your Rate Limits
Make any API request and inspect the response headers to see your current limits:Handling Rate Limit Errors
When the rate limit is exceeded, the API returns a429 Too Many Requests status code. To handle this correctly, implement retry logic with a dynamic delay: immediately pause outgoing requests and wait for the duration specified in the ratelimit-reset header before attempting the request again.
Code Examples
- Python
- TypeScript
- JavaScript
Rate Limits by Plan
Rate limits vary by subscription tier:| Plan | Price/mo | Features | Limit/sec | Limit/mo |
|---|---|---|---|---|
| Free | 0€ | Basic | 1 | 1,000 |
| Hobbyist | 59€* | Basic | 1 | — |
| Business | 99€* | Basic | 2 | — |
| Scale | 399€* | Basic & Pro 💎 | 5 | — |
| Enterprise | Contact us | Basic & Pro 💎 | Contact us | — |
Pro 💎 features include premium validator selectors (
withdrawal address, deposit_address) and are available on Scale and Enterprise plans.Rate Limit Buckets
A rate limit bucket is an independent counter that tracks API usage separately from other buckets. Think of each bucket as its own quota system with its own limits and usage tracking. When you make API requests, the system checks which bucket(s) your requests count against and decrements the appropriate counter(s). Once a bucket is exhausted, requests that count against that bucket will be rate limited until the bucket resets.Key Concepts
- Separate buckets mean usage in one bucket doesn’t affect the limits in another bucket
- Shared buckets mean all requests count against the same quota, regardless of which API version you’re using
- Your subscription type determines whether V1 and V2 API requests use separate or shared buckets
Endpoint Buckets
Different endpoints are assigned to specific buckets. You can see which bucket your request counted against in theratelimit-bucket response header.
| Bucket | Endpoints |
|---|---|
default | All endpoints not listed below |
app | /api/v1/dashboard/widget, /api/v2/validator-dashboards/* |
machine | /api/v1/client/metrics |
oldsubnewapi | /api/v2/* (only for legacy subscription users) |
The
oldsubnewapi bucket applies when a user with a legacy subscription (Sapphire, Emerald, Diamond) accesses V2 endpoints. This keeps V2 usage separate from their V1 quota.How V1 and V2 rate limits work
API keys
There is only one kind of API key. All keys work for both V1 and V2 endpoints.Rate limits depend on your subscription type
Legacy subscriptions
If you are on a legacy plan (Sapphire, Emerald, or Diamond):- V1 endpoints: you get your legacy plan rate limits.
- V2 endpoints: you get free tier rate limits (1 call/s , 1000 calls/mo).
- Separate buckets: V1 and V2 usage are tracked in separate rate limit buckets. This means:
- Requests to V1 API endpoints do not count towards your V2 API rate limit
- Requests to V2 API endpoints do not count towards your V1 API rate limit
- You can fully utilize both V1 and V2 limits independently
- Limit types: legacy plans enforce per-second and per-month limits.
Current subscriptions
If you are on a current plans (Hobbyist, Business, or Scale):- V1 + V2 endpoints: you get the same rate limits on both versions.
- Same bucket: V1 and V2 usage share one combined rate limit bucket.
- Limit types: current plans enforce per-second limits only (no monthly limits).
Enterprise
Enterprise customers are handled case-by-case.Best Practices
Monitor Headers
Check
x-ratelimit-remaining-* headers before making bulk requests to avoid hitting limits.Use Backoff
Implement exponential backoff when receiving 429 errors to gracefully handle rate limits.
Batch with Dashboards
Use
dashboard_id to query multiple validators in a single request instead of individual calls.Related Resources
- Pagination Guide — Efficient data fetching
- Dashboard as Private Sets — Batch validator queries
- Custom Range Rewards — Performance considerations for bulk operations

