# TikTok Comments Scraper - Replies, Likes & Authors (`epicscrapers/tiktok-comments-scraper`) Actor

Export comments and full reply threads from any TikTok video: text, likes, dates, pinned and creator-liked flags, commenter handle and profile, plus video stats on every row. Paste video URLs, share links or usernames. No login. $0.30 per 1,000 comments.

- **URL**: https://apify.com/epicscrapers/tiktok-comments-scraper.md
- **Developed by:** [Epic Scrapers](https://apify.com/epicscrapers) (community)
- **Categories:** Social media, Videos, Lead generation
- **Features:** Limited permissions
- **Stats:** 9 total users, 6 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.25 / 1,000 comment saveds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

![TikTok Comments Scraper](https://api.apify.com/v2/key-value-stores/KU7edfQ6yLQgrzCHZ/records/hero.png)

### TikTok Comments Scraper: export comments, replies, likes and commenters to CSV, Excel or JSON

TikTok Comments Scraper turns any TikTok video into a clean table of its comments. Every comment and reply is one row with its text, likes, date, language, pinned and creator-liked flags, the commenter's username and profile link, and the video's caption and view, like and share counts. Paste video links, share links, video IDs or creators' usernames. No TikTok account, cookies or proxy setup needed.

- **Past the ~400 comment wall.** TikTok's comment feed says "no more comments" after about 400 while thousands more are still there. This scraper keeps reading and returned 4,775 comments on a video where stopping at that signal gives 341.
- **Full reply threads.** Replies are saved right after their parent comment with `parentCommentId`, so a spreadsheet keeps the conversation in order.
- **One flat row per comment.** No nested JSON to unpack. Every row also carries the video's stats, so comments from many videos can be compared in one sheet.
- **Optional commenter profiles.** Add each commenter's followers, likes, video count, bio and verified badge for influencer and audience research.
- **Fast.** About 75 comments per second per video, five videos in parallel (measured October 2026).
- **Pay per comment.** $0.30 per 1,000 comments, replies included, and $0.25 on the Business plan. No start fee, no per-video or per-thread fee, and free-plan users get full results, not a 10-item demo.

### What can you do with it?

| Goal | How |
| --- | --- |
| Sentiment analysis and social listening | Export all comments of a campaign's videos and run them through a sentiment model or an AI assistant. |
| Brand and product monitoring | Schedule a run with **Only comments posted after** set to `1 day` to collect just the new comments every morning. |
| Influencer research | Turn on **Add commenter profiles** and sort commenters by `authorFollowerCount` to find creators in an audience. |
| Find leads and superfans | Sort by `likeCount` to see the most engaged commenters, then open their `authorProfileUrl`. |
| Content research | Compare what people say under a creator's latest videos, or the videos they reposted, with the **Usernames** input. |
| Giveaways | Export every comment of a giveaway video and pick a winner from the `authorUniqueId` column. |
| Academic research | Collect comment datasets with language codes, timestamps and reply structure for studies of online discourse. |

### Quick start

1. Click **Try for free** and sign in to Apify.
2. Paste one or more TikTok video URLs into **TikTok video URLs**.
3. Set **Max comments per video**. Use `0` for every comment TikTok shows.
4. Optional: set **Max replies per comment** to save reply threads.
5. Click **Start**, then export the results from the **Output** tab as CSV, Excel, JSON or HTML.

```json
{
    "postURLs": ["https://www.tiktok.com/@khaby.lame/video/7697307919943060767"],
    "commentsPerPost": 500,
    "maxRepliesPerComment": 5
}
```

### For AI agents

Call `epicscrapers/tiktok-comments-scraper` with video URLs (or IDs, share links) in `postURLs`. Each dataset item is one comment or reply.

```json
{ "postURLs": ["https://www.tiktok.com/@khaby.lame/video/7697307919943060767"], "commentsPerPost": 100, "maxRepliesPerComment": 3 }
```

Key output fields: `type` (`comment`/`reply`), `commentId`, `parentCommentId`, `text`, `createTimeISO`, `likeCount`, `replyCount`, `language`, `authorUniqueId`, `authorNickname`, `authorProfileUrl`, `videoUrl`, `videoCommentCount`. Rows with an `errorCode` field are inputs that could not be scraped (free).

### What data do you get?

Every row is one comment or reply.

| Group | Fields |
| --- | --- |
| Comment | `type`, `commentId`, `text`, `createTime`, `createTimeISO`, `likeCount`, `replyCount`, `language`, `isPinned`, `isLikedByCreator`, `isFromVideoAuthor`, `imageUrls`, `mentions`, `hashtags` |
| Thread | `parentCommentId` (the comment a reply belongs to), `replyToCommentId` (the reply it answers, when TikTok links one) |
| Commenter | `authorId`, `authorUniqueId`, `authorNickname`, `authorSecUid`, `authorProfileUrl`, `authorAvatarUrl` |
| Video | `videoId`, `videoUrl`, `videoDescription`, `videoCreateTimeISO`, `videoAuthorUniqueId`, `videoAuthorNickname`, `videoAuthorId`, `videoPlayCount`, `videoLikeCount`, `videoCommentCount`, `videoShareCount`, `videoSaveCount` |
| Source (profile input only) | `sourceProfile` (the username you entered), `sourceSection` (`videos` or `reposts`) |

With **Add commenter profiles** on, rows also have:

| Group | Fields |
| --- | --- |
| Commenter profile | `authorFollowerCount`, `authorFollowingCount`, `authorLikesCount`, `authorVideoCount`, `authorVerified`, `authorBio`, `authorBioLink`, `authorIsPrivate`, `authorLanguage`, `authorCreateTimeISO` |

### How it compares

Checked on Apify Store in October 2026.

| | TikTok Comments Scraper | Typical TikTok comment scrapers |
| --- | --- | --- |
| Comments per long video | Thousands: keeps reading past TikTok's "no more comments" signal at ~400 | Often stop at TikTok's signal |
| Reply threads | Yes, saved under their parent | Yes, often as nested JSON or with an extra fee per reply request |
| Commenter followers, bio, badge | Optional | Rarely |
| Video stats on every row | Views, likes, comments, shares, saves | Usually only the video URL or ID |
| Price per 1,000 comments | $0.30 ($0.25 on Business) | $0.30–$1.25 on paid plans, up to $5.00 on the free plan |
| Free plan | Full results | Some limit free users to a 10-item demo |
| Extra fees | None | Some charge per video or per reply request |

### Input reference

| Field | What it does |
| --- | --- |
| `postURLs` | Video URLs, photo post URLs, share links (`vm.tiktok.com`, `tiktok.com/t/`) or video IDs. |
| `commentsPerPost` | Max rows per video, comments and replies together. `0` = all. Default `100`. |
| `maxRepliesPerComment` | Replies saved under each comment. `0` = none (default). |
| `topLevelCommentsPerPost` | Optional separate cap on top-level comments, so replies don't use up the per-video limit. |
| `maxItems` | Stop the whole run after this many rows. `0` = no limit. |
| `oldestCommentDate` | Only save comments and replies posted on or after a date, e.g. `2026-10-01` or `7 days`. |
| `includeCommenterProfiles` | Add follower counts, bio and badges of each commenter (charged once per commenter). |
| `profiles` | Usernames or profile URLs; comments of their latest videos are scraped. |
| `videosPerProfile` | How many videos per selected profile section (default 3). Posts: the latest 10 at most. |
| `profileScrapeSections` | `videos` (the creator's own posts), `reposts` (videos they reposted), or both. Default `videos`. |
| `oldestPostDate`, `newestPostDate` | Only a creator's videos published in this date range. |

The field names match the most popular TikTok comment scraper on Apify Store, so an existing input JSON works without changes.

### Ready-to-run examples

#### Every comment of one video, with replies

```json
{
    "postURLs": ["https://www.tiktok.com/@khaby.lame/video/7697307919943060767"],
    "commentsPerPost": 0,
    "maxRepliesPerComment": 50
}
```

#### New comments under a creator's latest videos, every day

Save this as a task and schedule it daily.

```json
{
    "profiles": ["khaby.lame"],
    "videosPerProfile": 5,
    "commentsPerPost": 0,
    "maxRepliesPerComment": 20,
    "oldestCommentDate": "1 day"
}
```

#### Influencers in a video's audience

```json
{
    "postURLs": ["https://www.tiktok.com/@khaby.lame/video/7697307919943060767"],
    "commentsPerPost": 300,
    "includeCommenterProfiles": true
}
```

Sort the result by `authorFollowerCount`.

### Output

A comment and one of its replies (usernames and IDs anonymized):

```json
[
    {
        "type": "comment",
        "commentId": "7694336366444020498",
        "parentCommentId": null,
        "replyToCommentId": null,
        "text": "the ending got me 😂",
        "createTime": 1791477296,
        "createTimeISO": "2026-10-08T16:34:56.000Z",
        "likeCount": 162,
        "replyCount": 9,
        "language": "en",
        "isPinned": false,
        "isLikedByCreator": false,
        "isFromVideoAuthor": false,
        "imageUrls": [],
        "mentions": [],
        "hashtags": [],
        "authorId": "7521652065895007250",
        "authorUniqueId": "example.user",
        "authorNickname": "Example User",
        "authorSecUid": "MS4wLjABAAAA…",
        "authorProfileUrl": "https://www.tiktok.com/@example.user",
        "authorAvatarUrl": "https://p16-common-sign.tiktokcdn-eu.com/…",
        "videoId": "7694335322922044703",
        "videoUrl": "https://www.tiktok.com/@khaby.lame/video/7694335322922044703",
        "videoDescription": "Was the ball out, or was it just my imagination? 🤨#learnfromkhaby #comedy ",
        "videoCreateTimeISO": "2026-10-08T16:31:16.000Z",
        "videoAuthorUniqueId": "khaby.lame",
        "videoAuthorNickname": "Khabane lame",
        "videoAuthorId": "127905465618821121",
        "videoPlayCount": 6600000,
        "videoLikeCount": 675700,
        "videoCommentCount": 12400,
        "videoShareCount": 20500,
        "videoSaveCount": 39370
    },
    {
        "type": "reply",
        "commentId": "7696238087073219350",
        "parentCommentId": "7694336366444020498",
        "replyToCommentId": null,
        "text": "every single time",
        "createTimeISO": "2026-10-13T19:35:00.000Z",
        "likeCount": 36,
        "replyCount": null,
        "authorUniqueId": "another.user",
        "…": "same commenter and video fields as above"
    }
]
```

When an input can't be scraped, the dataset gets a free error row instead of silently skipping it:

```json
{ "input": "7000000000000000001", "url": "https://www.tiktok.com/@/video/7000000000000000001", "errorCode": "POST_NOT_FOUND_OR_PRIVATE", "error": "item doesn't exist" }
```

Error codes: `INVALID_URL`, `POST_NOT_FOUND_OR_PRIVATE`, `POST_FAILED`, `PROFILE_NOT_FOUND`, `PROFILE_FAILED`, `PROFILE_NO_VIDEOS`.

### FAQ

#### Why do I get fewer comments than the number TikTok shows?

TikTok's comment counter includes replies and comments it doesn't show the public: comments caught by TikTok's spam and offensive-content filter, comments held by the creator's keyword filter for approval, and removed ones. On a test video with a counter of 7,019, the scraper saved 4,775 top-level comments plus 561 replies (5,338, 76%), which is everything TikTok shows a visitor. The run log says this for each video. With **Max replies per comment** at `0`, replies aren't saved, so the gap is larger.

#### Does it scrape replies?

Yes. Set **Max replies per comment** to the number of replies you want under each comment. Replies count toward **Max comments per video**; use **Max top-level comments per video** if you want a fixed number of comments plus their replies.

#### How fast is it?

On the Apify platform a video's 4,775 comments took 57 seconds including start-up. Up to five videos run in parallel. Commenter profiles add one request per commenter, about 2–3 per second.

#### Can I get only new comments?

Yes. Set **Only comments posted after** to a relative date like `1 day` and schedule the task. TikTok doesn't sort comments by date, so the scraper still reads the whole comment list but saves and charges only the new comments and replies.

#### Which creator videos does the Usernames input use?

Posts: the creator's latest 10, newest first, without pinned videos. Reposts: the videos the creator reposted, newest first. Choose with **Profile sections**, **Videos per profile** and the date range (for reposts the date is the original upload). For older posts, paste their URLs.

#### Do I need a TikTok account, cookies or proxies?

No. The scraper reads only public data, without logging in, and handles proxies itself. Private and deleted videos return an error row.

#### Is it legal to scrape TikTok comments?

The scraper collects only data that TikTok shows publicly to anyone. Comments contain personal data such as usernames, so data protection laws like the GDPR apply to how you store and use them. If you're unsure, ask a lawyer.

### Cost

You pay per comment or reply saved. Platform usage and proxies are included.

| Event | Free | Starter | Scale | Business |
| --- | --- | --- | --- | --- |
| Comment or reply saved | $0.30 / 1,000 | $0.30 / 1,000 | $0.30 / 1,000 | $0.25 / 1,000 |
| Commenter profile added (optional) | $1.00 / 1,000 | $1.00 / 1,000 | $1.00 / 1,000 | $1.00 / 1,000 |

Error rows are free, and there's no start fee or per-video fee. Set a maximum cost per run in the run options and the scraper stops there.

### Support

Found a bug or need a field that isn't here? Open an issue on the **Issues** tab and include the run link.

# Actor input Schema

## `postURLs` (type: `array`):

Videos to scrape comments from. Each entry can be a video URL (https://www.tiktok.com/@user/video/7697307919943060767), a photo post URL, a share link (vm.tiktok.com/..., tiktok.com/t/...) or a bare video ID.

## `commentsPerPost` (type: `integer`):

Maximum rows saved per video, top-level comments and replies together. Set to 0 for every comment TikTok shows.

## `maxRepliesPerComment` (type: `integer`):

How many replies to save under each comment. 0 saves no replies. Replies are saved right after their comment and count toward Max comments per video.

## `topLevelCommentsPerPost` (type: `integer`):

Optional separate limit for top-level comments, so replies don't use up the per-video limit. 0 means no separate limit.

## `maxItems` (type: `integer`):

Stop the whole run after this many rows (comments and replies). 0 means no total limit. You can also set a maximum cost per run in the run options.

## `oldestCommentDate` (type: `string`):

Save only comments and replies posted on or after this date: an absolute date (2026-10-01) or a relative one (7 days, 2 weeks). Use a relative date in a scheduled run to collect only new comments. TikTok doesn't sort comments by date, so every page of the video is still read (within Max top-level comments per video).

## `includeCommenterProfiles` (type: `boolean`):

Adds each commenter's follower, following, like and video counts, bio, bio link, verified badge, private flag and account creation date to their rows. One extra request per unique commenter, charged as a separate event once per commenter per run.

## `profiles` (type: `array`):

Creators whose latest videos you want comments from. Each entry can be a username (khaby.lame), @username or profile URL.

## `videosPerProfile` (type: `integer`):

How many videos to scrape from each selected section of a profile. Posts are the creator's latest 10 at most (newest first, pinned videos not included); reposts can go further.

## `profileScrapeSections` (type: `array`):

Which videos of each profile to scrape comments from: the creator's own posts, the videos they reposted, or both. Rows from profiles name the profile and section in sourceProfile and sourceSection.

## `oldestPostDate` (type: `string`):

Only scrape a creator's videos published on or after this date (absolute or relative, e.g. 30 days).

## `newestPostDate` (type: `string`):

Only scrape a creator's videos published on or before this date.

## Actor input object example

```json
{
  "postURLs": [
    "https://www.tiktok.com/@khaby.lame/video/7697307919943060767"
  ],
  "commentsPerPost": 100,
  "maxRepliesPerComment": 0,
  "topLevelCommentsPerPost": 0,
  "maxItems": 0,
  "includeCommenterProfiles": false,
  "videosPerProfile": 3,
  "profileScrapeSections": [
    "videos"
  ]
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "postURLs": [
        "https://www.tiktok.com/@khaby.lame/video/7697307919943060767"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("epicscrapers/tiktok-comments-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "postURLs": ["https://www.tiktok.com/@khaby.lame/video/7697307919943060767"] }

# Run the Actor and wait for it to finish
run = client.actor("epicscrapers/tiktok-comments-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "postURLs": [
    "https://www.tiktok.com/@khaby.lame/video/7697307919943060767"
  ]
}' |
apify call epicscrapers/tiktok-comments-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,epicscrapers/tiktok-comments-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/VyVgW7FeQz5xzqKkx/builds/qua20NPBaI7wjVIQd/openapi.json
