Call it
curl https://api.peume.com/v1/call/jd-reviews \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"item_id": "your item id",
"limit": 10
}
}'const res = await fetch("https://api.peume.com/v1/call/jd-reviews", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"item_id": "your item id",
"limit": 10
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/jd-reviews",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"item_id": "your item id",
"limit": 10
}
},
)
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-reviews.
Parameters
item_idRequiredstringIdentifies one JD.com product for `product_detail`, `reviews`, or `product_price`. Pass the digit string returned by `search` or the canonical legacy URL `<digits>.html` without a query or fragment; arbitrary, opaque, or cross-host URLs are not accepted as equivalent item identifiers.
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. No `next_page_token` (or `pagination.has_more` false) means you have reached the end. A page can hold fewer than 10 reviews. That does not mean the end: only a missing `next_page_token` does. If new reviews arrive while you page, neighbouring pages can repeat a review or two, so dedupe by review `id` when merging. JD reviews cannot jump to a page number; page forward one page at a time with `next_pa
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
