Call it
curl https://api.peume.com/v1/call/xiaohongshu-product-reviews-by-sku-id \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"sku_id": "669ddd44e05f3700011067ed",
"page": 0,
"sort_strategy_type": 0,
"share_pics_only": 0,
"from_page": "score_page"
}
}'const res = await fetch("https://api.peume.com/v1/call/xiaohongshu-product-reviews-by-sku-id", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"sku_id": "669ddd44e05f3700011067ed",
"page": 0,
"sort_strategy_type": 0,
"share_pics_only": 0,
"from_page": "score_page"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/xiaohongshu-product-reviews-by-sku-id",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"sku_id": "669ddd44e05f3700011067ed",
"page": 0,
"sort_strategy_type": 0,
"share_pics_only": 0,
"from_page": "score_page"
}
},
)
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: xiaohongshu-product-reviews-by-sku-id.
Parameters
sku_idRequiredstringProduct SKU ID
Example: 669ddd44e05f3700011067ed
pageintegerPage number, start from 0
Example: 0
sort_strategy_typeintegerSort strategy: 0=general, 1=latest
Example: 0
share_pics_onlyintegerShow reviews with images only: 0=no, 1=yes
Example: 0
from_pagestringFrom page
Example: score_page
Other ways to do it
Same job, other sources, cheapest first.
