POST /v1/data/tiktok/comments/run
Pricing: $0.0005 per comment ($0.5 per 1,000).
Ways to call it
- Video URL: set
postURLs(optional:commentsPerPost,topLevelCommentsPerPost) - Profile: set
profiles(optional:resultsPerPage,commentsPerPost,topLevelCommentsPerPost,profileScrapeSections,profileSorting,excludePinnedPosts)
Request
Send the inputs underparams. Only the keys below are accepted; any other key returns 422 invalid_params.
TikTok video URL to get comments from. E.g. https://www.tiktok.com/@username/video/1234567890.Format e.g.
https://www.tiktok.com/@looooooooch/video/7332342275151760642.TikTok username whose videos’ comments you want (with or without @). The actor pulls comments from the profile’s videos; use Videos Per Profile to control how many.Format e.g.
https://www.tiktok.com/@khaby.lame.Number of comments to return. Use 0 for all. Actual counts can vary on very high-comment videos due to TikTok API limits.
By Profile mode only. Which sections to pull videos from.Allowed values:
videos (Videos), reposts (Reposts).By Profile mode only. Order videos by latest, most popular, or oldest.Allowed values:
latest (Latest), popular (Most popular), oldest (Oldest).Example
Response fields
Each row indata is one comment, keyed by these fields.
Example response
Abridged: long text and lists are shortened.Related APIs
For the video itself usetiktok/posts; for a video’s 14-day growth curve use tiktok/video-analytics.