Call it
curl https://api.peume.com/v1/call/list-tiktok-comments \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"listComments_awemeId": "",
"listComments_count": 10,
"listComments_cursor": 0,
"commentReplies_commentId": "",
"commentReplies_awemeId": "",
"commentReplies_count": 10
}
}'const res = await fetch("https://api.peume.com/v1/call/list-tiktok-comments", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"listComments_awemeId": "",
"listComments_count": 10,
"listComments_cursor": 0,
"commentReplies_commentId": "",
"commentReplies_awemeId": "",
"commentReplies_count": 10
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/list-tiktok-comments",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"listComments_awemeId": "",
"listComments_count": 10,
"listComments_cursor": 0,
"commentReplies_commentId": "",
"commentReplies_awemeId": "",
"commentReplies_count": 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: list-tiktok-comments.
Parameters
listComments_awemeIdstringID of the TikTok post to fetch top-level comments for. Example: 6944028931875949829
Example:
listComments_countintegerNumber of top-level comments to fetch. Default is 10.
Example: 10
listComments_cursorintegerPagination cursor to retrieve more top-level comments.
Example: 0
commentReplies_commentIdstringID of the parent comment to fetch replies for. Example: 6999860547420766982
Example:
commentReplies_awemeIdstringID of the TikTok post containing the comment. Example: 6996617408010112262
Example:
commentReplies_countintegerNumber of replies to fetch. Default is 10.
Example: 10
commentReplies_cursorintegerPagination cursor to retrieve more comment replies.
Example: 0
