eBay search
One page (up to 60) of eBay listings on the market's eBay site.
Each listing carries the price (or price range) in the site's currency, the crossed-out price, auction bids and time left, best offer, delivery cost, item location, units sold, watchers and the seller with their feedback. Sold listings are not offered: eBay sends a signed-out visitor to its sign-in page for them.
Request
https://api.scrapercompany.com/v1/retail/ebay/searchAuthenticate with your API key in the x-api-key header (see Authentication).
Run this request on your own API key from this page, with the values you type. Signed out? Sign in or get an API key.
Body
JSON object. Unknown fields are rejected with 422.
- qstringrequiredmin length 1, max length 200
Search terms, as typed into eBay.
- marketstringdefault
USpattern ^(US|GB|DE|AU|CA|FR|IT|ES)$Which eBay site: US (ebay.com), GB, DE, AU, CA, FR, IT or ES. Prices are in that site's currency.
- pageintegerdefault
1min 1, max 100Result page.
- sortstringdefault
best_matchpattern ^(best_match|price_low|price_high|newly_listed|ending_soonest)$best_match, price_low, price_high, newly_listed or ending_soonest.
- conditionstring | nullpattern ^(new|used)$
new or used.
- buying_formatstring | nullpattern ^(auction|buy_it_now)$
auction or buy_it_now.
- min_pricenumber | nullmin 0
Minimum price.
- max_pricenumber | nullmin 0
Maximum price.
Example request
curl -X POST "https://api.scrapercompany.com/v1/retail/ebay/search" \
-H "x-api-key: $SCRAPERCOMPANY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"q": "nintendo switch 2"
}'Response
200 — One page of eBay listings. Metered responses carry x-credits-charged and x-credits-remaining headers (see credit headers).
{
"search_parameters": {
"engine": "ebay_search",
"q": "nintendo switch 2",
"market": "US",
"page": 1
},
"listings": [
{
"item_id": "318850823108",
"title": "Presale Nintendo Switch 2 Pro Controller The Legend of Zelda w/Stand -October 29",
"subtitle": "Nintendo Switch · Nintendo Switch",
"price": 178,
"price_text": "$178.00",
"currency": "USD",
"buying_format": "buy_it_now",
"best_offer": true,
"shipping_text": "+$15.00 delivery",
"shipping_cost": 15,
"location": "Japan",
"sold": 66,
"seller": "pocketculture_jp",
"seller_feedback_percent": 100,
"seller_feedback_count": 4900,
"image": "https://i.ebayimg.com/images/g/fREAAeSwGONqohFf/s-l500.jpg",
"url": "https://www.ebay.com/itm/318850823108"
}
],
"total": 1,
"total_results": 4900,
"meta": {
"source": "ebay",
"elapsed_s": 1.4
}
}Errors
Errors return a JSON body with a detail field. Failed requests are not charged. See Errors for the full list and retry advice.
| Status | Meaning | Retry? |
|---|---|---|
401Unauthorized | Missing or invalid API key. {"detail":"missing or invalid API key"} | No, fix the request |
402Payment Required | Not enough credits for this request: the account's credits mode is {"detail":"insufficient credits: this request costs 5, 0 available. Credits renew 2026-11-01."} | No, fix the request |
422Unprocessable Content | Request validation failed. {"detail":[{"loc":["body","name"],"msg":"Field required","type":"missing"}]} | No, fix the request |
429Too Many Requests | Too many requests: the key's requests-per-minute limit was exceeded, or (in {"detail":"rate limit 60/min exceeded"} | Yes, with backoff |
503Service Unavailable | Temporarily unavailable: a dependency of this endpoint is down, or the upstream source changed its contract. Retry later. {"detail":"database unavailable: OperationalError"} | Yes, with backoff |
Try it
Press Try it above to run this request on your own key, with the values you type (sign in first). For a no-code walkthrough, use the workspace’s guided Try it.
- Export your key:
export SCRAPERCOMPANY_API_KEY=sk_...(no key yet? start a free trial). - Copy the cURL example above and run it in a terminal.
Questions about this page?
Send the page link and your question, and the team will answer.