querystring必填
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.
您的输出将显示在这里
完成输入,然后点击运行。
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.
开始构建
具备统一身份验证和使用情况跟踪的平台 API 端点。
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"
}'将您的 SandBase API 密钥设置到服务器环境中。请求使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它。
querystring必填Search 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.
默认值:1
sitestringeBay country site to search. Sold-listing coverage is currently US only.
默认值:"ebay.com"
可选值:ebay.com
sortstringResult sort order; omitted means ended_recently (e.g. price_high sorts by highest sold price plus shipping first).
可选值:ended_recently, price_low, price_high
limitintegerMaximum number of results to return (1-60, default 25).
默认值: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).
默认值:"any"
可选值: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).
可选值: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.
这是该 API 保存的示例响应;查看时不会发起实时请求。
尚未发布已保存的响应。请在 Playground 中运行 API 以查看其响应。
探索更多
| API | 价格 | 响应 |
|---|---|---|
eBay Sold Listings此 API eBay | 每次调用从 $0.003 起 | JSON |
eBay | $0.015 每次调用 | 异步 JSON |
eBay | $0.015 每次调用 | 异步 JSON |
问题
向 https://api.sandbase.ai/v1/api/ebay/sold-listings 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
起价每次调用 $0.003,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。
必填:query (string)。 可选:page (integer), site(ebay.com 之一), sort(ended_recently, price_low, price_high 之一), limit (integer), seller (string) 和 endDate (string) 以及另外 8 项。 Parameters 表和本页的 Playground 列出了每个字段。
在同一个 HTTP 请求中返回的 JSON 响应(同步)。
不需要。eBay Sold Listings 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 eBay API 访问权限。