# Scrape TikTok Comments and Replies

**Use case:** 

Scrape comments and replies from TikTok videos with likes and author for sentiment analysis. Swap in your own TikTok hashtags, profiles, or search keywords and run it on demand, on a schedule, or through the API. Export results as JSON, CSV, or Excel, or send them to Google Sheets, Zapier, Make, and n8n.

## Input

```json
{
  "profiles": [
    "khaby.lame"
  ],
  "resultsPerPage": 10,
  "searchSection": "videos",
  "profileSections": [
    "videos"
  ],
  "sortBy": "default",
  "includeComments": true,
  "maxCommentsPerVideo": 100,
  "includeReplies": true,
  "maxRepliesPerComment": 10,
  "includeFollowers": false,
  "includeFollowing": false,
  "maxFollowersPerProfile": 100,
  "includeAuthorProfiles": false,
  "includeSubtitles": false,
  "country": "US"
}
```

## Output

```json
{
  "coverUrl": {
    "label": "Cover",
    "format": "image"
  },
  "author.username": {
    "label": "Author"
  },
  "text": {
    "label": "Caption"
  },
  "viewCount": {
    "label": "Views",
    "format": "number"
  },
  "likeCount": {
    "label": "Likes",
    "format": "number"
  },
  "commentCount": {
    "label": "Comments",
    "format": "number"
  },
  "shareCount": {
    "label": "Shares",
    "format": "number"
  },
  "saveCount": {
    "label": "Saves",
    "format": "number"
  },
  "durationSeconds": {
    "label": "Duration (s)",
    "format": "number"
  },
  "music.title": {
    "label": "Sound"
  },
  "hashtags": {
    "label": "Hashtags",
    "format": "array"
  },
  "createdAt": {
    "label": "Posted",
    "format": "date"
  },
  "comments": {
    "label": "Collected comments",
    "format": "array"
  },
  "profileId": {
    "label": "Profile ID"
  },
  "url": {
    "label": "Link",
    "format": "link"
  }
}
```

## About this Actor

This example demonstrates how to use [TikTok Scraper](https://apify.com/calm_builder/tiktok-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/calm_builder/tiktok-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/calm_builder/tiktok-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`).
