# TikTok Comments Scraper ✅ NO COOKIES (`atomus/tiktok-comments-scraper`) Actor

Scrape every comment and threaded reply from any TikTok video by URL. Get likes, language, creator-liked and purchase-intent signals, plus @mentions and #hashtags. No cookies, no login, no browser. Pay per comment; failed lookups are free.

- **URL**: https://apify.com/atomus/tiktok-comments-scraper.md
- **Developed by:** [Atomus APIs](https://apify.com/atomus) (community)
- **Categories:** Social media, Marketing, Lead generation
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $0.50 / 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/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

Scrape **every comment and threaded reply** from any TikTok video. Paste video URLs, get clean structured data back. No cookies, no login, no browser.

### What you get

For every comment (and every reply, if you enable the add-on):

| Field | Description |
|-------|-------------|
| `text` | The comment text |
| `likeCount` | Number of likes on the comment |
| `replyCount` | Number of replies under this comment |
| `language` | Detected language of the comment (e.g. `en`, `es`, `pt`) |
| `likedByAuthor` | **True if the video creator liked this comment** |
| `highPurchaseIntent` | **True if the comment signals buying intent** (great for social commerce) |
| `pinned` | True if the comment is pinned by the creator |
| `labels` | Badges such as "Liked by creator" or "Pinned" |
| `mentions` / `hashtags` | @mentions and #hashtags parsed out of the text |
| `images` | Image attachments on the comment (best URL each) |
| `commentUrl` | Deep-link permalink to the comment |
| `createdAt` | ISO 8601 timestamp |
| `author` | id, secUid, uniqueId, nickname, signature, avatar, region |
| `replyToId` | For replies: the parent comment id |
| `replyToUsername` / `replyToUserId` / `replyToReplyId` | For replies: the specific user/comment being replied to |

`likedByAuthor` and `highPurchaseIntent` are signals most TikTok comment scrapers do not expose.

### Input

```json
{
  "postUrls": [
    "https://www.tiktok.com/@mylifestyle798/video/7664432017722952980",
    "7664432017722952980",
    "https://vm.tiktok.com/ZMabc123/"
  ],
  "maxCommentsPerPost": 100,
  "includeReplies": true,
  "maxRepliesPerComment": 10
}
```

- **postUrls** — TikTok video URLs, short share links (`vm.tiktok.com/...`), or bare numeric video IDs.
- **maxCommentsPerPost** — how many top-level comments to return per video (default 100).
- **includeReplies** — optional paid add-on: also fetch threaded replies.
- **maxRepliesPerComment** — cap replies per comment when the add-on is on (default 10).

### Pricing

Pay **per comment**:

- **Free plan:** $1.20 per 1,000 comments
- **Gold and higher Apify plans:** $0.50 per 1,000 comments

Replies (when enabled) are billed as comments. **Failed lookups are free** — a video we cannot read costs you nothing.

### Run via API

```bash
curl -X POST "https://api.apify.com/v2/acts/YOUR~tiktok-comments-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "postUrls": ["https://www.tiktok.com/@user/video/123"], "maxCommentsPerPost": 100 }'
```

# Actor input Schema

## `postUrls` (type: `array`):

One or more TikTok video URLs (https://www.tiktok.com/@user/video/123...), short share links (vm.tiktok.com/...), or bare numeric video IDs.

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

How many top-level comments to return per video.

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

Also fetch the threaded replies under each comment that has them. Paid add-on: replies are billed as comments (same price per item).

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

Only used when "Also fetch replies" is on.

## Actor input object example

```json
{
  "postUrls": [
    "https://www.tiktok.com/@mylifestyle798/video/7664432017722952980"
  ],
  "maxCommentsPerPost": 100,
  "includeReplies": false,
  "maxRepliesPerComment": 10
}
```

# 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/@mylifestyle798/video/7664432017722952980"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("atomus/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/@mylifestyle798/video/7664432017722952980"] }

# Run the Actor and wait for it to finish
run = client.actor("atomus/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/@mylifestyle798/video/7664432017722952980"
  ]
}' |
apify call atomus/tiktok-comments-scraper --silent --output-dataset

```

## MCP server setup

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