# TikTok Comments Scraper — Replies, Likes & Commenters (`memo23/tiktok-comments-scraper`) Actor

Scrape every comment on any TikTok video — no login, no cookies. Get comment text, like count, reply count, posting date, detected language, and the commenter's handle, nickname and ID. Optional threaded replies. Deduplicated pagination. JSON, CSV, or Excel.

- **URL**: https://apify.com/memo23/tiktok-comments-scraper.md
- **Developed by:** [Muhamed Didovic](https://apify.com/memo23) (community)
- **Categories:** Social media, AI, Agents
- **Stats:** 13 total users, 12 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 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.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## TikTok Comments Scraper

<p align="center">
  <img src="https://raw.githubusercontent.com/muhamed-didovic/muhamed-didovic.github.io/main/assets/tiktok-comments-logo.png" alt="TikTok Comments Scraper" width="240" />
</p>

**Scrape every comment on any public TikTok video — no login, no cookies.** Paste video links and get back each comment with its text, like count, reply count, posting date, detected language, and the commenter's handle, nickname and ID. Threaded replies optional. From **$0.49 per 1,000 comments**. Export as JSON, CSV, or Excel.

### Why Use This Scraper?

- **No duplicate rows.** TikTok's comment cursor counts *requested* items, not delivered ones, so consecutive pages overlap. This Actor deduplicates by comment ID, so 1,000 rows means 1,000 distinct comments — not 980 plus 20 repeats.
- **Threaded replies** — switch on `includeReplies` and each reply arrives as its own row, tagged `isReply` with a `parentCommentId` pointing at the comment it answers.
- **Language on every comment** — TikTok's own detected language code (`en`, `es`, `fr`, …), so you can filter a global comment section down to the market you care about.
- **Full commenter identity** — handle, nickname, numeric ID, and `secUid`, plus a ready-made profile URL. The `secUid` is the key TikTok's own APIs use, so these rows feed straight into follower or profile enrichment.
- **Author signals** — `isPinnedByAuthor` and `isLikedByAuthor` show which comments the creator promoted or endorsed.
- **No TikTok account needed** — nothing to configure, no 2FA, no cookies, zero risk to your own account.

### Overview

This Actor returns **one dataset row per comment**. For each input video it walks the comment list page by page until the list ends or your cap is reached, deduplicating as it goes. With replies enabled it then fetches the thread under every comment that has one. Data is retrieved through a third-party TikTok data provider, so no TikTok credentials are ever required.

### Supported Inputs

| Input | Example |
|---|---|
| Full video URL | `https://www.tiktok.com/@user/video/7069503422751362346` |
| Share link | `https://vm.tiktok.com/ZMxxxxxx/` |
| Bare video ID | `7069503422751362346` |

- Mix formats freely — one per line. Share links are resolved by following the redirect, which costs nothing extra.
- **Not supported:** profile URLs, hashtag pages, or live streams. Videos that are private, deleted, or have comments disabled return an error item and the run continues.

> Pure HTTP. No browser, no CAPTCHA solver, no cookies.

### Use Cases

| Audience | How they use it |
|---|---|
| Brand & social teams | Read what people actually say under your videos and your competitors' |
| Market researchers | Mine unfiltered opinion at scale, filtered by comment language |
| Creators | Find the top-liked questions worth answering in a follow-up video |
| Community / moderation | Export a full comment record for review or archiving |

### How It Works

<p align="center">
  <img src="https://raw.githubusercontent.com/muhamed-didovic/muhamed-didovic.github.io/main/assets/how-it-works-tiktok-comments.png" alt="How the TikTok Comments Scraper works" width="900" />
</p>

1. **Resolve** — each input becomes a numeric video ID (share links are followed to their destination first).
2. **Paginate** — the comment list is walked page by page, deduplicated by comment ID, until the end or your cap.
3. **Emit** — every comment becomes a row with its stats, language, and commenter identity. With replies on, each thread is fetched and appended.

### Input Configuration

| Field | Type | Required | Notes |
|---|---|---|---|
| `videos` | array of strings | Yes | Video URLs, share links, or bare IDs. |
| `maxCommentsPerVideo` | integer | No | Cap top-level comments per video. Omit to collect the whole list. |
| `includeReplies` | boolean | No | Also collect replies as extra rows. Default: `false`. |
| `maxRepliesPerComment` | integer | No | Cap replies per comment when replies are on. Default: `50`. |

#### Example input

```json
{
    "videos": [
        "https://www.tiktok.com/@caralinerosee/video/7069503422751362346",
        "7069503422751362346"
    ],
    "maxCommentsPerVideo": 500,
    "includeReplies": true,
    "maxRepliesPerComment": 20
}
```

### Output Overview

Each item is a flat object describing one comment — top-level or reply. Runs stream to the default dataset, exportable as JSON, CSV, Excel, or via the API.

### Output Samples

```json
{
    "videoId": "7069503422751362346",
    "videoUrl": "https://www.tiktok.com/@caralinerosee/video/7069503422751362346",
    "commentId": "7069518147623142190",
    "isReply": false,
    "parentCommentId": null,
    "text": "L mom",
    "likeCount": 210324,
    "replyCount": 111,
    "createTime": "2022-02-27T22:21:06.000Z",
    "language": "en",
    "isPinnedByAuthor": false,
    "isLikedByAuthor": false,
    "commenterUsername": "msinvincible",
    "commenterNickname": "invincible 🥀",
    "commenterId": "16973289",
    "commenterSecUid": "MS4wLjABAAAAAfY2QvhuZWvS7pnpX3QUkDNOcqfLVv2EA9ESN1FikN0",
    "commenterVerified": false,
    "commenterProfileUrl": "https://www.tiktok.com/@msinvincible"
}
```

A reply row carries the same fields with `isReply: true` and `parentCommentId` set to the comment it answers.

### Key Output Fields

| Field | Description |
|---|---|
| `videoId` / `videoUrl` | The video the comment belongs to |
| `commentId` | Unique comment ID (rows are deduplicated on this) |
| `isReply` / `parentCommentId` | Whether the row is a reply, and which comment it answers |
| `text` | The comment itself |
| `likeCount` / `replyCount` | Likes on the comment, and how many replies it has |
| `createTime` | When it was posted (ISO 8601) |
| `language` | TikTok's detected language code for the comment |
| `isPinnedByAuthor` / `isLikedByAuthor` | Whether the video's creator pinned or liked it |
| `commenterUsername` / `commenterNickname` | Who wrote it |
| `commenterId` / `commenterSecUid` | TikTok's numeric and secure IDs for the commenter |
| `commenterVerified` / `commenterProfileUrl` | Verification badge and a direct profile link |

### FAQ

**Do I need to log in or provide cookies?**
No. The Actor never touches your TikTok account.

**Will I get duplicate comments?**
No. TikTok's pagination cursor advances by the number of comments *requested* rather than delivered, so raw pages overlap. This Actor deduplicates by comment ID before writing rows.

**How many comments can I get from one video?**
As many as TikTok serves — videos with tens of thousands of comments paginate fully. Use `maxCommentsPerVideo` to cap cost on popular videos.

**Are replies included?**
Only if you switch on `includeReplies`. Replies cost roughly one extra request per comment that has them, so runs take longer and cost more. Each reply is its own row linked by `parentCommentId`.

**What happens with a private or deleted video?**
It returns an error item explaining why, and the run continues with your other videos.

**What does it cost?**
Pay per result: from **$0.49 per 1,000 comments**, plus a small per-run start fee. No subscription.

### Support

Found a bug or need a field added? Open an issue on the Actor's **Issues** tab in Apify Console, or email <muhamed.didovic@gmail.com>.

### Additional Services

Need a custom TikTok or social-media scraper, enrichment pipeline, or a private version of this Actor? Custom builds available — reach out at <muhamed.didovic@gmail.com>.

### Explore More Scrapers

- **[TikTok Followers & Following Scraper](https://apify.com/memo23/tiktok-followers-scraper)** — followers, following, and suggested accounts with per-account stats
- **[TikTok Hashtag Scraper](https://apify.com/memo23/tiktok-hashtag-scraper)** — every video posted under a hashtag, with engagement stats
- **[TikTok Search Scraper](https://apify.com/memo23/tiktok-search-scraper)** — TikTok's ranked search results for any keyword
- **[Social Video Transcript Scraper](https://apify.com/memo23/tiktok-profile-videos-cheerio)** — captions and AI transcripts for TikTok and Instagram videos

Browse the full portfolio: [muhamed-didovic.github.io](https://muhamed-didovic.github.io/)

### 🤖 For AI Agents & LLM Apps

**Purpose:** Return all comments on public TikTok videos, optionally including threaded replies.

**Minimal tested input:**

```json
{ "videos": ["https://www.tiktok.com/@caralinerosee/video/7069503422751362346"], "maxCommentsPerVideo": 50 }
```

**Output:** array of flat objects, one per comment. Fields: `videoId`, `videoUrl`, `commentId`, `isReply`, `parentCommentId`, `text`, `likeCount`, `replyCount`, `createTime`, `language`, `isPinnedByAuthor`, `isLikedByAuthor`, `isHighPurchaseIntent`, `commenterUsername`, `commenterNickname`, `commenterId`, `commenterSecUid`, `commenterVerified`, `commenterProfileUrl`.

**Behavior & billing:** Pay-per-event — one charge per result. Rows are deduplicated by `commentId`. Private/deleted videos and unresolvable links yield one error item each instead of failing the run. `includeReplies: true` adds a request per comment that has replies. No login/cookies required.

### ⚠️ Disclaimer

This Actor accesses publicly available data on TikTok for legitimate research, market-intelligence, and business-analysis purposes. It does not log in, bypass authentication, or access private content. Use of this Actor must comply with TikTok's Terms of Service and all applicable laws, including data-protection regulations (GDPR, CCPA, etc.). The authors are not responsible for any misuse. Users must:

- Respect rate limits and avoid overloading TikTok's infrastructure
- Not use scraped data to violate user privacy or platform terms
- Process any personal data only with a lawful basis and in compliance with their jurisdiction
- Not republish scraped content in violation of copyright

We do not store scraped data; the Actor returns it directly to your Apify dataset for your authorized use. TikTok is a trademark of ByteDance Ltd.; this Actor is not affiliated with or endorsed by TikTok or ByteDance.

### SEO Keywords

tiktok comments scraper, scrape tiktok comments, tiktok comment export, tiktok comments to csv, tiktok comment replies scraper, tiktok thread scraper, export tiktok comments, tiktok comment analysis, tiktok sentiment analysis data, tiktok audience research, tiktok comment api, tiktok comments no login, tiktok commenter list, tiktok engagement analysis, tiktok social listening, tiktok brand monitoring, tiktok comment language filter, tiktok video comments download, tiktok market research tool, tiktok ugc mining, social media comment scraper, apify tiktok scraper

# Actor input Schema

## `videos` (type: `array`):

Videos whose comments you want. Accepts full video URLs (https://www.tiktok.com/@user/video/7069503422751362346), share links (https://vm.tiktok.com/ZMxxxxxx/), or bare numeric video IDs — one per line, mixed formats are fine. Videos with comments turned off return an error item. Example: \["https://www.tiktok.com/@tiktok/video/7069503422751362346"]. Required, no default.

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

Maximum number of top-level comments to collect per video. Popular videos can have tens of thousands, so set this to cap cost. Leave empty to walk the whole comment list. Example: 500. Default: unlimited.

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

Also collect the replies under each comment, as extra rows tagged isReply: true with parentCommentId pointing at the comment they answer. Only comments that actually have replies are fetched, but this still adds roughly one request per such comment, so it makes runs slower and more expensive. Default: false.

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

Only used when "Include replies to comments" is on: caps how many replies to collect under a single comment. Example: 20. Default: 50.

## Actor input object example

```json
{
  "videos": [
    "https://www.tiktok.com/@caralinerosee/video/7069503422751362346",
    "7069503422751362346"
  ],
  "includeReplies": false,
  "maxRepliesPerComment": 50
}
```

# 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 = {
    "videos": [
        "https://www.tiktok.com/@caralinerosee/video/7069503422751362346"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("memo23/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 = { "videos": ["https://www.tiktok.com/@caralinerosee/video/7069503422751362346"] }

# Run the Actor and wait for it to finish
run = client.actor("memo23/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 '{
  "videos": [
    "https://www.tiktok.com/@caralinerosee/video/7069503422751362346"
  ]
}' |
apify call memo23/tiktok-comments-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,memo23/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/6S5DKT3CFTadPYkFu/builds/uoSIQ6eQk43TeWRJD/openapi.json
