List Video Comments
Fetches the comments on a video, in the platform's own order.
| Platform | Per page | Order | Notes |
|---|---|---|---|
| TikTok | up to 30 | TikTok's ranking | commenter country and comment language are filled here only |
| about 15 | newest first | reply counts can be null | |
| YouTube | 20 | top comments | only a comment's age is published ("8 days ago"), so commented_at is approximate |
| 10 | most relevant | likes are the sum of all reactions | |
| Snapchat | about 20, one page | top comments | no commenter usernames |
Replies are counted, not listed. Fields a platform does not publish are null. region has no effect on this route. A pageToken on a platform that has one page returns an empty page and is not charged.
Optional live endpoint. You do not need this endpoint for normal API integrations; prefer tracked accounts, tracked videos, analytics, projects, and Creator Hub endpoints when working with viral.app data.
⚠️ Consumes extra credits: 3 credits per request. Additional charges may apply.
Headers:
- X-Viral-Credits-Consumed
- X-Viral-Credits-Meter
- X-Viral-Credits-Benefited-Remaining
- X-Viral-Credits-Can-Purchase-Extra
- Retry-After (on 429 responses)
A page past the only one of a one-page lookup costs nothing: it carries X-Viral-Credits-Consumed: 0 and X-Viral-Credits-Meter, without the two balance headers.
Request
- Base URL: https://viral.app/api/v1
- URL: https://viral.app/api/v1/live/{platform}/videos/{platformVideoId}/comments
- Auth: API key in header x-api-key
Path parameters
Social media platform (facebook, instagram, tiktok, youtube, snapchat)
Native platform video id found in the URL of the video
Query parameters
Opaque cursor token used to fetch the next page
Region code (2-letter ISO country code)
Response
OK
Example response
{
"comments": [
{
"platform": "facebook",
"platform_video_id": "7123456789012345678",
"commenter_avatar_url": "https://www.myproject.com",
"commenter_country_code": "US",
"share_url": "https://www.myproject.com"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.