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

Get TikTok comments and replies as flat rows: text, exact like count, reply count, date, language, pinned and liked-by-creator flags, thread links and commenter username. Video and photo post URLs, short links or ids; pages past the ~400 fold. No login.

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

## Pricing

from $0.60 / 1,000 comment or replies

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 | Comments, Replies & Likes

![TikTok Comments Scraper | Comments, Replies & Likes](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/tiktok-com-comments-and-replies-banner-2149d809.png)

Get the comments and replies of TikTok video and photo posts as flat rows: comment text, exact like count, reply count, publish date, detected language, the "pinned" and "liked by creator" flags, and the commenter's username and profile link. Every reply links to its thread (parent comment id, and the reply it answers), so whole discussions can be rebuilt. Give post URLs, short links or bare post ids; no TikTok account, cookies or API key needed.

### What does TikTok Comments Scraper do?

You give it TikTok post links (`/@user/video/<id>`, `/@user/photo/<id>`, `m.tiktok.com/v/<id>.html`, `vm.tiktok.com`, `vt.tiktok.com` or `tiktok.com/t/` short links) or numeric post ids. It returns one row per top-level comment and, if you want, one row per reply, each reply placed right after its parent comment.

Logged-out TikTok stops showing comments at roughly 400 per post (the "fold"). The actor keeps paging past it, so large posts give thousands of comments (2,709 unique comments were collected from one 113k-comment post in testing). Replies fold too, and the actor pages past that as well.

It is built for brand and social-media managers reading feedback under a campaign video, marketers and researchers doing sentiment or language analysis, agencies monitoring creators, and AI agents that need the comments of a TikTok as a tool call.

### How to scrape TikTok comments

