Authentication and limits
How the API checks each request — key, permissions, IP allowlist, origins, rate limit and monthly quota — and what each refusal means.
Your key¶
Every request carries one of your keys in the X-API-Key header. Keys start with itk_live_. A key belongs to your account, not to you: if you work in a team, every member's keys draw on the same plan and quota.
The BI feed used by Power BI, Excel and Tableau accepts the same key through Basic authentication: user name apikey, password your key. See Connect a BI tool.
What is checked on each request¶
| Check | Where you set it | Refused with |
|---|---|---|
| The key exists, is not revoked and not expired | API keys | 401 |
| The API is in the key's permissions and in your plan | API keys, Plans | 403 |
| The caller's IP is in your allowlist (when you set one) | Settings › Security | 403 |
A call carrying an Origin comes from an allowed origin (when you set some) |
Settings › Security | 403 |
| The per-minute rate limit is not exceeded | your plan | 429 |
| The monthly quota is not spent | your plan | 429 |
Rate limit and monthly quota¶
- The rate limit is a number of requests per minute, shared by all your keys. Each response tells you where you stand in the
x-ratelimit-limitandx-ratelimit-remainingheaders. When you hit it, wait for the next minute and retry with a backoff. - The monthly quota is counted per calendar month, in UTC. Most requests cost one unit. Requests that return many rows in one go — the bulk end-of-day route and the BI feed — cost one unit per 100 rows, and a delivered webhook call costs the amount shown next to its event. When the quota is spent, requests are refused until the first day of next month, or until you change plan.
You are warned at 80 % and 100 % of the quota if Usage warnings is on in Settings. Your consumption, day by day and endpoint by endpoint, is on Usage.
Response format¶
Endpoints that offer a format parameter return JSON unless you ask for CSV. You can make CSV the default for your account in Settings › General.
Common errors¶
Every refusal comes with a message that names its cause, for example API key expired, This API key does not have the news permission or Monthly quota of 50000 requests reached. It resets on …. Read it first.
| Status | Most likely cause | What to do |
|---|---|---|
401 |
Missing, mistyped, revoked or expired key | Check the header name is exactly X-API-Key (the old AppKey header is no longer accepted); check the key's status on API Keys |
403 |
The API is not in the key's permissions or not in your plan; your IP or origin is not allowed; or the account is suspended | Create a key with the right permissions, see which APIs your plan includes, or check Settings › Security |
429 |
Rate limit or monthly quota reached | Slow down, or check Usage to see which one |
5xx |
A problem on InfoTrie's side | Retry with a backoff; live status is on infotrie.com/status |