Sold listings
Send a keyword to GET /scrape and you get up to 240 completed eBay sales for it, newest first: what each item sold
for, the day it sold, its condition, shipping, how it sold (auction, Buy It Now, accepted Best Offer), the seller and
the photo. It works on 8 eBay countries, each in its own currency, and returns JSON or a CSV
file.
curl -G "https://api.sellercomps.com/scrape" \
--data-urlencode "keyword=nintendo switch oled" \
--data-urlencode "itemCondition=used" \
--data-urlencode "count=240" \
-H "Authorization: Bearer YOUR_API_KEY"| At a glance | |
|---|---|
| Returns | Up to 240 sales per request, newest first; page past that with page |
| Countries | US, UK, Germany, France, Italy, Spain, Canada, Australia |
| Formats | JSON (default) or CSV with format=csv |
| Cost | 1 request per successful call. A search with no sales, or a failed call, is never counted |
| Same data, shared format | GET /sold?source=ebay, see one format for all |
Parameters
| Parameter | Type | What it does |
|---|---|---|
keywordrequired | string | What to search for, exactly as you would type it on eBay. Up to 300 characters. |
ebaySite | string | Which eBay to search. Defaults to ebay.com. See the marketplace list. |
count | integer | Number of results, 1 to 240. Defaults to 240. |
page | integer | Page of results, 1 to 100, to go beyond the first response. |
sold | boolean | true (default) returns completed sales. false returns current active listings. |
sortOrder | string | endedRecently, timeNewlyListed, pricePlusPostageLowest, pricePlusPostageHighest or distanceNearest. |
itemCondition | string | any, new or used. For an exact eBay condition, pass conditionId. |
buyingFormat | string | all, auction, buyItNow or acceptsOffers. |
minPrice / maxPrice | number | Only sales inside this price band, in the marketplace currency. |
soldAfter / soldBefore | date | Only sales completed in this date range, format YYYY-MM-DD. |
itemLocation | string | default, domestic or worldwide. |
categoryId | string | Only one eBay category, by its number. |
clean | boolean | true drops lots, bundles, parts or repair, empty boxes, cases and accessories, replicas and proxies, so only the item itself is left. |
bestOfferPrice | boolean | true adds what the buyer really paid on sales that ended with an accepted Best Offer (acceptedOfferPrice). eBay shows only the asking price on those. |
format | string | json (default) or csv. CSV returns one row per sale as a file. |
conditionId takes an exact eBay condition number (for example 3000 for Used) when itemCondition is too broad.
Every parameter is optional except keyword.
Response
Example response100 lines, long lists cut to a few rowsReal answer, Nov 29, 2026
{
"keyword": "nintendo switch oled",
"ebaySite": "ebay.com",
"count": 3,
"page": 1,
"hasNextPage": true,
"totalResults": 6600,
"results": [
{
"itemId": "327422329001",
"url": "https://www.ebay.com/itm/327422329001?nordt=true",
"thumbnailUrl": "https://i.ebayimg.com/images/g/DVAAAeSw1MJqw5xa/s-l140.jpg",
"fullResThumbnailUrl": "https://i.ebayimg.com/images/g/DVAAAeSw1MJqw5xa/s-l1600.jpg",
"epid": null,
"title": "Nintendo Switch OLED Console - 64GB - White",
"condition": "Pre-Owned",
"conditionId": 3000,
"sellerType": null,
"buyingFormat": "buyItNow",
"bestOfferAccepted": null,
"bidCount": null,
"categoryId": null,
"listingType": "sold",
"shippingPrice": "112.51",
"shippingCurrency": "USD",
"shippingType": "paid",
"totalPrice": "245.47",
"sellerUsername": "powerup149",
"sellerPositivePercent": 100,
"sellerFeedbackScore": 127,
"productRating": 4.5,
"productReviewCount": 7,
"itemLocation": "Australia",
"scrapedAt": "2026-11-29T06:37:08.324188+00:00",
"endedAt": "2026-11-28",
"soldPrice": "132.96",
"soldCurrency": "USD"
},
{
"itemId": "267857649709",
"url": "https://www.ebay.com/itm/267857649709?nordt=true",
"thumbnailUrl": "https://i.ebayimg.com/images/g/QAEAAeSwBllrC6Iz/s-l140.jpg",
"fullResThumbnailUrl": "https://i.ebayimg.com/images/g/QAEAAeSwBllrC6Iz/s-l1600.jpg",
"epid": null,
"title": "Nintendo Switch OLED Model Console System, White Joy-Con, HDMI Connectivity",
"condition": "Open Box",
"conditionId": 1500,
"sellerType": null,
"buyingFormat": null,
"bestOfferAccepted": true,
"bidCount": null,
"categoryId": null,
"listingType": "sold",
"shippingPrice": "11.55",
"shippingCurrency": "USD",
"shippingType": "paid",
"totalPrice": "191.55",
"sellerUsername": "willjame.cqntdc",
"sellerPositivePercent": 100,
"sellerFeedbackScore": 45,
"productRating": null,
"productReviewCount": null,
"itemLocation": "United States",
"scrapedAt": "2026-11-29T06:37:08.324188+00:00",
"endedAt": "2026-11-28",
"soldPrice": "180.00",
"soldCurrency": "USD"
},
{
"itemId": "287766635991",
"url": "https://www.ebay.com/itm/287766635991?nordt=true",
"thumbnailUrl": "https://i.ebayimg.com/images/g/45QAAeSwT2hrCJal/s-l140.jpg",
"fullResThumbnailUrl": "https://i.ebayimg.com/images/g/45QAAeSwT2hrCJal/s-l1600.jpg",
"epid": null,
"title": "Nintendo Switch OLED Legend of Zelda Tears of the Kingdom Edition Console New",
"condition": "Brand New",
"conditionId": 1000,
"sellerType": null,
"buyingFormat": null,
"bestOfferAccepted": true,
"bidCount": null,
"categoryId": null,
"listingType": "sold",
"shippingPrice": "13.96",
"shippingCurrency": "USD",
"shippingType": "paid",
"totalPrice": "388.95",
"sellerUsername": "leo.maxwell",
"sellerPositivePercent": 100,
"sellerFeedbackScore": 315,
"productRating": 5,
"productReviewCount": 33,
"itemLocation": "United States",
"scrapedAt": "2026-11-29T06:37:08.324188+00:00",
"endedAt": "2026-11-28",
"soldPrice": "374.99",
"soldCurrency": "USD"
}
]
}| Field | Meaning |
|---|---|
keyword, ebaySite | What you searched, and where |
count | Sales in this answer (up to 240) |
page, hasNextPage | The page you asked for, and whether eBay has more |
totalResults | eBay’s count of sales that match (an estimate eBay rounds) |
results | The sales. Every field is listed in response fields |
cleaned | With clean=true: how many rows were left out and why |
Each sale carries the fields you price with (soldPrice, soldCurrency, endedAt, condition, shippingPrice,
totalPrice, buyingFormat, bidCount, bestOfferAccepted) and the ones you link and show with (itemId, url,
title, thumbnailUrl, sellerUsername), plus details such as seller feedback, item location and the eBay product
id when eBay shows them.
Recipes
Median sold price
The median is the price half the sales were above and half below. It ignores the odd $1 auction and the overpriced outlier, so it is the number most sellers price from.
import statistics, requests
r = requests.get(
"https://api.sellercomps.com/scrape",
params={"keyword": "nintendo switch oled", "clean": "true"},
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=90,
)
r.raise_for_status()
prices = [float(s["soldPrice"]) for s in r.json()["results"]]
print(len(prices), "sales, median", statistics.median(prices))clean=true leaves out lots, parts and empty boxes first, so the median is for the item itself. In the
shared format (/sold?source=ebay), the median comes ready in summary.median.
By condition
Ask once per condition, or ask once and group the rows by condition:
const url = new URL("https://api.sellercomps.com/scrape");
url.search = new URLSearchParams({ keyword: "nintendo switch oled" }).toString();
const res = await fetch(url, { headers: { Authorization: "Bearer YOUR_API_KEY" } });
const { results } = await res.json();
const byCondition = {};
for (const s of results) (byCondition[s.condition] ??= []).push(Number(s.soldPrice));
for (const [condition, prices] of Object.entries(byCondition)) {
prices.sort((a, b) => a - b);
console.log(condition, prices.length, "sales, median", prices[Math.floor(prices.length / 2)]);
}itemCondition=new or itemCondition=used filters on eBay’s side, so every one of the 240 rows is the condition you
want.
By date range
soldAfter and soldBefore keep sales completed inside the range, YYYY-MM-DD:
curl -G "https://api.sellercomps.com/scrape" \
--data-urlencode "keyword=charizard 4/102 psa 8" \
--data-urlencode "soldAfter=2026-10-01" \
--data-urlencode "soldBefore=2026-10-31" \
-H "Authorization: Bearer YOUR_API_KEY"eBay’s sold search covers the last few months. For older sales, up to 3 years back, use 3 years of eBay history.
Auctions only, or Buy It Now only
buyingFormat=auction shows what the market bid; buyingFormat=buyItNow shows what sellers got at a fixed price.
Sales that ended with an accepted Best Offer have bestOfferAccepted: true; their soldPrice is the asking price, and
bestOfferPrice=true adds what the buyer really paid (see Best Offer prices).
A price band
minPrice=150&maxPrice=400 drops accessories and parts listed under the item’s name and the rare outlier above it.
A spreadsheet
format=csv returns the same sales as a CSV file, one row per sale, ready for Excel or Google Sheets. For live formulas
inside Google Sheets, see the Sheets price checker guide.
More than 240 sales
Each request returns up to 240 sales. Ask for page=2, page=3 and so on while hasNextPage is true; each page is
one request. See pagination.
Cleaner comps and real Best Offer prices
clean=trueleaves out lots, bundles, parts or repair, empty boxes, cases and accessories, and replicas, so the sales you get are the item itself. See clean comps.bestOfferPrice=trueaddsacceptedOfferPriceto sales that ended with an accepted Best Offer. See Best Offer prices.
Both are free: the search is one request either way.
Errors
| Status | Code | When | What to do |
|---|---|---|---|
| 400 | invalid_params | A missing keyword, an unknown ebaySite or format, a bad date | Fix the request |
| 404 | not_found | The page is past the last page of results, or the categoryId does not exist. Not counted | Stop paging |
| 429 | rate_limited | Over your plan’s requests a minute | Wait for Retry-After |
| 502 | upstream_blocked | eBay did not answer this search this time. Not counted | Retry after Retry-After |
| 503 | server_busy | Many searches at once. Not counted | Retry after a few seconds |
| 504 | upstream_timeout | The search took too long. Not counted | Retry |
Use a client timeout of at least 90 seconds. Every error has the same body: see errors and retries.