IP Rate Limit Exceeded
ip_rate_limit_exceeded429
Too many calls without a valid API key from one network address this minute. Wait
retry_afterseconds, then try again.
What this means
Your network address sent more than 60 calls without a valid API key in one UTC clock minute, across all endpoints. A call without a valid key is one with no key, a mistyped key or a revoked key. Calls made with a valid key are not counted here: your plan limits them instead (burst_limit_exceeded). retry_after is the number of seconds until the current minute ends, from 1 to 60.
When you'll see this
- A script sends no
Authorizationheader, or a key that was revoked or mistyped, in a fast loop. - A client keeps retrying a
401instead of fixing the key, and the retries add up. - Several machines behind one outgoing address all call without a key.
- A scraper, bot, or proof-of-concept script ran without rate-limit awareness.
Learn more about how this works
Asterwise has two per-minute limits. Calls with a valid API key are limited by the account's plan (burst_limit_exceeded), wherever they come from, so apps that share one address (such as Cloudflare Workers) don't use up each other's limit. Calls without a valid key are limited by network address (this error), which protects the platform from broken or hostile clients before they reach authentication.
If you see this from code that sends a key, check the key: a revoked or mistyped key counts as no key. If you see it from browser code, call Asterwise from your own backend instead, so your key is never exposed.
Example response
{
"success": false,
"error": "ip_rate_limit_exceeded",
"message": "Too many requests from this IP address. Please slow down.",
"details": [],
"retry_after": 60,
"doc_url": "https://docs.asterwise.com/reference/errors/ip_rate_limit_exceeded/",
"request_id": "3f2b8c1e-7a4d-4e9b-8c21-5d6f0a9b1e37",
"timestamp": "2026-05-25T12:34:56Z"
}
- Check that each request sends
Authorization: Bearer <key>with a key that is still active. A valid key moves the call to your plan's limit. - Wait
retry_afterseconds. The count starts again at the next UTC minute. - If a script is looping, add a pause between requests.
Always respect retry_after. The retry-after value is the floor, not a suggestion — retrying sooner just resets the counter on a server that's already telling you to slow down.
Python:
Production handler
- Python
- TypeScript
import httpx
import time
def call_with_rate_respect(url, headers, payload):
response = httpx.post(url, headers=headers, json=payload, timeout=30)
if response.status_code == 429:
body = response.json()
if body.get("error") == "ip_rate_limit_exceeded":
wait = body.get("retry_after", 60)
time.sleep(wait)
response = httpx.post(url, headers=headers, json=payload, timeout=30)
response.raise_for_status()
return response.json()
async function callWithRateRespect(url: string, headers: Record<string, string>, payload: unknown) {
let response = await fetch(url, {
method: "POST",
headers: { ...headers, "Content-Type": "application/json" },
body: JSON.stringify(payload),
});
if (response.status === 429) {
const body = await response.clone().json();
if (body.error === "ip_rate_limit_exceeded") {
const wait = (body.retry_after ?? 60) * 1000;
await new Promise((r) => setTimeout(r, wait));
response = await fetch(url, {
method: "POST",
headers: { ...headers, "Content-Type": "application/json" },
body: JSON.stringify(payload),
});
}
}
if (!response.ok) throw new Error(`HTTP ${response.status}`);
return response.json();
}
Avoid this error by
- Always send your API key. Calls with a valid key are limited by your plan, not by address.
- Never call Asterwise from browser code. Call it from your backend, where your key stays private and your own rate logic applies.
- If you're processing a batch, parallelism is fine — but cap concurrent requests at 5-10 and add small jitter between them.
- For genuinely high-throughput integrations, talk to us before launch. We can advise on architecture that respects the ceiling without throttling your users.