Rate Limit
Discover how TheirStack API rate limits work across free and paid tiers, with fixed windows, IETF-compliant headers, and retry best practices.
All API endpoints are rate limited to ensure reliability and fair usage. When a limit is exceeded, the API returns HTTP 429 Too Many Requests. Limits are applied per user with fixed windows, which reset at the start of each second, minute, hour and day (UTC); multiple windows may apply simultaneously.
Tiered endpoints and limits
Endpoints covered by tier-based limits:
- POST
/v1/jobs/search(Jobs Search) - POST
/v1/companies/search(Companies Search) - POST
/v1/companies/technologies(Technographics) - POST
/v1/companies/buying_intents(Buying Intents)
Shared limits across all four endpoints:
| Tier | API limits |
|---|---|
| Free | 4/second, 10/minute, 50/hour, 400/day |
| Paid | 4/second |
- Paid tier applies to users who have made at least one payment.
- Free tier applies to all other users (users who have never paid or users without any payments done).
Multiple limits are applied simultaneously. A request is rejected if it exceeds any active window.
Queue enrichment and prioritize interactive searches
Two types of work need different priorities in your integration:
- Interactive searches: a user clicks a button or opens a page and waits for the results. Give these calls priority within the available allowance.
- List enrichment: a process makes hundreds or thousands of similar lookups, such as counting jobs for each company in a list. Queue these calls as background work. A user action that starts a large enrichment run still needs the same pacing.
Use a shared queue for calls that draw from the same rate-limit budget. Give interactive searches preference when choosing which calls to dispatch next, while keeping enrichment progressing within the available allowance. This scheduling preference does not require pausing enrichment. Dispatch all calls within the advertised limits and retry 429 responses with exponential backoff, respecting the reset time. Apply the same scheduling preference to queued retries. These requirements still apply when a higher or separate limit has been agreed. Repeated enrichment calls alone do not justify a higher rate limit.
When a higher limit helps
We are happy to discuss more capacity as your integration grows. A short spike and sustained demand need different approaches. If a process submits a large batch and the queue clears before more work arrives, pacing absorbs the spike. Raising the per-second ceiling to match that one burst usually adds capacity the integration does not need the rest of the time.
A higher allowance can help when new work keeps arriving faster than the queue can process it, so the backlog keeps growing instead of clearing. This can happen with interactive searches or enrichment, for one user or many. We assess ongoing demand, how the results are used and available capacity together. The same reasoning applies to reseller end-user allowances and the workspace's aggregate limit.
Tell us about your integration, including whether the calls serve an interactive page or bulk enrichment and how you queue and retry them. We can review the traffic with you and work out the capacity it needs.
Separate limits for reseller end users
If you resell TheirStack data to your own users, each of them can get a rate-limit allowance of their own. We enable this on request for each reseller workspace. Once it is on, every end user you identify gets the limits in the table above, counted separately, so one user's batch no longer slows down another user's search. Queues, pacing and retries still apply to each allowance.
Until we confirm it is on for your workspace, your calls count against the limits of the user whose API key makes them. Sending the header alone does not split the limit or raise it.
Send this request header on each call you make for an end user:
X-TheirStack-End-User-Id: customer_4821Use a stable, opaque identifier from your system, or a stable hash of it. Send the same value for every call belonging to that end user and different values for different end users. Do not send names, email addresses or phone numbers. The identifier does not authenticate the end user or change billing.
Keep each end user's identifier stable across sessions, background jobs and retries. Do not generate random values per request or split one user's workflow across several identifiers to get around their limit. Calls without the header still count against the API key's user.
If we detect identifier rotation or made-up end users used to get around limits, we will block the offending traffic, lower the permitted rate and turn separate limits off for the workspace. All of its end users will then share one allowance again, so background batches and interactive searches will compete for it.
Contact support to turn on separate limits for your workspace. We will confirm the limits that apply when we do.
Rate limit headers
The API returns rate limit information in every response. We follow the IETF HTTPAPI draft for RateLimit headers: RateLimit header fields for HTTP. When multiple rate limits apply, header items are comma-separated and ordered consistently across headers.
IETF compliant headers
RateLimit: Current quota status per policy. Format:"<policy-name>"; r=<remaining-requests>; t=<time-until-reset>; pk=<partition-key>.RateLimit-Policy: Applied policy definition. Format:"<policy-name>"; q=<limit>; w=<window-seconds>.
Other headers
These are included for client convenience:
RateLimit-Limit: Total allowed requests for each windowRateLimit-Remaining: Requests remaining in each windowRateLimit-Reset: Seconds until the current window resets
The order of values in legacy headers matches the order of RateLimit items.
Example response headers:
RateLimit: "per-second";r=3;t=1;pk="dXNlcjoxMjM0", "per-minute";r=9;t=60;pk="dXNlcjoxMjM0", "per-hour";r=49;t=3600;pk="dXNlcjoxMjM0", "per-day";r=399;t=86400;pk="dXNlcjoxMjM0"
RateLimit-Policy: "per-second";q=4;w=1, "per-minute";q=10;w=60, "per-hour";q=50;w=3600, "per-day";q=400;w=86400
RateLimit-Limit: 4, 10, 50, 400
RateLimit-Remaining: 3, 9, 49, 399
RateLimit-Reset: 1, 60, 3600, 86400Credit cost headers
Every response from a billable search tells you what that call cost and how much you have left, so you can track spend without a separate call to the credit balance endpoint. The endpoints are the four listed above.
X-Credits-Charged: the credits this response charged. A free preview or a search that returns no new records reports0.X-Credits-Remaining: the credits left after this charge. Omitted on a free preview that never needed to read your balance.
The charge is the same amount that later lands on your usage page. Both headers are listed in Access-Control-Expose-Headers, so a browser client can read them cross-origin.
Example response headers:
X-Credits-Charged: 25
X-Credits-Remaining: 1975Exceeding limits and best practices
- The 429 error says which limit you hit and how many seconds to wait. Calls made before then are rejected and still count toward your limits.
- Retry with exponential backoff on HTTP 429 responses.
- Monitor
RateLimitorRateLimit-RemainingandRateLimit-Resetto avoid hitting limits. - Prefer batching and caching to reduce request counts.
- Avoid concurrent bursts that violate per-second limits.
How is this guide?
Last updated on
Pagination
Learn how to paginate TheirStack API responses with page-based and offset-based methods, including tips for faster queries on GET and POST endpoints.
Counting results
How to count the jobs or companies that match a search, exactly and without getting the records, through the API or the MCP, and what a count costs in credits.
