Rate limits
Every plan has two limits: a speed, the number of requests your key can send in any 60 seconds, and a monthly
allowance of requests. Going over the speed answers 429 with a Retry-After header; nothing is counted, so wait
and send again. Running out of the monthly allowance answers 402 until the month resets or you add requests.
| Plan | Speed | Requests a month |
|---|---|---|
| Free | 30 requests a minute | 100 |
| Starter | 60 requests a minute | 3,000 |
| Growth | 60 requests a minute | 15,000 |
| Pro | 60 requests a minute | 40,000 |
| Scale | 120 requests a minute | 100,000 |
| Business | 120 requests a minute | 250,000 |
| Volume | 240 requests a minute | 500,000 |
| Unlimited | 240 requests a minute | Unlimited |
How the speed works
- The window slides: at any moment, your key may have sent at most your plan’s number of requests in the last 60 seconds. There is no burst allowance on top and no reset at the top of the minute.
- The speed is per API key. It counts every call to an endpoint that can use a request (searches, lookups, starting a batch job), successful or failed; a call refused for a bad parameter does not count. Free calls (usage, request history, Best Offer lookups, batch status and CSV) do not count toward it.
- Some lookups have their own limit on top of the plan’s speed: photo search 20 a minute, PSA whole-set lookups 6 a minute, Best Offer lookups and request history 30 a minute, deep MySlabs searches about 3 a minute.
- A batch job is one call to start, whatever its size; its keywords then run in the background, not against your speed.
Headers
Successful answers tell you where you stand:
| Header | Meaning |
|---|---|
X-RateLimit-Limit | Requests your plan allows in the window |
X-RateLimit-Window | The window in seconds, always 60 |
X-Usage-Remaining | Plan requests left this month (not sent on Unlimited) |
X-Credits-Remaining | Extra requests left, when you have them |
Retry-After | On 429, 502, 503 and 504: seconds to wait |
GET /account/usage returns the same numbers, for free: see usage.
A 429 answer
{
"error": "Too many requests: your plan allows 60 requests a minute. Retry after 12s.",
"code": "rate_limited",
"requestId": "req_3f9c2a7d0b1e4c58a6f2d9e1b7c4a0f3"
}with Retry-After: 12. A 429 is never counted against your monthly requests.
Retry code
Python
import time, requests
def get(path, params, attempts=5):
for attempt in range(attempts):
r = requests.get(
f"https://api.sellercomps.com{path}",
params=params,
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=90,
)
if r.status_code in (429, 502, 503, 504):
time.sleep(int(r.headers.get("Retry-After", 2 ** attempt)))
continue
r.raise_for_status()
return r.json()
raise RuntimeError(f"gave up after {attempts} tries: {r.status_code}")
data = get("/scrape", {"keyword": "nintendo switch oled"})Node
async function get(path, params, attempts = 5) {
for (let attempt = 0; attempt < attempts; attempt++) {
const url = new URL(`https://api.sellercomps.com${path}`);
url.search = new URLSearchParams(params).toString();
const res = await fetch(url, { headers: { Authorization: "Bearer YOUR_API_KEY" } });
if ([429, 502, 503, 504].includes(res.status)) {
const wait = Number(res.headers.get("retry-after")) || 2 ** attempt;
await new Promise((r) => setTimeout(r, wait * 1000));
continue;
}
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
return res.json();
}
throw new Error(`gave up after ${attempts} tries`);
}
const data = await get("/scrape", { keyword: "nintendo switch oled" });cURL
curl --retry 5 --retry-all-errors -G "https://api.sellercomps.com/scrape" \
--data-urlencode "keyword=nintendo switch oled" \
-H "Authorization: Bearer YOUR_API_KEY"curl --retry waits as long as Retry-After asks on 429 and 503.
Staying under the limit
- Pace yourself: at 60 requests a minute, one request a second never sees a 429. Spread work evenly instead of sending it all at once.
- Limit parallel calls: a pool of a few workers, each waiting for its answer, stays under the speed on its own because searches take a few seconds.
- Use batch jobs for long keyword lists: one call starts up to 100 searches. See batch jobs.
- Ask for full pages:
count=240returns up to 240 sales for the same one request ascount=10.
The monthly allowance
Only successful requests count toward it; failed calls are free. When it runs out, requests answer 402 quota_exceeded until the next month starts, unless you have extra requests: buy a pack under Plan and billing in
the dashboard and it is used after your plan’s requests, never expiring. See
usage and extra requests. A bigger plan raises both the speed and the allowance.