# TikTok Comments Exporter: Replies, No Login (`firsthand/tiktok-comments-exporter`) Actor

TikTok comments exporter: paste video or photo links and export comments and replies to CSV, Excel or JSON. Steps over the gaps where some scrapers stop: thousands of comments on big videos, with likes, authors, dates and creator flags. No login or cookies. A free coverage row per video.

- **URL**: https://apify.com/firsthand/tiktok-comments-exporter.md
- **Developed by:** [Firsthand](https://apify.com/firsthand) (community)
- **Categories:** Social media, Marketing
- **Features:** Limited permissions
- **Stats:** 14 total users, 5 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.25 / 1,000 comments

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 Exporter: Replies, No Login

Export comments and replies from TikTok videos and photo posts to CSV, Excel or JSON. Paste the links, set how many comments you want per video, and get one row per comment with the text, likes, reply count, author, date and creator flags.

There is no TikTok login, no cookies and no browser extension. The Actor reads the same public comment list that TikTok shows to anyone who opens the video, and it steps over the gaps in that list where some scrapers stop after a few hundred comments.

### What you get

One row per comment or reply:

- `type`: `comment` or `reply`
- `cid`, `text`, `createTime`, `createTimeISO`: the comment, its ID and when it was posted
- `diggCount`, `replyCommentTotal`: likes and number of replies
- `repliesToId`, `replyToReplyId`: for a reply, the comment it belongs to and the reply it answers
- `uid`, `uniqueId`, `nickname`, `secUid`, `profileUrl`, `avatarThumbnail`: the author
- `isVideoAuthor`: the comment was written by the creator of the video
- `likedByAuthor`: the creator liked the comment
- `pinnedByAuthor`: TikTok's pin flag; it was false on every comment in our tests, so do not rely on it
- `commentLanguage`: language code TikTok assigns to the comment
- `mentions`, `detailedMentions`: accounts tagged in the comment as they appear in the text (`@name`), with their TikTok user ID and `secUid`
- `images`, `sticker`: picture and sticker comments
- `videoId`, `videoWebUrl`, `submittedVideoUrl`, `input`, `scrapedAt`: which of your links the row came from

Plus one free row per video (`type: "video"`): TikTok's comment counter, how many comments and replies you got, the coverage in percent and why the video stopped (end of the list, your limit, deleted or private post). Turn it off with **Add a coverage row per video**.

The field names follow the most used TikTok comments scraper on Apify (`cid`, `text`, `diggCount`, `uniqueId`, `createTimeISO` and others), so most pipelines need few changes.

### TikTok comments scraper: how to use it

1. Paste one or more links into **TikTok videos**, one per line. Accepted:
   - `https://www.tiktok.com/@duolingo/video/7688403830588935438`
   - photo posts: `https://www.tiktok.com/@user/photo/7...`
   - short share links: `https://vt.tiktok.com/...`, `https://vm.tiktok.com/...`, `https://www.tiktok.com/t/...` (the Actor follows the redirect to the video; a dead short link gets a free row with `SHORT_LINK_FAILED` or `POST_NOT_FOUND_OR_PRIVATE`)
   - a bare video ID: `7688403830588935438`
2. Set **Max comments per video**, or leave it empty to get every comment TikTok lists for the video.
3. Turn on **Include replies** if you need the threads, and set **Max replies per comment** if you want fewer.
4. Run the Actor and download the dataset as CSV, Excel, JSON or HTML.

Each comment appears once per run and is charged once, even when TikTok sends it twice while paging. The same post entered twice (for example as a short link and a full link) is read once.

### Export TikTok comments to Excel or CSV

Open the run's **Output** tab and choose **Export**: CSV and Excel files have one comment per line. The **Comments** view shows the main columns (text, likes, replies, date, author, creator flags, link); the **Coverage per video** view shows the free summary rows. To keep only comments in the file, filter `type` to `comment` and `reply`.

### How many comments you get

TikTok's comment list does not end where it first says it does: somewhere in the list (after about 50 comments on one test video, after about 350 on others) it returns a short or empty page marked "no more comments", and then continues. The Actor steps over those gaps, re-reads a little right after each gap (a plain jump skips comments there) and stops only after several empty pages in a row. In tests in November 2026:

| Video | TikTok counter | This Actor | Two other comment scrapers, same minute |
|---|---|---|---|
| Video with 923 comments | 923 | 412 comments to the end of the list | 113 and 55 |
| MrBeast video | 142,969 | 800 of 800 asked; 12,000 of 12,000 in a separate run (4 minutes) | 359 and 800 of 800 |

The sets overlap but are not identical: each scraper also returned some comments the others did not, including a few highly liked ones, so this Actor is deeper than these two but not a superset of them. The two most used TikTok comment scrapers on Apify were not part of this test.

The TikTok counter includes replies. In our tests, top-level comments plus the reply counts they show added up to 64-95% of the counter, depending on the video and on where it was read from. The coverage row shows both numbers: `coveragePct` (what you got) and `reachablePct` (your comments plus the reply counts they show). The reply lists themselves can hold fewer replies than their counts, see below.

Replies: TikTok shows most, but not always all, replies of a comment. In a test with a comment showing 305 replies, 238 different replies were available.

### TikTok comment picker for giveaways

To pick a winner from the comments, export the comments of the post, remove duplicates by `uniqueId` in Excel or Google Sheets and pick a random row. `createTimeISO` lets you drop comments posted after the deadline. The Actor does not pick a winner itself.

### Example output

```json
{
  "type": "comment",
  "cid": "7690000000000000001",
  "text": "Example comment text",
  "createTime": 1762560000,
  "createTimeISO": "2025-11-08T00:00:00.000Z",
  "diggCount": 1520,
  "replyCommentTotal": 14,
  "repliesToId": null,
  "replyToReplyId": null,
  "uid": "6800000000000000001",
  "uniqueId": "example_user",
  "nickname": "Example User",
  "secUid": "MS4wLjABAAAA...",
  "profileUrl": "https://www.tiktok.com/@example_user",
  "avatarThumbnail": "https://p16-common-sign.tiktokcdn-us.com/...",
  "isVideoAuthor": false,
  "likedByAuthor": true,
  "pinnedByAuthor": false,
  "commentLanguage": "en",
  "mentions": [],
  "detailedMentions": [],
  "images": [],
  "sticker": null,
  "videoId": "7688403830588935438",
  "videoWebUrl": "https://www.tiktok.com/@duolingo/video/7688403830588935438",
  "submittedVideoUrl": "https://www.tiktok.com/@duolingo/video/7688403830588935438",
  "input": "https://www.tiktok.com/@duolingo/video/7688403830588935438",
  "scrapedAt": "2026-11-09T17:49:04Z"
}
```

Coverage row:

```json
{
  "type": "video",
  "videoId": "7688359466324004110",
  "videoWebUrl": "https://www.tiktok.com/@nike/video/7688359466324004110",
  "status": "done",
  "commentCount": 274,
  "delivered": 238,
  "comments": 238,
  "replies": 0,
  "coveragePct": 86.9,
  "repliesAvailable": 19,
  "reachablePct": 93.8,
  "endReason": "end of list: 4 empty windows in a row, last cursor 450",
  "errorCode": null,
  "duplicatesSkipped": 3
}
```

### Pricing

$0.30 per 1,000 comments on the Free and Bronze plans, less on higher plans:

| Apify plan | Per comment or reply | Per 1,000 |
|---|---|---|
| Free, Bronze | $0.0003 | $0.30 |
| Silver | $0.00029 | $0.29 |
| Gold, Platinum, Diamond | $0.00025 | $0.25 |

No start fee. The coverage rows are free, duplicates are removed before you are charged, and proxy and compute are included. Set a spending limit on the run and the Actor stops before going over it.

### TikTok comments API for developers

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("firsthand/tiktok-comments-exporter").call(run_input={
    "videoUrls": ["https://www.tiktok.com/@duolingo/video/7688403830588935438"],
    "maxCommentsPerVideo": 1000,
    "includeReplies": False,
})
for row in client.dataset(run.default_dataset_id).iterate_items():
    if row.get("type") != "video":
        print(row["createTimeISO"], row["diggCount"], row["text"])
```

Input names from other TikTok comments Actors work too: `postURLs`, `startUrls` with `{"url": ...}`, `videoIds`, `commentsPerPost`, `topLevelCommentsPerPost`, `maxComments`, `maxRepliesPerComment`, `resultsLimit`. They keep the meaning they have there, so a copied input does not cost more: `commentsPerPost` counts comments and replies together, `maxComments` is a limit for the whole run, and `postURLs` without any limit gets 100 comments per post.

### Good to know

- **Profiles, hashtags and search are not supported.** Paste video or photo post links. A profile link is reported in the log and skipped.
- **Deleted and private posts** get a free coverage row with `errorCode: POST_NOT_FOUND_OR_PRIVATE` and are not charged.
- **The list depends on where it is read from.** TikTok shows a slightly different set of comments to different addresses. The Actor reads from US addresses; in our test one video read from the US and from Ukraine gave 412 and 406 comments, 368 of them the same.
- **Comment order** is TikTok's own, not by date. Sort by `createTimeISO` after export if you need it.
- **Use of the data.** Comments are public, but they are written by people and include usernames: personal data under GDPR and similar laws. You are responsible for how you store and use them and for TikTok's terms. Nothing here is legal advice.
- **Not affiliated with TikTok.** TikTok is a trademark of ByteDance Ltd.
- **Problems.** Open an issue on the Issues tab with the input of the run and what you expected.

# Actor input Schema

## `videoUrls` (type: `array`):

TikTok video or photo post links, one per line: https://www.tiktok.com/@user/video/123..., https://www.tiktok.com/@user/photo/123..., short share links (vm.tiktok.com, vt.tiktok.com, tiktok.com/t/) or bare video IDs. Profile links are not supported.

## `maxCommentsPerVideo` (type: `integer`):

Stop each video after this many top-level comments. Empty means every comment TikTok shows for the video. Replies are limited separately below.

## `includeReplies` (type: `boolean`):

Also scrape the replies under each comment. Every reply is one more result and is charged like a comment.

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

With replies on: stop each comment's replies after this many. Empty means all replies TikTok shows.

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

Stop the whole run after this many comments and replies across all videos. Empty means no total limit.

## `videoSummaryRows` (type: `boolean`):

Add one free row per video (type "video") with TikTok's comment counter, how many comments you got, the coverage in percent and why the video stopped (end of list, your limit, deleted or private post). Never charged.

## Actor input object example

```json
{
  "videoUrls": [
    "https://www.tiktok.com/@duolingo/video/7688403830588935438"
  ],
  "maxCommentsPerVideo": 100,
  "videoSummaryRows": true
}
```

# Actor output Schema

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

No description

## `summary` (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 = {
    "videoUrls": [
        "https://www.tiktok.com/@duolingo/video/7688403830588935438"
    ],
    "maxCommentsPerVideo": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("firsthand/tiktok-comments-exporter").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 = {
    "videoUrls": ["https://www.tiktok.com/@duolingo/video/7688403830588935438"],
    "maxCommentsPerVideo": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("firsthand/tiktok-comments-exporter").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 '{
  "videoUrls": [
    "https://www.tiktok.com/@duolingo/video/7688403830588935438"
  ],
  "maxCommentsPerVideo": 100
}' |
apify call firsthand/tiktok-comments-exporter --silent --output-dataset

```

## MCP server setup

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

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/gFanufNh4fjsXxndB/builds/PTIGgY4TMb87X5QxN/openapi.json
