Call it
curl https://api.peume.com/v1/call/tiktok-get-top-contents-item-detail \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"country_code": "US",
"period_dimension": 3,
"item_id": "your item id",
"period_end_timestamp": 10
}
}'const res = await fetch("https://api.peume.com/v1/call/tiktok-get-top-contents-item-detail", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"country_code": "US",
"period_dimension": 3,
"item_id": "your item id",
"period_end_timestamp": 10
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/tiktok-get-top-contents-item-detail",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"country_code": "US",
"period_dimension": 3,
"item_id": "your item id",
"period_end_timestamp": 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: tiktok-get-top-contents-item-detail.
Parameters
country_codestring该视频所属榜单的国家/地区代码,需与榜单查询一致/Country code of the ranking
Example: US
period_dimensioninteger榜单周期:1/3/5 /Period dimension
Example: 3
cookiestring自定义Cookie字符串(可选)/Custom Cookie string (optional)
item_idRequiredstring视频ID/Video item ID
period_end_timestampRequiredinteger调用方需根据目标榜单日期自行生成结束时间戳(10位 Unix 秒级),例如 1785024000;请勿传 0,否则会返回空结果/The caller must generate this 10-digit Unix timestamp in seconds from the target ranking date, for example 1785024000; do not pass 0 because it returns an empty result
