Rate limits & credits
Every API key belongs to an account, and the plan of the account sets your usage limits. This page explains each limit, which requests cost a credit, and what happens when you reach a limit.
For the numbers of your plan, see the finlight dashboard. To compare plans, see the pricing page. Plans are Launchpad (free), Pro Light, Pro Standard, Pro Scale and Enterprise.
The usage limits
- Name
Monthly credits- Description
REST requests use credits from a monthly allowance. Every request costs one credit. The allowance starts again with each billing period. This is the same counter that v1 and v2 call the monthly request quota: v1, v2 and v3 requests all draw from it. When it is used up, REST answers
429withlimitType: "monthly".
- Name
Burst limit- Description
A limit on REST requests per 10 seconds. It smooths out spikes. Not every plan has one. When you go over it, REST answers
429withlimitType: "burst"and aRetry-Afterheader.
- Name
WebSocket connections- Description
How many WebSocket connections your account can keep open at the same time, across all its keys. Enriched and raw connections share this limit. A plan without WebSockets gets
403at connect.
- Name
WebSocket quota- Description
How many messages the WebSocket can deliver to you per billing period. When it is used up, your open connections are closed and new ones are refused until the next period.
- Name
Webhook quota- Description
How many webhook deliveries you can receive per billing period. A second limit sets how many webhooks you can create. When the quota is used up, new deliveries stop until the next period.
WebSocket and webhooks do not use credits. They only count against their own quotas.
Credits per request
| Request | Credits |
|---|---|
POST /v3/articles/search | 1 per page |
GET /v3/articles/{id} | 1 |
GET /v3/articles/by-link | 1 |
GET /v3/companies (search with q, or several companies with ids) | 1 per request, however many ids you ask for |
GET /v3/companies/{companyId} | 1 |
GET /v3/sources | 1 |
v1 and v2 requests, GET /v2/sources included | 1 |
| WebSocket messages | No credits. They count against the WebSocket quota. |
| Webhook deliveries | No credits. They count against the webhook quota. |
There is no extra charge for blocks or filters. A search with include: ["companies", "events"] costs the same as one without. Each page of a search costs one credit, so a walk through 5 pages costs 5 credits.
Which answers use a credit
Every request costs 1 credit, on the article routes and on the company and source lookups alike. A request is counted when it arrives, after the key check. So a request that then fails, for example with a validation error, a 404 or a burst 429, still counts toward your monthly limit. A 304 Not Modified on a lookup costs 1 credit too. A burst 429 that is retried counts twice: once for the refused request and once for the retry. The usage in the dashboard lists every request that cost a credit, error answers included.
These requests never count, on any route:
- A missing or wrong API key (
401). - A
403because your plan has no company data. - The monthly
429itself, once your credits are used up. - A request body that is not valid JSON.
- A route that does not exist.
The client libraries check simple mistakes (such as limit: 0 or an empty languages list) before they send anything. Those cost nothing.
The burst limit counts every request that passes the key check and the monthly limit, errors and 304 answers included. A monthly 429 and the 403 for a plan without company data do not count toward it. It protects the service and has nothing to do with billing.
When you hit a limit
| Situation | What you get | What to do |
|---|---|---|
| Too many REST requests in 10 seconds | 429 with limitType: "burst" and Retry-After | Wait Retry-After seconds, then retry once. Send fewer requests in parallel. |
| Monthly credits used up | 429 with limitType: "monthly", no Retry-After | Do not retry. Wait for the next billing period, or upgrade. |
| Too many WebSocket connections | 403 at connect | Close a connection you no longer need, or connect with x-takeover: true. |
| WebSocket quota used up | 403 at connect, and connection.preempted with reason: "quota_exceeded" on open connections | Wait for the next period, or upgrade. |
| Webhook quota used up | New deliveries stop. The webhook shows "Over quota" in the dashboard. | Wait for the next period, or upgrade. |
| Too many webhook tests | 429 from the test button after more than 10 tests within a minute (per account) | Wait a minute. |
The error bodies are explained on Rate limited and Forbidden.
The two kinds of 429
Tell them apart by the limitType member of the error body, not by the detail text. The limitType list can grow; treat a value you do not know like monthly.
Response (429): burst, with Retry-After: 7
{
"type": "https://docs.finlight.me/errors/rate-limited",
"title": "Too many requests",
"status": 429,
"detail": "Throttling Exception: Exceeded rate limit of 5 requests per 10 seconds.",
"code": "RATE_LIMITED",
"requestId": "req-123",
"limitType": "burst"
}
Retry-Afteris only sent withburst. It is the number of seconds until the 10-second window ends, from 1 to 10.monthlyhas noRetry-After, because the wait lasts until your next billing period.- There are no other rate limit headers.
What the client libraries do
- A burst
429is retried once, after exactlyRetry-Afterseconds (10 when the header is missing). This is on by default and does not count against the normal retries. Turn it off withretryOnBurst: 'off'(TypeScript) orretry_on_burst="off"(Python). - A monthly
429is never retried. The call fails at once, also insidesearchAll. searchAllstops after 10 pages by default, because every page costs a credit. You can change this withmaxPages(Python:max_pages).- The WebSocket streams wait for a used-up WebSocket quota. By default they try again once per hour and report each wait.
Webhook deliveries and retries
- Only the first delivery attempt counts against the webhook quota.
- When your endpoint fails, finlight retries up to 3 times (after 10, 30 and 60 minutes). Retries do not count against the webhook quota or the daily usage. They are sent even if the quota was reached after the first attempt.
- When the quota is used up, no new first attempts are made until the next period. Retries of earlier attempts still go out.
- Test sends from the dashboard count in the daily usage. They are not sent while the quota is used up.
See Delivery & retries and Testing.
How enforcement works
- Per account and in real time. All keys of your account share the same counters. The limits are checked on every request. Once a limit is reached, the next request fails at once.
- The dashboard usage is not live. The usage in the finlight dashboard is updated about once a day and shows activity up to the previous day. Your remaining credits for today can differ from what it shows.
- Counters start again at the beginning of each billing period, so a monthly
429clears on its own. - Your plan's date window is not an error. If you ask for articles older than your plan allows, the date range is cut to your window without an error. You simply get fewer results. See Plans & entitlements.
Saving credits
- Ask for up to 100 articles per page with
limit. Fewer pages mean fewer credits. - Use the WebSocket or webhooks for new articles instead of polling the search.
- Keep company records for a day (
Cache-Control: max-age=86400) before you ask again. A revalidation withIf-None-Matchis a request and costs 1 credit, even when the answer is304 Not Modified. It only saves the download. The SDKs keep no cache, so keep the records in your own code. With the SDKs you can pass the storedETagasifNoneMatch. - The source list changes rarely. Fetch it once and keep it, for example for a day.
- Use
includefreely. Blocks never cost extra.