# claude api 429 error: it's not the same rate limiting as the web app

> A claude api 429 error is not the same limit as the web app's "too many requests": the API counts RPM, ITPM and OTPM per organization and workspace, and on top of that stacks a monthly spend cap and ramp limits. Checking three things — the response headers and error body, the project quota, and whether your egress is shared — saves a lot of wasted effort.

- Source: https://ipnet.coffee/en/news/claude-api-429-vs-web-rate-limit
- Published: 2026-11-24
- Updated: 2026-11-24
- Publisher: ipnet.coffee

The first time most people hit a claude api 429 error, their first reaction is "but the web app still works, so why is the API rate limited?" Because these are not the same set of limits at all. The web app (claude.ai, desktop, mobile app) draws from your plan's usage window; the API draws from your organization's and workspace's rate limits. The quotas, reset times and error bodies are different on both sides. Trying to fix an API 429 with web-app experience sends you in the wrong direction from the start.

Here's the conclusion up front: a claude api 429 error has only three sources — your request rate is too high, your organization or workspace quota is used up, or too many calls are sitting behind this egress IP. The first two can be confirmed from response headers and the usage page; the third needs a controlled experiment with a different egress.

## Is a claude api 429 error the same as web-side rate limiting?

No. A web-side 429 or "too many requests" draws from your plan's usage window — check Settings > Usage for the usage bar and reset time, then wait for the window to roll over or start a smaller new conversation. The API has no concept of a "5-hour window"; it's three layers stacked: organization-level RPM / ITPM / OTPM, a monthly spend cap, and ramp limits.

So the first step diverges right away: the web app starts with the usage page, the API starts with the response headers. Switching egress often helps on the web app because the plan window is tied to the session; on the API, switching egress only matters in the one case where "the egress is shared" — for the first two causes it makes no difference how many times you switch.

If you're currently stuck on the web app's "too many requests, please try again later", the on-site article "claude too many requests please try again later: what to do after a 429, in this order" is written for the web-app scenario. Its troubleshooting order differs from this one, so don't mix them. If you want the overall framework for separating the three causes — quota, rate, shared egress — see "claude rate limited, what to do: first tell quota, rate and shared egress apart".

## Step one: check response headers first, or switch egress first?

Check response headers first.

Anthropic's help center article of October 13, 2026 states it clearly: rate limits are tiered by usage level and measured with three metrics — requests per minute (RPM), input tokens per minute (ITPM) and output tokens per minute (OTPM). Exceeding any one of them returns a 429 with a `retry-after` header telling you how long to wait ([support.claude.com](https://support.claude.com/zh-CN/articles/8243635-%E6%88%91%E4%BB%AC%E5%AF%B9-claude-api-%E9%80%9F%E7%8E%87%E9%99%90%E5%88%B6%E7%9A%84%E6%96%B9%E6%B3%95)).

So step one is not switching nodes; it's saving the full details of this failure: HTTP status code, error JSON, response headers. Three things matter most.

