Call it
curl https://api.peume.com/v1/call/tiktok-shop-product-reviews-by-product-id \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"product_id": "1729408816995078528",
"page_start": 1,
"sort_rule": 2,
"filter_type": 1,
"filter_value": 6,
"region": "US"
}
}'const res = await fetch("https://api.peume.com/v1/call/tiktok-shop-product-reviews-by-product-id", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"product_id": "1729408816995078528",
"page_start": 1,
"sort_rule": 2,
"filter_type": 1,
"filter_value": 6,
"region": "US"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/tiktok-shop-product-reviews-by-product-id",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"product_id": "1729408816995078528",
"page_start": 1,
"sort_rule": 2,
"filter_type": 1,
"filter_value": 6,
"region": "US"
}
},
)
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: tiktok-shop-product-reviews-by-product-id.
Parameters
product_idRequiredstringProduct ID
Example: 1729408816995078528
page_startintegerPage start
Example: 1
sort_ruleintegerSort rule
Example: 2
filter_typeinteger筛选类型/Filter type: 1=默认, 2=有图片/视频, 3=真实购买
Example: 1
filter_valueinteger星级筛选/Star filter: 6=全部, 5-1=对应星级
Example: 6
regionstringRegion code
Example: US
Other ways to do it
Same job, other sources, cheapest first.
