Rate Limits & Tokens
The WHR APIs controls usage in two ways:
- Request limits cap how many calls you can make in a given time window.
- Tokens are credits charged for the data you receive. Each endpoint charges tokens in its own way.
Which limits apply depends on your account type. Trial accounts have request limits and no tokens. Paid accounts have tokens and no request limits. The tracker APIs are the exception: they use tracker tokens, and trial accounts always have them.
Limits are per API
When you enable several APIs (for example event.search and company.search), they all share one username and password. Each API still has its own limits, counters and token balance.
So a trial account with three APIs enabled gets 25 requests per day for each API. Using up event.search doesn't affect company.search.
Account types at a glance
| Trial | Paid | |
|---|---|---|
| Requests per day | 25 per API | No limit |
| Requests overall (lifetime) | 150 per API | No limit |
| Results per page | 5 | Up to the endpoint maximum (see below) |
| Validity | 15 days from creation | No expiry |
| Token balance | Not used | Set at upgrade (tokens) |
| Tokens per record | — | Set at upgrade (tokenPerRecord, default 1) |
| Response fields | Depends on plan (basic / advanced) | Depends on plan (basic / advanced) |
Enterprise and custom contracts can have other limits, such as per-minute or per-hour caps, a daily token budget, or IP allow-listing. If your contract includes any of these, they work as described below.
Request limits
How they're counted
- Every request that passes authentication counts against your limits, whether or not it returns data. This includes
countOnlyrequests and requests that later fail validation with a400. - Requests rejected for bad credentials, an expired account, an IP restriction, or insufficient tokens are not counted.
- Requests rejected because a limit was already reached are not counted.
Windows
Limits use fixed windows, not rolling ones. A counter goes back to zero when its window resets. It does not count back over "the last 24 hours".
| Limit | Resets |
|---|---|
| Per minute (custom contracts only) | At the start of every minute |
| Per hour (custom contracts only) | At the start of every hour |
| Per day | Once a day, at the daily reset |
| Overall | Never. This is a lifetime cap for the credential. |
The trial's 150-request overall limit never resets. After a trial API has used 150 requests, it stops working for the rest of the trial, even if the 15 days haven't passed. Upgrade to keep using it.
When a limit is reached
The API returns HTTP 429 Too Many Requests:
{ "error": "No. of request exceeded for this Day." }
| Message | Meaning |
|---|---|
No. of request exceeded for this Minute. | Per-minute limit reached |
No. of request exceeded for this Hour. | Per-hour limit reached |
No. of request exceeded for this Day. | Daily limit reached. Wait for the daily reset. |
No. of request exceeded. | Lifetime (overall) limit reached. Upgrade or contact support. |
user/searchreturns the same 429 in a different format:{ "status": "error", "message": "API request limit exceeded for this day" }(ormin,hr,overall).
Page size limits
Every search endpoint caps how many records you can get in one request.
| Endpoint | Page-size parameter | Default | Maximum |
|---|---|---|---|
event/search | max | 50 | 50 |
event/autosuggest | — | 10 (fixed) | 10 |
company/search | max | 10 | Your per-page limit |
company/autosuggest | — | Fixed | — |
user/search | max | 5 | Your per-page limit |
place/search | max | 10 | Your per-page limit |
contact/search | max | 10 | — |
On a trial account the per-page limit is 5:
event/search,company/searchandplace/searchsilently lower a largermaxto 5.user/searchrejects a largermaxwith HTTP 403:Pass{ "status": "error", "message": { "message": "This amount of data not allowed on single page", "data_page_per_limit": 5 } }max=5or lower on trial accounts.
Some custom contracts also cap the total number of records you can page through (max × page). If you go past that cap, event/search returns HTTP 403 with Requested data size exceeds the allowed limit.
Tokens (paid accounts)
Balance
When you upgrade an account, it gets a token balance for each API (tokens). It also gets a token cost per record (tokenPerRecord, which defaults to 1). Upgrading again replaces the balance. It doesn't add to it.
Tokens are deducted after a successful response. You're charged only for data you actually received.
What each endpoint charges
In the table below, T is your tokenPerRecord.
| Endpoint | Charge |
|---|---|
event/search | T for each event returned. See Repeat-fetch discount and Incremental sync for exceptions. |
event/autosuggest | Free by default. When repeat-fetch billing is on for your account, T for each event suggested that you haven't already fetched. |
company/search | Not charged |
company/autosuggest | Free by default. When per-record billing is on for your account, T for each company suggested. |
user/search | T for each user returned |
place/search | A flat T for each request that returns at least one result. The number of results doesn't change the cost. Empty results are free. |
contact/search | T for each email and T for each phone number in the response. A contact with both costs 2T. A contact with neither is free. Leave email and phone out of include to pay nothing. |
The following requests are never charged:
countOnly=truerequests- Requests that return no records
- Requests that fail with an error
Repeat-fetch discount (event endpoints)
Some accounts have repeat-fetch billing turned on. On these accounts, an event you've already received isn't charged again unless it has been modified since you last fetched it. Ask your account manager whether this is on for your account.
Incremental sync with lastModified (event/search)
When you filter with lastModified_*, you're only charged for events that were modified after the timestamp you pass. Use this to keep a local copy up to date cheaply.
Seeing what you were charged for
| Endpoint | Field on each record | Value |
|---|---|---|
event/search | tokenDeducted | "yes" / "no" |
When you run out of tokens
The API returns HTTP 429:
{ "error": "Token exhausted. Please recharge or contact support. Remaining token: 12." }
If your contract has a daily token budget, you'll see this message instead:
{ "error": "Daily Token exhausted. Please recharge or contact support. Daily remaining token: 4." }
user/search returns HTTP 403 instead:
{ "status": "error", "message": { "message": "Token exhausted. Please recharge or contact support.", "remaining_token": 3 } }
Tracker tokens
An account can have a tracker token limit. Trial accounts always do. Trial tracker APIs have no request limit. Only the tracker tokens and the trial expiry apply.
- Enabled types only. You can create trackers, and add events or companies to them, only for the tracker types your account has enabled: events, companies or both. Other types return HTTP 403 (for example
Company trackers are not enabled for this account). - One token per new event or company. Each event or company new to your account uses one token of its type. The token is used the first time it's added to any of your trackers.
- No repeat charge. Adding the same event or company to another tracker, or adding it again later, uses no token.
- No refunds. Removing an event or company from a tracker doesn't return its token.
- Websites count once matched. An item added by website uses a token only once it matches an internal event or company.
When you run out of tracker tokens
New events or companies aren't added. The request still succeeds, and the rest of it is saved. Each item that couldn't be added is reported in entities.errors, for example No event tracker tokens left.
Seeing what you used
The tracker/upsert response includes tokens: the tokens used by the request and those left, for the tracker's type.
{
"data": {
"id": "3c678c5c76ebb0b53bab7333d33cfa61",
"action": "updated",
"entities": {
"inserted": 2,
"updated": 1,
"failed": 1,
"errors": [
{ "index": 3, "uuid": "e2c420d928d4bf8ce0ff2ec19b371514", "message": "No event tracker tokens left" }
]
},
"tokens": { "event": { "used": 2, "remaining": 0 } }
}
}
Trial expiry
A trial is valid for 15 days after it's created. After that, every request to that API returns HTTP 403:
{ "error": "Trial account has expired. Please upgrade to continue." }
Upgrading removes the expiry for good. Your username and password stay the same.
Custom contracts may also have a fixed access end date. After that date, requests return HTTP 403 with API Access Expire At : <date>.
Server load protection
event/search and event/autosuggest can return HTTP 503 when the platform is under very heavy load:
{ "error": "Due to heavy load on server,your request cannot be served" }
These requests don't count against your limits and aren't charged. Wait a few seconds, then try again.
Status codes summary
| Status | Cause |
|---|---|
400 | Missing username or password, or an invalid parameter |
403 | Wrong credentials, expired trial or access, IP not allowed, API not enabled for this credential, page size over the limit (user/search), out of tokens (user/search), or tracker type not enabled (tracker APIs) |
429 | Request limit reached, or out of tokens / daily tokens |
503 | Temporary server overload (event endpoints) |
Best practices
- Retry 429s and 503s with exponential backoff. Don't retry a daily or overall limit right away. It won't reset until the next window, or ever.
- Use
countOnly=trueto size a query before fetching it. It costs no tokens. It does still count as one request. - Sync events incrementally with
lastModified_gteinstead of downloading everything again. - Ask for only the fields you need on
contact/search. Each email and phone number costs tokens. - Check your usage with
account/mebefore running large batch jobs. - Store results instead of fetching the same records again, especially on accounts without the repeat-fetch discount.