![How TikTok Comments Scraper works: Reads the post id from each URL, short link or bare id; Pages TikTok's web comment API, 50 comments a page, past the fold; Fetches the replies of each comment that h](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/tiktok-com-comments-and-replies-how-98ede81b.png)

1. Open the actor in Apify Console and click **Try for free**.
2. Paste one or more post links into **TikTok post URLs**, or numeric ids into **Post IDs** (or both).
3. Set **Max top-level comments per post** (default 100).
4. Keep **Include replies** on to get the replies too, and set **Max replies per comment** (default 10).
5. Optionally set **Max rows in total** to cap the whole run.
6. Click **Start**, then download the results as JSON, CSV, Excel or HTML, or read them through the API.

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

Price per event by Apify plan:

| Event | Free | Bronze | Silver | Gold and above |
|---|---|---|---|---|
| Comment or reply | $0.70 per 1,000 | $0.665 per 1,000 | $0.63 per 1,000 | $0.595 per 1,000 |
| Actor start | $0.00005 | $0.00005 | $0.00005 | $0.00005 |

A test run with the API example input below returned 125 rows in 14 s.

You pay per row: one paid event is one comment or one reply saved to the dataset. Posts with comments turned off, deleted or non-existent posts, and links that are not posts give no rows and cost nothing beyond the small start fee.

On the Free plan a row costs $0.0007 ($0.70 per 1,000 rows), plus $0.00005 for the run start.

| Scenario | Rows (events) | Cost on the Free plan |
|---|---|---|
| Top 100 comments of one video, no replies | 100 | $0.07 |
| One video, 100 comments with up to 10 replies each | up to 1,100 | up to $0.77 |
| 50 top comments from each of 20 posts | 1,000 | $0.70 |
| Deep crawl of a viral post, 10,000 comments | 10,000 | $7.00 |

Costs are rounded to the cent and include the start fee. Higher Apify plans pay less per row.

### Input

![TikTok Comments Scraper input example: TikTok post URLs, Max top-level comments per post, Include replies, Max replies per comment](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/tiktok-com-comments-and-replies-input-e90ed36e.png)

| Field | What it does |
|---|---|
| `startUrls` | TikTok post links, one per line: `www.tiktok.com/@user/video/<id>`, `/@user/photo/<id>`, `m.tiktok.com/v/<id>.html`, or short links `vm.tiktok.com`, `vt.tiktok.com`, `tiktok.com/t/`. Profile, hashtag and search links are skipped with a warning. |
| `postIds` | Numeric post ids (15–21 digits, the number after `/video/` or `/photo/`). |
| `maxCommentsPerPost` | Top-level comments per post, 1–100,000. Default 100. |
| `includeReplies` | Also collect replies of comments that have any. Default on. |
| `maxRepliesPerComment` | Replies per top-level comment, 1–10,000. Default 10. Used only with `includeReplies`. |
| `maxItems` | Optional cap on all rows (comments plus replies) in the run. |
| `proxyConfiguration` | Apify datacenter proxy by default; a rejected request is retried through a residential US proxy automatically. |

Give at least one post in `startUrls` or `postIds`; the same post given twice is processed once.

```json
{
  "startUrls": [{ "url": "https://www.tiktok.com/@tiktok/video/7106594312292453675" }],
  "postIds": ["7453477561163631918"],
  "maxCommentsPerPost": 200,
  "includeReplies": true,
  "maxRepliesPerComment": 20
}
```

### What data can you extract from TikTok comments?

![TikTok Comments Scraper output example: Text, Username, Likes, Replies, Reply, Parent comment](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/tiktok-com-comments-and-replies-output-2f8adec6.png)

| Field | Description |
|---|---|
| `text` | Comment text (empty string for sticker or image-only comments) |
| `likeCount` | Exact number of likes |
| `replyCount` | Replies shown by TikTok (top-level comments; null for replies) |
| `publishedAt` | When the comment was posted (ISO 8601, UTC) |
| `language` | Language code detected by TikTok, e.g. `en`; null when undetermined |
| `isPinned`, `likedByAuthor` | Pinned by the post author / liked by the creator |
| `isReply` | `true` for a reply, `false` for a top-level comment |
| `parentCommentId` | Replies: id of the top-level comment of the thread |
| `replyToCommentId`, `replyToUsername` | Replies to a reply: the reply being answered and its author's username |
| `imageUrls` | Images or stickers attached to the comment (empty array when none) |
| `mentions` | Usernames mentioned with @ in the text, without the @ (empty array when none) |
| `author`, `authorUsername`, `authorId`, `authorSecUid`, `authorUrl`, `authorAvatarUrl`, `authorVerification` | Commenter's display name, username, numeric id, secUid, profile link, avatar image and verification text |
| `id`, `url` | Comment id and comment link (post URL with `?comment_id=`) |
| `postId`, `postUrl`, `postDescription`, `inputUrl` | The post's id, normalised URL and caption, and the input entry the row came from |
| `scrapedAt` | When the row was extracted |

A real reply row (to another reply) from a run on the prefilled post:

```json
{
  "url": "https://www.tiktok.com/@tiktok/video/7106594312292453675?comment_id=7106781823955125035",
  "id": "7106781823955125035",
  "postId": "7106594312292453675",
  "postUrl": "https://www.tiktok.com/@tiktok/video/7106594312292453675",
  "inputUrl": "https://www.tiktok.com/@tiktok/video/7106594312292453675",
  "postDescription": "how many frogs did you find? 🐸 check out tiktok’s #Minecraft community today! @Gorillo",
  "isReply": true,
  "parentCommentId": "7106606555949433646",
  "replyToCommentId": "7106694601016640298",
  "replyToUsername": "waylonkatty",
  "text": "16 where?",
  "likeCount": 0,
  "replyCount": null,
  "publishedAt": "2022-06-08T08:23:35.000Z",
  "language": "en",
  "isPinned": false,
  "likedByAuthor": false,
  "imageUrls": [],
  "mentions": [],
  "author": "Riku.bku",
  "authorUsername": "yelglazer46",
  "authorId": "6875912783813673989",
  "authorSecUid": "MS4wLjABAAAAL2Ft3eTjZZRcXbMZ3bT305h0vd-JKtJZ97l-7A95iZk6M9f8ZD-zJHYtxqr0-ClZ",
  "authorUrl": "https://www.tiktok.com/@yelglazer46",
  "authorAvatarUrl": "https://p19-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/b507caaaa707d7a35081fae0b88b6e21~tplv-tiktokx-cropcenter:100:100.jpg?dr=9640&refresh_token=ce882a8e&x-expires=1794614400&x-signature=hWqXps6zydz91yFVz6zs1tovzk0%3D&t=4d5b0474&ps=13740610&shp=30310797&shcp=ff37627b&idc=useast5",
  "authorVerification": null,
  "scrapedAt": "2026-11-13T00:29:56.456Z"
}
```

### Use cases

- **Brand feedback on a campaign video**: collect every visible comment with its replies, likes, language and the "liked by creator" flag.
- **Top comments of many posts**: pass a list of post ids with 50 comments per post and no replies for a dashboard or an AI agent.
- **Deep crawl of a viral post**: one URL with a high comment limit for sentiment or topic research, paging past the fold.
- **Full discussion threads**: replies with `parentCommentId`, `replyToCommentId` and `replyToUsername` to rebuild who answered whom.
- **Cheap sample**: cap any run with `maxItems`, e.g. 100 rows in total.

### Limitations

- Only public posts and logged-out data. Posts with comments turned off, deleted, private or non-existent posts give 0 rows and a warning naming the post.
- TikTok hides some replies from logged-out viewers depending on the region, so a thread can return fewer replies than its `replyCount`. The run's final message says so.
- The number of comments returned can be lower than the count TikTok shows: deleted or filtered comments are not served, and a post ends when TikTok stops returning comments.
- There is no sort option: comments come in TikTok's own order.
- No profile, hashtag or search input: pass post links or ids (for example from a TikTok video scraper).
- Commenter follower counts, bio and country are not in the comment data.
- Fields that can be empty: `postDescription`, `parentCommentId`, `replyToCommentId`, `replyToUsername`, `replyCount`, `language`, `author`, `authorUsername`, `authorId`, `authorSecUid`, `authorUrl`, `authorAvatarUrl` and `authorVerification` can be `null`; `text` can be an empty string; `imageUrls` and `mentions` can be empty arrays.
- `authorAvatarUrl` is a signed TikTok link that expires; download the images soon if you need them.

### Tips and troubleshooting

- **0 rows?** Check the log: each skipped entry or post without comments has its own warning. Profile links (`/@user`) are not posts and are skipped.
- **Need more comments?** Raise `maxCommentsPerPost`; the actor pages past the logged-out fold until the limit or TikTok's natural end.
- **Faster, cheaper runs**: turn `includeReplies` off when you only need top-level comments; each thread with replies needs extra requests.
- **`maxItems` with several posts**: posts are fetched 3 at a time, so which posts fill the cap first is not fixed.
- **Proxy**: the default datacenter proxy works; running without a proxy or with a residential proxy also works.

### API, MCP and integrations

Run the actor from your code with the same JSON input as in Console. Your API token is in [Console → Settings → API & Integrations](https://console.apify.com/settings/integrations).

**Python** (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("genial_candlestand/tiktok-comments-scraper").call(run_input={
    "startUrls": [{"url": "https://www.tiktok.com/@tiktok/video/7106594312292453675"}],
    "maxCommentsPerPost": 100,
    "includeReplies": True,
    "maxRepliesPerComment": 10,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

**Node.js** (`npm install apify-client`):

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

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('genial_candlestand/tiktok-comments-scraper').call({
    "startUrls": [{"url": "https://www.tiktok.com/@tiktok/video/7106594312292453675"}],
    "maxCommentsPerPost": 100,
    "includeReplies": true,
    "maxRepliesPerComment": 10,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

**HTTP** — one request runs the actor and returns the results (runs up to 5 minutes; longer ones: [run asynchronously](https://docs.apify.com/api/v2/act-runs-post)):

```bash
curl -X POST "https://api.apify.com/v2/acts/genial_candlestand~tiktok-comments-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"startUrls":[{"url":"https://www.tiktok.com/@tiktok/video/7106594312292453675"}],"maxCommentsPerPost":100,"includeReplies":true,"maxRepliesPerComment":10}'
```

**AI agents (MCP).** Add the actor as a tool of the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp). Claude Code:

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=genial_candlestand/tiktok-comments-scraper"
```

Claude Desktop, Cursor or VS Code: `{"mcpServers": {"apify": {"url": "https://mcp.apify.com?tools=genial_candlestand/tiktok-comments-scraper"}}}`. Then ask, for example:

- "Get the 200 top comments with replies of https://www.tiktok.com/@tiktok/video/7106594312292453675"
- "Collect 50 top-level comments each from TikTok posts 7453477561163631918 and 7106594312292453675"
- "Which languages do commenters use under TikTok post 7306395531645963550? Check 1000 comments"

**Integrations.** Run it on a schedule with [Apify Schedules](https://docs.apify.com/platform/schedules) and send the results to Google Sheets, Slack, Zapier, Make, n8n or your webhook — see [Apify integrations](https://docs.apify.com/platform/integrations).

### FAQ

**Is it legal to scrape TikTok comments?**<br>
The actor reads only public comments that anyone can see on TikTok without logging in. Commenters' names and usernames are personal data in many jurisdictions, so you are responsible for how you store and use them (for example under GDPR or CCPA). If unsure, ask a lawyer.

**Do I need a TikTok account or API key?**<br>
No. The actor uses no login, cookies or API key.

**Does it work with photo posts and short links?**<br>
Yes. `/@user/photo/<id>` posts return the same fields as videos, and `vm.tiktok.com`, `vt.tiktok.com` and `tiktok.com/t/` short links are resolved to their post.

**Can I get more than about 400 comments from a post?**<br>
Yes. Logged-out TikTok stops at roughly 400 comments; the actor continues paging past that point. In testing it reached 2,709 unique comments on one post.

**How is it different from other TikTok comment actors?**<br>
It returns the comment language, a reply-to-reply link (`replyToCommentId`, `replyToUsername`), the post caption, the commenter's display name, secUid and verification text as flat camelCase rows, with no item cap on free plans. It costs $0.70 per 1,000 rows on the Free plan, against $1.25 per 1,000 for the most used TikTok comments actor.

**What happens if a post has comments turned off?**<br>
It gives 0 rows, a warning in the log and no charge; the other posts in the run continue.

### Also useful

- [TikTok Video Details Scraper](https://apify.com/genial_candlestand/tiktok-video-details-scraper) — get the views, likes, shares, saves and caption of the posts whose comments you collect
- [Instagram Profile Scraper](https://apify.com/genial_candlestand/instagram-profile-details-scraper) — check the same creators on Instagram: followers, bio and links
- [YouTube Comments Scraper](https://apify.com/genial_candlestand/youtube-comments-and-replies-scraper) — collect comments and replies of YouTube videos and Shorts for the same campaign
- [Reddit Comments Scraper](https://apify.com/genial_candlestand/reddit-comments-scraper) — add Reddit discussion threads about the same brand or topic
- [Bilibili Scraper](https://apify.com/genial_candlestand/bilibili-scraper) — get Bilibili videos and comments with replies for Chinese-language audiences

# Actor input Schema

## `startUrls` (type: `array`):

Video or photo post links, one per line: www.tiktok.com/@user/video/<id>, /@user/photo/<id>, m.tiktok.com/v/<id>.html, or short links (vm.tiktok.com, vt.tiktok.com, tiktok.com/t/). Profile, hashtag and search links are not posts and are skipped with a warning. Fill this field, Post IDs, or both.

## `postIds` (type: `array`):

Numeric TikTok post IDs (15–21 digits, the number after /video/ or /photo/), e.g. 7106594312292453675. Use instead of or together with TikTok post URLs.

## `maxCommentsPerPost` (type: `integer`):

How many top-level comments to collect from each post (1–100000). The actor keeps paging past TikTok's logged-out fold (about 400 comments). Replies are counted separately.

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

Also collect the replies of every top-level comment that has any. Each reply is its own row with isReply = true and parentCommentId. Off = top-level comments only (faster).

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

How many replies to collect under each top-level comment (1–10000). Used only when Include replies is on. TikTok hides some replies from logged-out viewers by region, so a thread can give fewer replies than its replyCount.

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

Optional cap on all rows (comments plus replies) across all posts. The run stops when it is reached. Empty = only the per-post limits apply.

## `proxyConfiguration` (type: `object`):

Apify datacenter proxy by default (works reliably). A request TikTok rejects is retried once through a residential US proxy automatically.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.tiktok.com/@tiktok/video/7106594312292453675"
    }
  ],
  "maxCommentsPerPost": 100,
  "includeReplies": true,
  "maxRepliesPerComment": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Dataset with one row per comment or reply

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

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

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

```

## MCP server setup

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