Call it
curl https://api.peume.com/v1/call/tiktok-video-comments-by-url-replies-engagement \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"url": "https://www.tiktok.com/@randomspamvideos25/video/7251387037834595630",
"cursor": 20
}
}'const res = await fetch("https://api.peume.com/v1/call/tiktok-video-comments-by-url-replies-engagement", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"url": "https://www.tiktok.com/@randomspamvideos25/video/7251387037834595630",
"cursor": 20
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/tiktok-video-comments-by-url-replies-engagement",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"url": "https://www.tiktok.com/@randomspamvideos25/video/7251387037834595630",
"cursor": 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-video-comments-by-url-replies-engagement.
Parameters
urlRequiredstringTikTok video URL
Example: https://www.tiktok.com/@randomspamvideos25/video/7251387037834595630
cursornumberCursor to get more comments. Get 'cursor' from previous response.
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.Comments of a TikTok postList the top-level comments of one public TikTok post, most relevant first, with text, time, likes and reply count.TikTok video comments by video idComments on a TikTok videoTikTok video comments by video idGet single video comments dataTikTok Video CommentsList the comments on a TikTok video by URL with cursor pagination (text, author, likes, reply count).TikTok post comments by post idComments on a TikTok post, cursor-paginated
