Call it
curl https://api.peume.com/v1/call/search-xianyu-second-hand-listings-by-keyword \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"keyword": "your keyword",
"sort": "active"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-xianyu-second-hand-listings-by-keyword", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"keyword": "your keyword",
"sort": "active"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-xianyu-second-hand-listings-by-keyword",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"keyword": "your keyword",
"sort": "active"
}
},
)
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: search-xianyu-second-hand-listings-by-keyword.
Parameters
keywordRequiredstringSearch keyword.
pagestringPage number for pagination. The first page is 1.
sortstringSort order for Xianyu search results. Available Values: - `active`: Active listings first. - `recent`: Recent nearby or position-based results first. - `credit`: Seller credit first. - `price_asc`: Lowest price first. - `price_desc`: Highest price first. - `price_drop`: Reduced-price listings first. One of: active, recent, credit, price_asc, price_desc, price_drop, newest.
active · recent · credit · price_asc · price_desc · price_drop · newest
Example: active
