Call it
curl https://api.peume.com/v1/call/douyin-shop-store-products \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"shop_id": "your shop id"
}
}'const res = await fetch("https://api.peume.com/v1/call/douyin-shop-store-products", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"shop_id": "your shop id"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/douyin-shop-store-products",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"shop_id": "your shop 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: douyin-shop-store-products.
Parameters
shop_idRequiredstringThe numeric ID of a Douyin Mall shop, taken from the `shop_id` of a `product_search` or `product_detail` row. It is not a shop name.
page_tokenstringPage token for `shop_products`. Leave it out for the first page, then pass back the previous response's `next_page_token` exactly as received, keeping `shop_id` unchanged. Each page holds 10 products and is one call. Tokens last 24 hours; the last page has none.
pageintegerPage number starting at 1, with 10 products a page; the number of pages is the `shop_page_count` on each row. It reads that page directly as one call; when `page_token` is also sent, the token wins.
