Call it
curl https://api.peume.com/v1/call/ebay-sold-listings-2 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"limit": 20,
"keyword": "your keyword"
}
}'const res = await fetch("https://api.peume.com/v1/call/ebay-sold-listings-2", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"limit": 20,
"keyword": "your keyword"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/ebay-sold-listings-2",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"limit": 20,
"keyword": "your keyword"
}
},
)
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-2.
Parameters
sitestringSpecifies the eBay domain for `sold` queries (for example, `ebay.com` or `ebay.co.uk`), defaulting to `ebay.com`. Distinct from the `domain` parameter used in `search`, `store`, or `reviews` actions; price currencies correspond to returned listing records.
min_pricenumberSets a numeric lower bound for item prices. Filters active listing prices in `search` actions and ended/sold listing prices in `sold` actions. In `sold`, filtering uses whole numbers and decimals round down.
limitintegerMaximum number of results, 1 to 200 (default 20). For some actions it counts pages or items per parent rather than final rows.
Example: 20
daysintegerInteger representing the historical lookback window in days for `sold` queries (defaults to `30`). Indicates time range rather than listing duration or returned item counts; complete records are not guaranteed for arbitrary day spans.
sortstringSort order for `sold` actions; allowed values are `newest` (most recently ended first) and `distance` (proximity). Does not sort by original listing creation date. Defaults to recently ended order if omitted. One of: distance, newest.
distance · newest
keywordRequiredstringSearch term for active listings in `search` actions, or ended/sold listings in `sold` actions. Asking prices in active listings should not be assumed to match final transaction amounts.
