# Rate Limits

Learn how much you can send to the InternetData API, with a key or without one, what happens past a paid plan's quota, and how to handle each kind of 429.

This page explains how much you can send to the InternetData API, and how it answers once you reach a limit. The answer your code has to handle is a `429`, which means one of two things: a burst, which carries a `Retry-After` header that says how long to wait, or a spent day of lookups without a key, which carries none.

On the free plan, lookups without a key are limited to 100 a UTC day from each address, and a free key has no daily or monthly cap: past its organization's first 1,000 lookups each UTC day, its lookups answer the basics. On a paid plan, the monthly quota is the limit that matters, and past it lookups keep answering with fewer fields rather than failing. Database downloads spend no quota at all.

## Lookups on the free plan

Without a key, each address you call from gets 100 lookups a UTC day, address, AS and domain lookups alike, enough to try the API before you sign up. Past them, the API answers `429` without a `Retry-After` header until the next UTC day, and its message names where a free key comes from. A free key has no such daily limit.

A free key answers every field on its organization's first 1,000 lookups each UTC day, and the basics after them, with `cap_reached: true`. [Plans and fields](/get-started/plans-and-fields) lists the basics. A burst on the free plan, with a key or without one, can still get a `429` with `Retry-After`, as [Respond to a 429](#respond-to-a-429) describes.

`POST /batch` needs a paid plan. A batch of more than one item answers `401` with no key and `402` with a key on the free plan.

## Lookups on a paid plan

On a paid plan, its monthly quota is the limit that matters. No per-second limit is published, so send what your integration needs, and a burst can still get a `429` with `Retry-After`. A lookup is one address, one AS or one domain, and a batch counts each item in it.

A paid plan's month runs from your billing date to the same date the next month, not from the first of the calendar month. The [Entitlement](/api/entitlement/myEntitlement) endpoint returns how many lookups your key's organization has used, its quota and when the current window ends, so check it before a large batch.

## Past your quota

Overage is off until you turn it on in Billing. Until then, once a paid plan's monthly quota is used, its lookups still answer `200` with the basics and `cap_reached: true` until the month rolls over, and aren't charged.

Once you turn overage on, lookups past the quota are billed at your plan's overage rate, up to any cap you set. Past the cap, they answer with the basics again until the month rolls over or you raise the cap. An answer with the basics is never billed, even once you turn overage on or raise the cap.

Every answer to a paid key carries `cap_reached`, which stays `false` until the quota or the cap is reached. A burst of answers past it can still get a `429` with `Retry-After`, and its message says to raise the cap in Billing.

The official libraries raise `quota_exceeded` on an answer with `cap_reached: true`, free or paid, with status `200` and the answer on the error as `result`, and don't retry it. A lookup without a key past its address's 100 for the day raises the same kind with status `429` and no answer. [Handle a capped answer](/get-started/sdks#handle-a-capped-answer) shows how to tell the two apart and carry on with the basics.

## Database downloads

A database license is a contract, not a metered plan: use the [Database Download API](/api/database-v2/downloadDatabaseV2) for any dataset you license, or any Open one, as much as you like. A download counts against no lookup quota, and neither does a call for a database's metadata or checksums.

## Other endpoints

Every other endpoint has a rate limit of its own, set well above what an integration normally sends, and not published.

## Respond to a 429

A `429` with a `Retry-After` header is a rate limit, with a key or without one. Wait the number of seconds it gives, then send the same request again. The [official client libraries](/integrations/languages) already retry it for you.

A `429` without `Retry-After` answers a lookup without a key once its address has used the day's 100 lookups. A retry fails until the next UTC day, so send a free key instead. The official client libraries don't retry it.

The message in the body says which limit you met, so you can tell a burst from a spent day or a plan's limit in your logs:

| `error` | Who gets it |
| --- | --- |
| `rate limit exceeded` | Any caller, during a burst large enough that the API protects itself. |
| `rate limit for free lookups exceeded; retry shortly, or use a paid plan` | A caller on the free plan, with a key or without one, during a burst. |
| `lookups without an API key are used up for today; a free key answers on: https://app.internetdata.io/auth/signup` | A lookup without a key, once its address has used the UTC day's 100. It carries no `Retry-After`. |
| `rate limit for lookups past your overage cap exceeded; retry shortly, or raise the cap in Billing` | A paid key past its quota or overage cap, during a burst. |

A `429` never means that a paid plan's quota is spent: past it, lookups answer `200` with the basics, as [Past your quota](#past-your-quota) describes.

## OAuth sign-in

Polling [for a token](/api/authorization/oauthToken) faster than the device authorization's `interval` answers `slow_down`, which means widen your interval and keep it widened. [Starting](/api/authorization/oauthDeviceAuthorization) too many device authorizations from one address answers `slow_down` too.

## Next steps

You now know which limits apply to your plan and how to handle each `429`. To see how many lookups you've used, call the [Entitlement](/api/entitlement/myEntitlement) endpoint, and to compare the plans, see [pricing](https://internetdata.io/pricing). Before you put an integration in front of real traffic, review the [go-live checklist](/get-started/production).
