Top-level comments on a public TikTok video or photo post, with author, likes and reply counts, page by page.
2 credits/ call
Never more than 8 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/tiktok.video_comments" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://www.tiktok.com/@scout2015/video/6718335390845095173"}'{
"output": {
"found": true,
"data": {
"total": "<integer | null>",
"nextCursor": "<string | null>",
"comments": [
{
"likes": "<integer | null>",
"replies": "<integer | null>",
"text": "<string | null>",
"createdUtc": "<string | null>", …
}
]
}
},
"credits": 2
}Input and output
3 fields
https://www.tiktok.com/@scout2015/video….11 fields
Good to know
One flat price per page.
Pages hold up to `limit` comments.
Replies are counted, not expanded.
Comments are personal data. Customers carry the lawful-use duty.
Very deep pages may come back empty (TikTok caps offsets).
One page per call. Send nextCursor back as cursor to read the next page.
The same key and credits work for every API.