Call it
curl https://api.peume.com/v1/call/douyin-user-posts \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"limit": 20,
"secUserId": "your secUserId",
"sort": "newest"
}
}'const res = await fetch("https://api.peume.com/v1/call/douyin-user-posts", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"limit": 20,
"secUserId": "your secUserId",
"sort": "newest"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/douyin-user-posts",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"limit": 20,
"secUserId": "your secUserId",
"sort": "newest"
}
},
)
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: douyin-user-posts.
Parameters
cursorstringPagination cursor: pass the previous response's nextCursor; omit for the first page. A raw integer cursor is still accepted. Pages can overlap: a page may repeat items an earlier page returned and is billed like any other, so de-duplicate by item id and stop when a page adds no new id.
routestringUpstream source to run on; omit for "tiger". tiger ($0.0012 per call, 94.8% uptime).
tiger
limitintegerRequested page size. Values up to 20 are recommended.
Example: 20
secUserIdRequiredstringDouyin sec_user_id for the public account.
sortstringPost order: newest, most-popular.
newest · most-popular
Example: newest