**Is there a `retry-after`?** If yes, it's a rate-type limit — wait the given number of seconds and retry. If not, it's most likely the monthly spend cap; the official docs state plainly that "429s caused by spend limits have no `retry-after` header and will keep failing until access is restored" ([platform.claude.com](https://platform.claude.com/docs/zh-CN/api/errors)). In that case retrying a hundred times does nothing — you wait until 00:00 UTC on the first day of next month, or apply for a higher limit.

**What is `error.details.error_code`?** The official docs give two values you can tell apart directly: `enforced_spend_limit_reached` means you hit the tier spend cap, `ramp_limit_exceeded` means you hit a ramp limit. The latter is the most easily misdiagnosed — ramp limits govern "how fast your usage is growing", not "how much you've used". A burst of requests within a few seconds can be judged as a sharp increase and get a 429 even when you're still far from both ITPM and OTPM. Cron jobs and batch jobs that fire everything at once are the most likely to trip this.

**Is the status code 529?** 529 is `overloaded_error` — the service as a whole is overloaded, unrelated to your account, quota or egress. Wait a few minutes and try again. Treating it as your own problem and changing config is pure wasted effort.

One more counterintuitive point: if you've set a spend limit on yourself in the Console, hitting it returns **400**, not 429, with error type `invalid_request_error` and a message starting with `You have reached your specified API usage limits`. Don't assume a 400 means your request format is wrong — first check whether it's the limit you set yourself.

## Step two: whose quota is it actually counted against?

Once you've confirmed it's a rate-type 429, go to the rate limits page in the Claude Console and check your current tier and actual usage. There are two common misjudgments here.

**Misjudgment one: counting only a single process's requests.** Rate limits are set at the organization level, not the process level. You've got three containers, two scripts and a Claude Code session running — they all share the same organization's RPM and token quota. You have to add them up, not pick one to look at. Workspaces can also have their own limits; organization and workspace limits apply separately, and the stricter one wins.

**Misjudgment two: assuming "not many requests" means no rate limiting.** RPM is only one of three dimensions. A single request carrying tens of thousands of tokens of long context can have single-digit RPM while ITPM is already blown. Conversely, short requests fired too densely hit the RPM ceiling first. The docs also note that ITPM is cache-aware and by default only counts uncached input tokens, so requests that hit the cache consume less ITPM than they appear to — but that doesn't change the rule that hitting any one dimension returns a 429.

The official docs also note that limits are enforced with a token bucket algorithm, with capacity continuously replenished rather than reset at fixed intervals, so short bursts can exceed the limit. That also explains why you get a 429 when "I clearly didn't exceed my per-minute quota": you exceeded it within a single second.

## Step three: is the egress IP shared by a pile of calls?

If the first two steps are ruled out and the usage page still shows plenty left, yet the 429s keep coming — that's when egress comes into play.

Mechanically speaking, what the server sees is "how many requests came from this IP", not "how many accounts are behind this IP and how much each used". If dozens of users and multiple parallel instances sit behind one egress, everyone's requests aggregate into one IP's total on the server side and can easily cross some threshold, while each person's own usage page shows plenty of headroom.

The boundary has to be stated clearly: **neither Anthropic nor OpenAI has publicly confirmed rate limiting by egress IP**. OpenAI's rate limit docs only describe limits by organization and project, and the rate limiting details for subscription Claude Code are even less public. Right now "switching to a dedicated egress fixes it" is supported only by user reports and indirect evidence — a reasonable inference, not an official statement ([aicodingwiki.com](https://aicodingwiki.com/faq/ai-coding-429-rate-limit-fix/)). So treat this step as a controlled experiment, not a confirmed fix.

How to run that experiment:

1. Cut parallel instances down to 1–2 and resend the same request. If it recovers, it's concurrency stacking, not necessarily an egress problem.
2. Switch to a low-load, dedicated egress, keep your login state and calls on that same egress, and send it again. If it recovers immediately, shared egress is a strong suspect.
3. If it's still 429 after switching egress, and the error body is `Server is temporarily limiting requests` or capacity-type wording, that's a server-side capacity problem — wait 5–10 minutes.

When judging egress quality, don't just look at "can it connect". Use [https://ipnet.coffee/ip](https://ipnet.coffee/en/ip) to check the IP's type (residential / datacenter), ASN, DNSBL blacklists and reverse DNS. Datacenter IPs are commonly shared by many users; residential IPs are rarer but not a guarantee of exclusivity. What you really need to confirm is "is this egress used only by me", and no detection page can test that — only your own knowledge of the link.

One more easily missed spot: the browser and the terminal may go out through two different egresses. Everything looks fine when you test in the browser, but the script running the API goes through another path. The on-site article "AI egress IP checks: browser, terminal and mobile app must be tested separately" covers exactly this trap — worth a read before you start.

## Why is the troubleshooting order different for the web app and the API?

Because they draw from different things. The web app draws from the plan usage window; the API draws from organization-level rate limits plus spend cap plus ramp limits. The former just needs the window to roll over; the latter needs the error body to tell you which layer it is.

The most common consequence of fixing an API 429 with web-app experience is treating a "wait until the 1st of next month" problem as a "just switch nodes" problem — and after all that switching, it's still 429.

## A few specific questions

**The SDK auto-retries and it's still 429.** The official SDK retries connection errors, rate limits and 5xx twice by default and honors `retry-after`. If it still fails after retries, the wait time wasn't enough or it isn't a rate-type problem at all. You can raise `max_retries`, but confirm the error type first — don't keep retrying against a spend cap.

**How do you read the `anthropic-ratelimit-*` headers?** These headers tell you the strictest limit currently in effect, the remaining amount and the reset time. `anthropic-ratelimit-tokens-*` shows the value of whichever limit is currently strictest — if the workspace limit is stricter, these are the workspace's numbers. To know which workspace a request counts against, look at `anthropic-workspace-id`.

**You suspect a server-side outage.** First open [https://ipnet.coffee/status](https://ipnet.coffee/en/status) to see the real-time status of Claude, OpenAI, Cloudflare and other services, then decide whether to touch your own config. Changing local settings during a server-side outage only makes the problem harder to locate.

**Should you check the environment too?** API calls don't involve browser fingerprints or WebRTC, but if you also use Claude Code or the web app, egress, DNS and timezone still need to be consistent. Run through [https://ipnet.coffee/claude](https://ipnet.coffee/en/claude) to check egress IP purity, regional restrictions and DNS / WebRTC leaks — more thorough than staring only at the 429.

One last honest note: the hardest part of a 429 is never the rate — it's "you think you're on a dedicated egress, and you're not". No tool can confirm that for you; you have to ask about every segment of the link yourself.

## FAQ

### Is a claude api 429 the same cause as the web app's "too many requests"?

No. The web app draws from the plan's usage window — check Settings > Usage for the usage bar and reset time. The API draws from the organization's and workspace's RPM, ITPM and OTPM, plus the monthly spend cap and ramp limits. Quotas, reset times and error bodies all differ.

### I got a 429 but there's no `retry-after` header — what's going on?

Most likely the monthly spend cap. Per Anthropic's official docs, a 429 caused by the spend cap carries no `retry-after` and keeps failing until access is restored; retrying is useless. Either wait until 00:00 UTC on the first day of next month or apply for a higher limit.

### A single process isn't making many requests, so why am I still rate limited?

Two possibilities. One, rate limits are set at the organization level — multiple containers, scripts and sessions share the same quota, so you have to add them up. Two, RPM is only one of three dimensions; long-context requests can blow ITPM first. Also, limits are enforced with a token bucket, so a burst concentrated in one second can exceed them too.

### Does switching to a dedicated egress fix a 429?

Not necessarily, and that's an inference, not an official statement. Neither Anthropic nor OpenAI has publicly confirmed rate limiting by egress IP; "switch to a dedicated egress and it recovers" is currently backed only by user reports and indirect evidence. The right approach is to treat it as a controlled experiment: reduce concurrency and resend first, then try a low-load egress once. If it's still 429 afterward with a capacity-type error body, it's a server-side issue.

### Should 429 and 529 be handled separately?

Yes. 529 is `overloaded_error` — the service as a whole is overloaded, unrelated to your account, quota or egress. Just wait a few minutes and retry; no config changes needed. Treating a 529 as your own problem only wastes time.
