# Extract TikTok Comments and Replies for Market Research

**Use case:** 

Scrape TikTok comment threads and nested replies from viral videos to analyze customer feedback and sentiment. Ideal for market researchers, this task returns comment text, user display names, like counts, and timestamps. You can adjust the maxCommentsPerPost and includeReplies settings to control the depth of data collection for specific product reviews or brand mentions.

## Input

```json
{
  "mode": "comments",
  "postUrls": [
    "https://www.tiktok.com/@khaby.lame/video/7574844184952081686"
  ],
  "maxItems": 500,
  "maxDetail": 1,
  "maxCommentsPerPost": 500,
  "includeReplies": true,
  "includeComments": false,
  "includeMediaUrls": true,
  "validateMediaUrls": false,
  "includeAuthorStats": true,
  "includeHashtags": true,
  "includeMentions": true,
  "includeSubtitles": false,
  "includeRawFields": false
}
```

## Output

```json
{
  "recordType": {
    "label": "Type",
    "format": "text"
  },
  "postId": {
    "label": "Post ID",
    "format": "text"
  },
  "postUrl": {
    "label": "Post URL",
    "format": "link"
  },
  "commentId": {
    "label": "Comment ID",
    "format": "text"
  },
  "text": {
    "label": "Text",
    "format": "text"
  },
  "user": {
    "label": "User",
    "format": "object"
  },
  "likeCount": {
    "label": "Likes",
    "format": "number"
  },
  "replyCount": {
    "label": "Replies",
    "format": "number"
  },
  "isReply": {
    "label": "Is Reply",
    "format": "boolean"
  },
  "createdAt": {
    "label": "Created At",
    "format": "text"
  },
  "language": {
    "label": "Language",
    "format": "text"
  },
  "source": {
    "label": "Source",
    "format": "text"
  },
  "scrapedAt": {
    "label": "Scraped At",
    "format": "text"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The TikTok Post & Slideshow Detail Scraper Actor is ready to run with the inputs already set for "Extract TikTok Comments and Replies for Market Research". [Sign up or log in](https://console.apify.com/create-task-from-example/2dSeiTF0iig1eRJoO) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Extract TikTok Comments and Replies for Market Research" task

The TikTok Post & Slideshow Detail Scraper Actor will start running based on the input automatically. You can also change all the input fields, like mode, post urls or ids, and more, to match your specific use case.

### 3. Receive the "Extract TikTok Comments and Replies for Market Research" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as type, post id, post url, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Extract TikTok Comments and Replies for Market Research" task via API](https://apify.com/nimbryxo-studio/tiktok-post-and-slideshow-detail-scraper.md).

## FAQ

### How do I extract TikTok comments from a video?

The TikTok comments task is set to read comments and replies from one video URL. Enter a TikTok video URL or post ID to collect its comment threads.

### What comment data does this TikTok comments task return?

Each row in the TikTok comments task can include comment text, the user's display name, likes, reply count, timestamp, and whether it is a reply.

### How do I include replies to TikTok comments?

Replies are enabled in the TikTok comments task, so the results can include nested replies with their parent comment.

### How much does it cost to extract TikTok comments?

At 500 maximum results, the TikTok comments task's result charge is at most $0.495 on the Free plan, plus the Actor start event and Apify compute usage.

### Can I download TikTok comments as a CSV file?

Results from the TikTok comments task can be downloaded as CSV, JSON, Excel, XML, RSS, or an HTML table, or read through the Apify API.

### Can I run TikTok comment extraction on a schedule?

You can schedule the TikTok comments task with Apify Schedules, run it through the Apify API, or use integrations such as Zapier, Make, and n8n.

### Can I extract TikTok Shop comments with this?

The TikTok comments task accepts TikTok video or photo post URLs and IDs; the provided settings do not specify a TikTok Shop product input.

### Is extracting public TikTok comments allowed?

The TikTok comments task reads public data without login, but whether a use is lawful depends on its purpose, TikTok's terms, and data protection laws such as GDPR or CCPA; the person running it is responsible.

## About this Actor

This example demonstrates how to use [TikTok Post & Slideshow Detail Scraper](https://apify.com/nimbryxo-studio/tiktok-post-and-slideshow-detail-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/nimbryxo-studio/tiktok-post-and-slideshow-detail-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/nimbryxo-studio/tiktok-post-and-slideshow-detail-scraper.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
