Rate limits
Per-credential request budgets, the headers that report them, and how to back off.
2 min read
Limits apply per credential: each API key, and each OAuth connection (one user’s grant to one app), has its own budget. The budget depends on the credential’s rate tier:
| Limit | default tier | partner tier |
|---|---|---|
| All requests | 120 per minute | 1,200 per minute |
Writes (POST, PATCH, PUT, DELETE) | 30 per minute | 300 per minute |
| Concurrent requests | 10 in flight | 20 in flight |
Analytics endpoints (/v1/analytics/* and other computed reports) cost two requests each, because they do more work. Batch endpoints cost one request per 10 items, rounded up: a batch of 100 cluster ids costs 10.
Rate tiers
#Every credential starts on default. The partner tier is for one credential that syncs many shows, such as a hosting platform’s or a network’s API key. Listener staff assign it to an API key or to a whole workspace (every credential of that workspace); it can’t be set through the API or the Developers console. Email tech@listener.com with your use case and expected volume.
Your tier is in the Listener-Rate-Tier response header, in GET /v1/me under credential.rate_limit, and next to each key in Settings → Developers → API keys.
"rate_limit": {
"object": "rate_limit",
"tier": "partner",
"requests_per_minute": 1200,
"writes_per_minute": 300,
"concurrent_requests": 20,
"batch_items_per_token": 10,
"set_on": "api_key",
"scope": "per_credential_per_replica"
}Budgets are kept in memory on each API server (scope: per_credential_per_replica). Listener runs one server today; treat the published limit as your budget either way.
Headers
#Every response reports where you stand, using the IETF RateLimit-* headers (with X-RateLimit-* aliases for older clients):
RateLimit-Limit: 120
RateLimit-Remaining: 87
RateLimit-Reset: 23
RateLimit-Policy: 120;w=60
Listener-Rate-Tier: defaultRateLimit-Reset is the number of seconds until the budget refills, not a timestamp.
When you hit a limit
#The API answers 429 with code rate_limited and a Retry-After header in seconds. Wait that long, then retry. Retrying sooner only fails again.
{
"error": {
"type": "rate_limit_error",
"code": "rate_limited",
"message": "Rate limit exceeded. Retry in 12 seconds.",
"doc_url": "https://developers.listener.com/docs/errors#rate_limited",
"request_id": "req_8f2LkQ0aZ1"
}
}Staying under the limits
#- Page big. Use
limit=100on lists. - Batch reads.
POST /v1/clusters/metrics/batchandPOST /v1/shows/{show_id}/episodes/lookup/batchtake 100 ids for the price of 10 requests. See Syncing at scale. - Ask once for many shows. Analytics endpoints take
show_ids; one request for ten shows beats ten requests. - Cache. Analytics are themselves cached for up to two minutes, so polling faster than that returns the same numbers. Use
If-None-Matchwith theETagto make unchanged polls cheap. - Subscribe instead of polling. Webhooks tell you when data changes;
analytics.refreshedfires when a platform’s numbers advance. - Limit concurrency to a handful of parallel requests per credential.
Need more headroom for a real workload? Email tech@listener.com with your use case and expected volume.
A burst of 5xx errors or timeouts is not a rate limit. Check the status page before backing off further, and see Uptime and support for how to retry during an incident.