Call it
curl https://api.peume.com/v1/call/jd-shop \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"shop_id": "your shop id",
"limit": 24
}
}'const res = await fetch("https://api.peume.com/v1/call/jd-shop", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"shop_id": "your shop id",
"limit": 24
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/jd-shop",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"shop_id": "your shop id",
"limit": 24
}
},
)
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: jd-shop.
Parameters
shop_idRequiredstringIdentifies the shop used by the `shop` action. Pass a digit string or the canonical legacy URL `<digits>.html` without a query or fragment; cross-host URLs are rejected, and this selector does not accept a product `item_id`.
page_tokenstringPage token. Leave it out for the first page. When the response has a `next_page_token`, pass it back as `page_token`, exactly as received, to get the next page, with the other parameters unchanged. Every page keeps the page size of the `limit` of the request that returned the token, and a later `limit` has no effect. You can also skip the token and ask for a page number with `page`; when both are sent, `page_token` wins. Paging stops at row 168 (7 pages at `limit` 24), and a sync call gets there: you do not need `"mode": "async"`. The page that holds row 168 has no `next_page_token` and `pagin
limitintegerMaximum number of results, 1 to 60 (default 24). For some actions it counts pages or items per parent rather than final rows.
Example: 24
pageintegerPage number of the shop's products, an integer; leave it out or send 1 for the first page. It runs from 1 to 168 ÷ `limit`, rounded up: 1–7 at the default `limit` 24, 1–3 at `limit` 60. With `page`, the page size is the `limit` of this request (1–60). A sync call reaches the deepest page, row 168; you do not need `"mode": "async"`. The deepest page (page 7 at `limit` 24) has no `next_page_token` and `pagination.stop_reason` is `depth_limit`; a list that is simply shorter ends with `end_of_list`. Page 1 is fetched fresh on every request. From page 2 on, rows are cut in order from one saved full
