querystringobbligatorio
Search keyword for sold items (e.g. iphone 13 pro).
https://api.sandbase.ai/v1/api/ebay/sold-listingsRetrieve recently sold eBay listings for any keyword with optional price-range, condition, category, sold-date, and sort filters, page by page (sold price, sale date, condition, seller, item details); ideal for pricing research.
Il tuo output apparirà qui
Completa gli input, poi fai clic su Esegui.
Retrieve recently sold eBay listings for any keyword with optional price-range, condition, category, sold-date, and sort filters, page by page (sold price, sale date, condition, seller, item details); ideal for pricing research.
curl -X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "ebay/sold-listings", "sort": "ended_recently", "limit": 10, "query": "iphone 13 pro"}'
The result is returned in outputs[0].data. Lookups that find nothing fail with a not-found error.
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Search keyword for sold items (e.g. iphone 13 pro). |
categoryId | string | No | Optional numeric eBay category id to search within (e.g. 9355 for Cell Phones & Smartphones, 9394 for Cell Phone Accessories). |
condition | string | No | Item condition filter (e.g. used). One of: any, new, used. Default "any". |
endDate | string | No | Only return listings sold on or before this date, inclusive, in YYYY-MM-DD format (e.g. 2026-09-15). This bound is applied to each page after it is fetched, so a page can hold fewer than limit listings, or none, while ha |
freeShipping | boolean | No | Not supported by the current sources: only false (no filter) is accepted; true is refused without charge. |
limit | integer | No | Maximum number of results to return (1-60, default 25). |
listingType | string | No | Restrict to a listing format; omit or use all for both (e.g. auction for auction sales only). One of: all, auction, buy_it_now. |
maxPrice | number | No | Optional maximum sold price in the site currency (e.g. 500). |
minPrice | number | No | Optional minimum sold price in the site currency (e.g. 200). |
page | integer | No | 1-based results page. Use with hasMore in the output to paginate, and keep query, filters, and limit the same while walking pages, because limit sets the page size. Default 1. |
returnsAccepted | boolean | No | Not supported by the current sources: only false (no filter) is accepted; true is refused without charge. |
seller | string | No | Not supported by the current sources: a request that sets it is refused without charge. |
site | string | No | eBay country site to search. Sold-listing coverage is currently US only. One of: ebay.com. Default "ebay.com". |
sort | string | No | Result sort order; omitted means ended_recently (e.g. price_high sorts by highest sold price plus shipping first). One of: ended_recently, price_low, price_high. |
startDate | string | No | Only return listings sold on or after this date, inclusive, in YYYY-MM-DD format (e.g. 2026-09-01). |
Billed at the actual cost of each call, about $0.003 per request. A call can cost more when the first data source fails and another one answers. Failed calls and lookups that find nothing are not charged.
Inizia a costruire
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
curl -X POST "https://api.sandbase.ai/v1/api/ebay/sold-listings" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"page": 1,
"site": "ebay.com",
"sort": "ended_recently",
"limit": 10,
"query": "iphone 13 pro",
"condition": "any"
}'Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
querystringobbligatorioSearch keyword for sold items (e.g. iphone 13 pro).
pageinteger1-based results page. Use with hasMore in the output to paginate, and keep query, filters, and limit the same while walking pages, because limit sets the page size.
Predefinito: 1
sitestringeBay country site to search. Sold-listing coverage is currently US only.
Predefinito: "ebay.com"
Valori possibili: ebay.com
sortstringResult sort order; omitted means ended_recently (e.g. price_high sorts by highest sold price plus shipping first).
Valori possibili: ended_recently, price_low, price_high
limitintegerMaximum number of results to return (1-60, default 25).
Predefinito: 25
sellerstringNot supported by the current sources: a request that sets it is refused without charge.
endDatestringOnly return listings sold on or before this date, inclusive, in YYYY-MM-DD format (e.g. 2026-09-15). This bound is applied to each page after it is fetched, so a page can hold fewer than limit listings, or none, while hasMore is still true: keep requesting the next page until hasMore is false.
maxPricenumberOptional maximum sold price in the site currency (e.g. 500).
minPricenumberOptional minimum sold price in the site currency (e.g. 200).
conditionstringItem condition filter (e.g. used).
Predefinito: "any"
Valori possibili: any, new, used
startDatestringOnly return listings sold on or after this date, inclusive, in YYYY-MM-DD format (e.g. 2026-09-01).
categoryIdstringOptional numeric eBay category id to search within (e.g. 9355 for Cell Phones & Smartphones, 9394 for Cell Phone Accessories).
listingTypestringRestrict to a listing format; omit or use all for both (e.g. auction for auction sales only).
Valori possibili: all, auction, buy_it_now
freeShippingbooleanNot supported by the current sources: only false (no filter) is accepted; true is refused without charge.
returnsAcceptedbooleanNot supported by the current sources: only false (no filter) is accepted; true is refused without charge.
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
Nessuna risposta salvata è stata pubblicata. Esegui l'API in Playground per ispezionarne la risposta.
Esplora altro
| API | Prezzo | Risposta |
|---|---|---|
eBay Sold ListingsQuesta API eBay | Da $0.003 per chiamata | JSON |
eBay | $0.015 per chiamata | JSON asincrono |
eBay | $0.015 per chiamata | JSON asincrono |
Domande
Invia una richiesta POST a https://api.sandbase.ai/v1/api/ebay/sold-listings con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.
A partire da $0.003 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Richiesti: query (string). Facoltativi: page (integer), site (uno tra ebay.com), sort (uno tra ended_recently, price_low, price_high), limit (integer), seller (string) e endDate (string) e altri 8. La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona).
No. eBay Sold Listings funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API eBay.