Call it
curl https://api.peume.com/v1/call/xianyu-seller-items \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"limit": 10,
"seller_id": "your seller id"
}
}'const res = await fetch("https://api.peume.com/v1/call/xianyu-seller-items", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"limit": 10,
"seller_id": "your seller id"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/xianyu-seller-items",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"limit": 10,
"seller_id": "your seller id"
}
},
)
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: xianyu-seller-items.
Parameters
page_tokenstringPage token for `seller_items`. Leave it out for the first page; when the response has `next_page_token`, pass it back unchanged as `page_token`, with `seller_id` unchanged. Each page holds 10 items and is one call. You can page up to item 1,000 (page 100). Pages 1–20 (the first 200 items) can be read with synchronous requests; from page 21 on, use async: add `"mode": "async"` to the same request and poll `GET /api/v1/jobs/{job_id}`. No `next_page_token` (`pagination.has_more` is false) means you cannot page further: `pagination.stop_reason` is `end_of_list` when the seller's items for sale are
limitintegerMaximum number of results, 1 to 10 (default 10). For some actions it counts pages or items per parent rather than final rows.
Example: 10
seller_idRequiredstringFor `seller_items`, the Xianyu seller: a numeric seller ID (the `seller_id` returned by `item_detail`, also present on some `search` results) or a seller profile link `<digits>`. Returns the seller's items currently for sale; sold and delisted items are not returned.
