Docs
Rate limits & credits
What a request costs, how fast you can go, and what the headers say.
Two things are counted for an account: how fast it calls, and how many credits it spends.
Credits
| Request | Cost |
|---|---|
| A card, set or sealed product by id | 1 |
| The prices of a card or a sealed product | 2 |
| The prices of up to 25 items in one request | 4 |
| The price history of a card or a sealed product | 5 |
| A list of games or sets | 1 |
| A list of cards or sealed products | 1 per 50 rows requested |
| /v1/me and the public routes | 0 |
| Any 4xx, 5xx or 304 | refunded |
The cost is charged before the request runs and given back if the response carries no data. An error never costs a credit.
Headers on every response
| Header | Meaning |
|---|---|
| X-Credits-Cost | What this request cost. |
| X-Quota-Limit | Credits in your period. |
| X-Quota-Remaining | Credits left after this request. |
| X-Quota-Reset | When a paid period renews. Absent on the trial. |
| RateLimit-Limit | Requests per second on your plan. |
| RateLimit-Remaining | Requests left in the current second. |
| Retry-After | On a 429: seconds to wait. |
Rate
Each plan has a limit per second, per minute, and on requests in flight at once. Going over returns 429 with Retry-After. A refused request is not counted against you.
The trial
The trial is 800 credits in total, with at most 200 a day. When it is used up the API returns 403 TRIAL_EXPIRED. There is no Retry-After on that response, because the credits do not come back.