Call it
curl https://api.peume.com/v1/call/douyin-comment-replies \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"limit": 20,
"comment_id": "your comment id",
"url": "your url"
}
}'const res = await fetch("https://api.peume.com/v1/call/douyin-comment-replies", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"limit": 20,
"comment_id": "your comment id",
"url": "your url"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/douyin-comment-replies",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"limit": 20,
"comment_id": "your comment id",
"url": "your url"
}
},
)
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-comment-replies.
Parameters
page_tokenstringPage token for `comment_replies`: send an empty string `page_token=""` to start from the first reply, then pass back each response's `next_page_token` exactly as received, keeping the other parameters unchanged. Tokens last 24 hours and only work for the same account and the same parameters; on the last page the response has no `next_page_token`.
limitintegerMaximum number of results, 1 to 100 (default 20). For some actions it counts pages or items per parent rather than final rows.
Example: 20
comment_idRequiredstringThe ID of the top-level comment whose replies you want, digits only, taken from the `id` of a `comments` row; only comments whose `reply_count` is above zero have replies. Used by `comment_replies` together with the `url` of the same video; it is not a video ID or a reply ID.
urlRequiredstringFull URL of the target Douyin video, formatted as `https://www.douyin.com/video/<video_id>`. Fetches video details in `video`, comments in `comments`, the replies under one comment in `comment_replies` (the video the comment sits on), audio transcripts in `transcript`, the videos recommended next to it in `related_posts`, or its count history in `post_history`. Do not pass user profile or search page URLs.
