Call it
curl https://api.peume.com/v1/call/taobao-and-tmall-shop-products-by-seller-and-shop \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"userId": "your userId",
"shopId": "your shopId",
"sort": "coefp",
"page": 1
}
}'const res = await fetch("https://api.peume.com/v1/call/taobao-and-tmall-shop-products-by-seller-and-shop", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"userId": "your userId",
"shopId": "your shopId",
"sort": "coefp",
"page": 1
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/taobao-and-tmall-shop-products-by-seller-and-shop",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"userId": "your userId",
"shopId": "your shopId",
"sort": "coefp",
"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: taobao-and-tmall-shop-products-by-seller-and-shop.
Parameters
userIdRequiredstringShop identifier. Also known as Seller ID or User ID (they refer to the same value).
shopIdRequiredstringUnique shop identifier on Taobao/Tmall (shop ID).
sortstringSort order for the result set. Available Values: - `coefp`: Comprehensive sorting - `hotsell`: Hot selling / Sales volume - `oldstarts`: New arrivals / Old starts - `bid`: Price: Low to High - `_bid`: Price: High to Low One of: coefp, hotsell, oldstarts, bid, _bid.
coefp · hotsell · oldstarts · bid · _bid
Example: coefp
pageintegerPage number for pagination.
Example: 1
Other ways to do it
Same job, other sources, cheapest first.
