What rate limiting is
Rate limiting is a rule enforced by a service about how fast it will accept requests from any one caller. The rule has three parts: who is being counted, what is being counted and over what period. A typical limit might read as a number of requests per minute per API key. As long as a caller stays under the number, requests are processed normally. Once the caller goes over, the service stops accepting more until enough time has passed.
The rejected request is not an error in the usual sense. Nothing is broken, and the same request would succeed a little later. By convention, HTTP services signal this with status code 429, which means too many requests. Some services also send a header telling the client how long to wait. A well-behaved client reads that signal, pauses and tries again, instead of treating it as a failure.
Why services use it
Every service has finite capacity. Without limits, a single client with a bug, such as a retry loop that never backs off, can consume all of it and degrade the experience for everyone else. Rate limiting contains that damage to the caller responsible. It also blunts deliberate abuse, including attempts to guess credentials by trying many values or to scrape an entire dataset in one sitting.
Limits also make a service predictable. Operators can plan capacity when they know the most any customer can send. Customers benefit from that stability, even if the limit occasionally slows their own work. For services where each request has a real cost, a limit is a safety net for the customer as well: a runaway script hits the ceiling and stops, instead of running up an unbounded bill.
How rate limiting works
A limiter keeps a counter for each identity it tracks and consults it on every request. The identity is commonly an API key, an account, an IP address or a combination. Using a key attributes usage to a customer. Using an IP address covers requests that arrive without valid credentials. Many services apply both, so that neither an authenticated flood nor an anonymous one gets through.
The counting method varies. A fixed window resets the count at regular boundaries, which is simple but allows a burst at the edge of two windows. A sliding window smooths that out by looking at a moving interval. A token bucket adds tokens at a steady rate up to a maximum and spends one per request, which permits short bursts while holding the long-run average. A leaky bucket queues requests and releases them at a constant pace.
- Fixed window: N requests per clock interval; simple, bursty at boundaries.
- Sliding window: N requests in any trailing interval; smoother, more bookkeeping.
- Token bucket: steady refill with a burst allowance; common for APIs.
- Leaky bucket: constant outflow; evens traffic by delaying it.
- Concurrency limit: a cap on requests in flight at once, not per period.
A hypothetical example
Imagine an address-validation service that allows each key 60 requests per minute using a token bucket with a burst size of 10. A customer's import job starts and fires 25 requests in the first second. The first 10 succeed because the bucket was full. The next 15 receive 429 responses. Tokens refill at one per second, so a client that waits and sends one request per second from then on will never see another rejection.
A naive client retries all 15 rejected requests at once, gets rejected again and repeats, making no progress. A better client waits one second after the first 429, then two, then four, adding a small random delay each time so that parallel workers do not retry in step. It finishes the import a little later than hoped, with every record processed once. The limits and numbers here are invented to show the mechanism.
Handling limits as a client
The standard technique is exponential backoff with jitter. On a 429, wait a short interval and retry. If rejected again, double the wait, up to a sensible maximum, and add randomness so that many clients do not all retry at the same moment. If the response includes a header stating when to retry, honour that value in preference to your own guess. Cap the number of attempts so a persistent problem surfaces instead of looping forever.
Better still, avoid hitting the limit. Send requests at a steady pace under the documented rate, using a queue or a client-side limiter. Limit how many requests run in parallel. Cache results you have already fetched instead of asking again. Where a provider offers a batch or asynchronous endpoint for large jobs, use it, since it is designed to accept the whole workload once and process it at the provider's pace.
Common mistakes
The most harmful mistake is retrying a 429 immediately and repeatedly. This turns a brief pause into a sustained flood and can extend the period during which you are blocked. A related mistake is treating every error the same way. A 429 means slow down and retry. A 401 means the credentials are wrong, and retrying will never help. A payment or quota error means you have run out of something that waiting will not restore.
Other mistakes come from misreading the scope of a limit. Developers assume it applies per machine when it applies per key, then deploy ten workers that share one key and wonder why they are throttled. They test with a small sample, see no rejections and ship without any backoff logic. Or they let an AI agent issue many tool calls in parallel with no pacing, which is an easy way to meet a limit quickly.
How to evaluate rate limits
When choosing or integrating with a service, find out what is limited and how. Is the limit per key, per account or per IP? Is it requests per period, concurrent requests or both? Does the service publish the numbers, and does it tell you in the response when you can retry? Is there a path to higher throughput if your workload grows? Compare the answers with your expected peak, not your average.
In your own system, monitor the share of requests that receive a 429 and how long your jobs spend waiting. A small, steady trickle is normal for a client running near the limit. A sudden rise points to a new source of traffic or a retry bug. Test your backoff logic deliberately by simulating rejections, because code paths that only run under throttling tend to be the least exercised.
How it shows up in SimilarIQ
The SimilarIQ API uses a standard per-key and per-IP limiter that smooths bursts. A request that exceeds it returns 429. This page does not state specific numeric limits; for dedicated throughput, the documented route is to email info@similariq.ai. The 429 code is distinct from the others you may see: 401 for a bad or missing key, 402 when you are out of credits, and 502 when a search failed, in which case the credit is refunded and a retry is safe. The error handling page lists them.
Two facts shape how you pace calls. A search is a fresh research pass that takes roughly 30 to 60 seconds, so throughput is governed by duration as much as by request counts. And large lists have their own route: bulk search accepts a file of domains, runs asynchronously at 1 credit per domain and gives you a job to poll and download. The guide on bulk researching a list of domains explains it, and the REST API page covers single calls.
Related terms
Rate limiting belongs with a small family of operational terms. An API key is the identity most limits are attached to. A quota is a longer-horizon allowance, such as a total number of calls per month, and is different from a rate, which governs speed. Throttling usually means slowing requests down instead of rejecting them, though the words are often used interchangeably.
Backoff is the client-side discipline of waiting longer after each rejection. Idempotency is the property that makes a retry safe, because repeating the request does not repeat its effect. In agent systems, tool calling is the activity being limited, and a spend cap is the financial counterpart to a rate limit: one bounds speed, the other bounds cost.
Frequently asked questions
What is rate limiting in an API?
It is a cap on how many requests a caller can make in a set period. Requests under the cap are processed normally. Requests over it are rejected or delayed until the period resets, which protects the service and keeps capacity fair across customers.
What does HTTP 429 mean?
It means too many requests. The service is telling you that you have exceeded a rate limit and should slow down. The request itself is not faulty and will normally succeed if you wait and send it again.
How should I handle a 429 response?
Pause before retrying, and increase the pause after each consecutive rejection, adding a little randomness. If the response says how long to wait, use that value. Limit the total number of attempts so that a lasting problem is reported instead of retried forever.
What is the difference between a rate limit and a quota?
A rate limit governs how fast you can send requests, for example per second or per minute. A quota governs how much you can use in total over a longer period. You can stay within a quota and still hit a rate limit by sending requests too quickly.
What is exponential backoff?
It is a retry strategy in which the wait between attempts grows after each failure, commonly by doubling. Adding random jitter to each wait prevents many clients from retrying at the same moment. It is the usual way to recover from rate limiting.
Does SimilarIQ rate limit API requests?
Yes. The API applies a standard per-key and per-IP limiter that smooths bursts and returns 429 when exceeded. For large lists, the bulk endpoint processes many domains asynchronously, and for dedicated throughput you can email support.