Call it
curl https://api.peume.com/v1/call/ebay-sold-listings \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"query": "your query",
"condition": "any",
"site": "ebay.com",
"limit": 60,
"page": 1
}
}'const res = await fetch("https://api.peume.com/v1/call/ebay-sold-listings", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"query": "your query",
"condition": "any",
"site": "ebay.com",
"limit": 60,
"page": 1
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/ebay-sold-listings",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"query": "your query",
"condition": "any",
"site": "ebay.com",
"limit": 60,
"page": 1
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: ebay-sold-listings.
Parameters
sellerstringOnly this eBay seller's sold listings (eBay username).
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.
queryRequiredstringSearch keyword for sold items (e.g. iphone 13 pro).
listingTypestringRestrict to a listing format; omit or use all for both (e.g. auction for auction sales only).
all · auction · buy_it_now
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
conditionstringItem condition filter (e.g. used).
any · new · used
Example: any
sitestringeBay country site to search. Sold-listing coverage is currently US only.
ebay.com
Example: ebay.com
routestringUpstream source to run on; omit for "badger". badger ($0.003 per call, 99.4% uptime); owl ($0.0135 per call, 98.5% uptime). A route can refuse an input it cannot apply with a 400 source_unknown (not charged): retry on another route, or omit that input.
badger · owl
freeShippingbooleanNot supported by the current sources: only false (no filter) is accepted; true is refused without charge.
minPricenumberOptional minimum sold price in the site currency (e.g. 200).
limitintegerMaximum number of results to return (1-60, default 60).
Example: 60
returnsAcceptedbooleanNot supported by the current sources: only false (no filter) is accepted; true is refused without charge.
maxPricenumberOptional maximum sold price in the site currency (e.g. 500).
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.
Example: 1
categoryIdstringOptional numeric eBay category id to search within (e.g. 9355 for Cell Phones & Smartphones, 9394 for Cell Phone Accessories).
startDatestringOnly return listings sold on or after this date, inclusive, in YYYY-MM-DD format (e.g. 2026-09-01).
