Call it
curl https://api.peume.com/v1/call/tiktok-douyin-video-comments-by-video-id-2 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"aweme_id": "7448118827402972455",
"cursor": 0,
"count": 20
}
}'const res = await fetch("https://api.peume.com/v1/call/tiktok-douyin-video-comments-by-video-id-2", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"aweme_id": "7448118827402972455",
"cursor": 0,
"count": 20
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/tiktok-douyin-video-comments-by-video-id-2",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"aweme_id": "7448118827402972455",
"cursor": 0,
"count": 20
}
},
)
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-douyin-video-comments-by-video-id-2.
Parameters
aweme_idRequiredstringVideo id
Example: 7448118827402972455
cursorintegerCursor
Example: 0
countintegerNumber
Example: 20
Other ways to do it
Same job, other sources, cheapest first.
List a video's commentsBest sourceList a video's comments. Checks the cheapest source first and moves to the next one until it finds an answer.Douyin video comments by video idGet single video comments dataDouyin video comments by video idRetrieves top-level comments for a Douyin (TikTok China) video by aweme ID with page-based pagination.
