Call it
curl https://api.peume.com/v1/call/ebay-sold-listings-basic \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"condition": "any",
"site": "ebay.com",
"query": "your query",
"limit": 25
}
}'const res = await fetch("https://api.peume.com/v1/call/ebay-sold-listings-basic", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"condition": "any",
"site": "ebay.com",
"query": "your query",
"limit": 25
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/ebay-sold-listings-basic",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"condition": "any",
"site": "ebay.com",
"query": "your query",
"limit": 25
}
},
)
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-basic.
Parameters
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, 96% uptime); owl ($0.0135 per call, 100% uptime); octopus ($0.00012 + $0.003 per result, at most $0.181). 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 · octopus
minPricenumberOptional minimum sold price in the site currency (e.g. 200).
queryRequiredstringSearch keyword for sold items (e.g. iphone 13 pro).
limitintegerMaximum number of results to return (1-60, default 25).
Example: 25
listingTypestringRestrict to a listing format; omit or use all for both (e.g. auction for auction sales only).
all · auction · buy_it_now
maxPricenumberOptional maximum sold price in the site currency (e.g. 500).
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
