Tiktok Comment Scraper

Tiktok Comment Scraper

by sociavault

Scrape TikTok video comments automatically with pagination. Extract user comments, likes, replies, and timestamps into structured JSON/CSV for analysis.

58 runs
9 users
Try This Actor

Opens on Apify.com

About Tiktok Comment Scraper

Need to pull comments from TikTok videos for your project? This actor handles the tedious part, automatically scrolling through and collecting every comment so you don't have to. It's built to mimic real user behavior, navigating pagination seamlessly to grab the full conversation thread from any public video you give it. You'll get structured data with the comment text, the username, timestamps, and engagement numbers like likes and replies. I've used it to gather data for sentiment analysis, track brand mentions, and research audience reactions—it saves hours of manual copying or dealing with unstable unofficial APIs. Just plug in the video URL, configure your run, and it fetches a clean JSON or CSV file with all the interaction data ready for your database or analysis tool. It's straightforward and reliable for developers, marketers, or researchers who need actionable data from TikTok's vibrant comment sections without the headache.

What does this actor do?

Tiktok Comment Scraper is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.

Key Features

  • Cloud-based execution - no local setup required
  • Scalable infrastructure for large-scale operations
  • API access for integration with your applications
  • Built-in proxy rotation and anti-blocking measures
  • Scheduled runs and webhooks for automation

How to Use

  1. Click "Try This Actor" to open it on Apify
  2. Create a free Apify account if you don't have one
  3. Configure the input parameters as needed
  4. Run the actor and download your results

Documentation

TikTok Comment Scraper

Scrapes comments from TikTok videos using the SociaVault API. Retrieves detailed comment data including text, user profiles, likes, reply counts, and timestamps with automatic pagination.

Key Features

  • Multi-Video Support: Scrape comments from multiple video IDs in a single run.
  • Automatic Pagination: Fetches multiple pages automatically to reach your specified comment count.
  • Detailed Data: Returns comprehensive information for each comment and the commenting user.
  • Built-in Rate Limiting: Includes configurable delays to prevent hitting API limits.
  • Error Handling: Gracefully handles API failures and logs errors for troubleshooting.

How to Use

Provide an input configuration specifying the video IDs and how many comments to fetch per video.

Input Parameters

Parameter Type Required Default Description
videoIds Array Yes - List of TikTok video IDs.
maxCommentsPerVideo Integer No 20 Maximum number of comments to retrieve for each video.

Note: If you set maxCommentsPerVideo: 100 and provide 2 video IDs, the scraper will fetch up to 100 comments for each video (200 total).

Example Input

{
  "videoIds": ["7488736374602927402", "7123456789012345678"],
  "maxCommentsPerVideo": 100
}

Input/Output

Output Structure

For each video processed, the actor outputs an object with the following fields:

Field Type Description
success Boolean Indicates if the request succeeded.
videoId String The TikTok video ID that was scraped.
totalComments Number The total number of comments available on the video.
commentCount Number The number of comments actually retrieved (up to maxCommentsPerVideo).
comments Array An array of detailed comment objects.

Comment Object

Each item in the comments array contains:
* aweme_id: The video ID.
* text: The comment text.
* user: An object with user details (unique_id, nickname, uid, sec_uid, avatar_thumb).
* create_time: Unix timestamp of the comment.
* digg_count: Number of likes on the comment.
* reply_comment_total: Number of replies to this comment.
* comment_language: Detected language of the comment (e.g., "en").

Example Output

{
  "success": true,
  "videoId": "7488736374602927402",
  "totalComments": 925,
  "commentCount": 100,
  "comments": [
    {
      "aweme_id": "7488736374602927402",
      "text": "This is awesome!",
      "user": {
        "unique_id": "cooluser123",
        "nickname": "Cool User",
        "uid": "7151557610473800750",
        "sec_uid": "MS4wLjABAAAA...",
        "avatar_thumb": { ... }
      },
      "create_time": 1743795517,
      "digg_count": 784,
      "reply_comment_total": 3,
      "comment_language": "en"
    }
  ]
}

Performance & Limitations

  • Processing: Videos are processed sequentially, not in parallel.
  • Delays: A 500ms delay is added between pagination requests, and a 1-second delay between different videos to respect rate limits.
  • Comment Limit: The maxCommentsPerVideo parameter controls the maximum fetched per video.
  • Order: Comments are typically returned in chronological order (newest first).
  • Nested Replies: Only top-level comments are retrieved; nested reply threads are not included.
  • Disabled Comments: Some videos may have comments disabled, resulting in empty results.

Use Cases

  • Sentiment analysis for brand or content monitoring.
  • Tracking engagement metrics and comment patterns.
  • Content research based on audience reaction.
  • Trend analysis within video comments.
  • Evaluating influencer engagement.
  • Community feedback monitoring and management.

Error Handling

The actor includes error handling for common issues:
* Invalid API keys or configuration.
* Missing videoIds input.
* Individual API request failures (the actor logs the error and continues with the next video).
Failed video scrapes return an error object in the dataset for diagnosis.

Common Use Cases

Market Research

Gather competitive intelligence and market data

Lead Generation

Extract contact information for sales outreach

Price Monitoring

Track competitor pricing and product changes

Content Aggregation

Collect and organize content from multiple sources

Ready to Get Started?

Try Tiktok Comment Scraper now on Apify. Free tier available with no credit card required.

Start Free Trial

Actor Information

Developer
sociavault
Pricing
Paid
Total Runs
58
Active Users
9
Apify Platform

Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.

Learn more about Apify

Need Professional Help?

Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.

Find a Specialist

Trusted by millions | Money-back guarantee | 24/7 Support