Skip to Content
Errors and retries
Open in ChatGPTOpen in ClaudeUpdated November 29, 2026

Errors and retries

Every error answers with a JSON body of the same shape, an HTTP status that says what kind of problem it is, and a stable code your program can switch on. A failed call is never counted against your requests, so retrying is free. Use a client timeout of at least 90 seconds: most searches answer in a few seconds, a few take longer.

{ "error": "eBay temporarily blocked this search. Please retry in a few seconds.", "code": "upstream_blocked", "requestId": "req_3f9c2a7d0b1e4c58a6f2d9e1b7c4a0f3" }
FieldMeaning
errorWhat went wrong, in plain words. It can change; do not match on it
codeStable code, listed below. Match on this
requestIdThe id of this call, also in the X-Request-ID header. Quote it to support

At a glance

StatusMeaningWhat to do
400Something in the request is wrong. The message says what.Fix first
401The API key is missing or not valid.Fix first
402This month's requests and your extra requests are used up, or a payment needs attention.Fix first
404Nothing matched the search. Not counted.Fix first
429Too many requests at once. Wait for Retry-After, then try again.Retry
502 / 503 / 504The marketplace was slow or busy. Try again shortly. Not counted.Retry

Every code

400 invalid_params

A parameter is missing, unknown or out of range. The message names it. Fix the request; retrying the same call gives the same answer. Not counted, and it does not use your speed allowance.

{ "error": "Invalid ebaySite 'ebay.nl'. Use one of: ebay.com, ebay.co.uk, ebay.de, ebay.com.au, ebay.ca, ebay.fr, ebay.it, ebay.es.", "code": "invalid_params", "requestId": "req_..." }

401 unauthorized

The Authorization header is missing, or the key is wrong or revoked. Check that you send Authorization: Bearer YOUR_API_KEY and that the key is active in the dashboard. See authentication.

{ "error": "Missing API key. Send 'Authorization: Bearer <key>'.", "code": "unauthorized", "requestId": "req_..." }

402 quota_exceeded

This month’s plan requests and your extra requests are used up. The message tells you how many you have left. Requests resume when the month resets, when you buy extra requests, or when you upgrade.

{ "error": "You have used all your requests for this month. Buy more requests or upgrade your plan: https://sellercomps.com/dashboard/billing", "code": "quota_exceeded", "requestId": "req_..." }

A batch job is refused with this code up front when it has more keywords than you have requests left. Photo search needs 2 requests left.

402 payment_required

A payment on your plan needs attention. Billable calls answer this until the payment goes through, then work again on their own. Free calls (usage, request history) keep working. Update your card under Plan and billing.

404 not_found

The marketplace has no such record, or eBay has no page for this search: a page number past the last page, an unknown categoryId, a StockX or GOAT product or size that does not exist, an unknown cert number or Whatnot seller, a removed Vinted listing, or a batch job id that is not yours. Not counted. Do not retry; change the request or stop paging.

{ "error": "eBay has no page for this search. The page number is past the last page of results, or the categoryId does not exist on this marketplace.", "code": "not_found", "requestId": "req_..." }

409 conflict

A batch job is still running: you started another one, or asked for the CSV of a job that is not complete yet. Wait for the running job to finish.

411 invalid_params for an upload without a Content-Length header, 413 invalid_image for a photo over 8 MB, 415 invalid_image for a file that is not an image, 422 image_not_identified when nothing sellable could be read. None are counted. See photo search.

429 rate_limited

You sent more requests in the last 60 seconds than your plan allows, or more than a lookup’s own limit (photo search, PSA whole sets, request history, Best Offer lookups). Wait the number of seconds in Retry-After, then send again. Not counted. See rate limits.

429 history_rate_limited

Too many 3-year history searches at once. Wait for Retry-After (a few seconds) and retry.

502 upstream_blocked

The marketplace did not answer this search this time. It is temporary: retry after Retry-After (5 seconds on eBay, 60 on other marketplaces). Not counted.

502 upstream_error

The data source could not be reached. Retry shortly. Not counted.

503 server_busy and upstream_unavailable

Many searches are running at once, or the marketplace could not be reached right now. Retry after Retry-After. Not counted.

504 upstream_timeout

The search took too long. Retry; a narrower search (fewer results, a shorter date range) answers faster. Not counted.

Which to retry

RetryDo not retry, fix the request
429, 502, 503, 504: wait for Retry-After, then try again, with a limit of a few tries400, 401, 404, 409, 411, 413, 415, 422
402: add requests or wait for the new month

A safe retry

import random, time, requests RETRY = {429, 502, 503, 504} def sold(keyword, **params): for attempt in range(4): r = requests.get( "https://api.sellercomps.com/scrape", params={"keyword": keyword, **params}, headers={"Authorization": "Bearer YOUR_API_KEY"}, timeout=90, ) if r.status_code not in RETRY: r.raise_for_status() return r.json() wait = int(r.headers.get("Retry-After", 2 ** attempt)) time.sleep(wait + random.random()) # a little jitter spreads retries out print("failed, request id:", r.json().get("requestId")) r.raise_for_status()

The same pattern in Node and with cURL is on rate limits.

Request IDs

Every answer carries an X-Request-ID header, and every error body has the same id as requestId. Log it with your failures. If something looks wrong, send it to [email protected] and we can find that exact call. Failed calls in GET /account/requests carry their requestId too, so you can look them up later.