# TikTok Comments Scraper (`scrape-lads/tiktok-comments-scraper`) Actor

Extract public TikTok comments, authors, likes, replies, pinned status, and creator-like signals.

- **URL**: https://apify.com/scrape-lads/tiktok-comments-scraper.md
- **Developed by:** [Scrape Lads](https://apify.com/scrape-lads) (community)
- **Categories:** Social media
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 comment results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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

### What does TikTok Comments Scraper do?

**TikTok Comments Scraper pulls the public comment section of any TikTok video into rows you can read, sort, and analyze.** Extract public TikTok comments, authors, likes, replies, pinned status, and creator-like signals. Give it your inputs, press **Start**, and the Output tab fills with one clean row per record, ready to download as JSON, CSV, or Excel.

It works entirely with public [TikTok](https://www.tiktok.com/) data and never asks for TikTok login credentials. Because it runs on Apify you also get a REST API, scheduled runs, webhooks, integrations with tools such as Google Sheets, Slack, Make, and Zapier, proxy rotation, and a full log of every execution.

This Actor is deliberately narrow. Its input form asks only for the values this one job needs and its Output view shows only the columns this job produces, so nobody has to pick a technical mode to get a useful result.

### Why use TikTok Comments Scraper?

#### Hear customers in their own words

Comment sections are unfiltered voice-of-customer data. Export them and the objections, questions, and phrases people actually use become searchable text.

#### Find the questions worth answering

Sort by like count to surface the comments an audience upvoted, which is a ready-made list of content ideas and FAQ entries.

#### Measure reaction to a campaign

Run the Actor across a campaign hashtag set and feed the text into your own sentiment or topic model. Timestamps let you track how reaction shifts after launch.

#### Spot the creator signal

The `likedByAuthor` and `pinned` flags reveal which comments the creator endorsed, which is often where a community conversation is really happening.

### How to use TikTok Comments Scraper

1. Click **Try for free** or open the Actor in Apify Console.
2. On the **Input** tab, fill in **TikTok video URLs**.
3. Set a result limit. A small number is the right choice for a first run.
4. Press **Start** and watch the log.
5. Open the **Output** tab to browse the results, or use **Export** for JSON, CSV, or Excel.
6. Happy with the setup? Press **Save as task** so you can repeat or schedule it in one click.

#### Ready-made tasks

These input presets ship with the Actor and are ready to run or schedule as they are.

| Task | Saved as |
| --- | --- |
| **Collect voice-of-customer comments** | `voice-of-customer` |
| **Read one video in depth** | `single-video-deep-read` |

### Input

| Field | Label | Type | Required | Default | Notes |
| --- | --- | --- | --- | --- | --- |
| `videoUrls` | TikTok video URLs | array | Yes |  | Paste one or more full public TikTok video URLs. |
| `maxResults` | Maximum results | integer | No | `100` | Stop after this many output records. Start small on your first run. |
| `maxProviderSpendUsd` | Maximum provider spend | number | No | `5` | Hard USD ceiling for third-party data collection. Apify reserves at least $2 of headroom to start a provider run, so $2 is the minimum. Real charges are normally a fraction of a cent. |

Example input:

```json
{
    "videoUrls": [
        "https://www.tiktok.com/@tiktok/video/7106594312292453675",
        "https://www.tiktok.com/@tiktok/video/7668726289376808222"
    ],
    "maxResults": 400,
    "maxProviderSpendUsd": 5
}
```

Limits apply to the complete run, not separately to each input, so a limit of 100 spread over four inputs returns roughly 25 records each.

### Output

The Actor returns normalized comment and reply records. Every record below came from a real verification run.

```json
{
    "resultType": "comment",
    "sourceInput": "https://www.tiktok.com/@tiktok/video/7106594312292453675",
    "commentId": "7112196704363414273",
    "videoUrl": "https://www.tiktok.com/@tiktok/video/7106594312292453675",
    "authorUsername": "t3ss51",
    "text": "j thought it was 16 because of the emoji😳",
    "likes": 190,
    "replyCount": 1,
    "isReply": false,
    "pinned": false,
    "likedByAuthor": false,
    "postedAt": "2022-06-22T22:36:33.000Z",
    "scrapedAt": "2026-08-02T12:47:02.843Z"
}
```

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel, pull it from the Apify API, or push it onward through an integration. Each run also stores a `COST_ESTIMATE` record and an `INTELLIGENCE_RUN_SUMMARY` record in its key-value store.

### Output fields

| Field | Type | Meaning |
| --- | --- | --- |
| `commentId` | string | TikTok comment ID |
| `authorUsername` | string | Commenter handle |
| `text` | string | Comment body |
| `likes` | number | Likes on the comment |
| `replyCount` | number | Replies under the comment |
| `isReply` | boolean | True when the row is a reply rather than a top-level comment |
| `pinned` | boolean | Pinned by the creator |
| `likedByAuthor` | boolean | Liked by the video creator |
| `postedAt` | date | Comment time in UTC |
| `videoUrl` | string | Video the comment belongs to |
| `sourceInput` | string | URL you submitted |
| `scrapedAt` | date | Collection time in UTC |

Missing values are returned as `null` or as an empty string rather than being dropped, so exported columns stay aligned across every row.

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

This Actor is priced pay per event, so you are charged for results rather than for runtime.

| Event | Price | When it is charged |
| --- | ---: | --- |
| Actor start | $0.005 | Charged once when a run begins. |
| Comment result | $0.001 | One public comment or reply. A third-party data provider is billed separately for this mode. |

Apify Store plan discounts apply automatically to the result event, so larger plans pay less per record:

| Your Apify plan | Free | Starter | Scale | Business |
| --- | ---: | ---: | ---: | ---: |
| Price per 1,000 results | $1.00 | $0.90 | $0.85 | $0.80 |

You also pay your own Apify platform usage for the run, the same as any Actor you run yourself. The Apify free plan includes monthly credit that covers small runs.

This job uses a maintained provider Actor for signed TikTok data access. The **Maximum provider spend** input is a hard ceiling that is passed to every provider call, and the run stops collecting rather than exceeding it.

Before collection starts the Actor writes a `COST_ESTIMATE` record with the maximum price of that specific run, so the ceiling is visible in the run storage before any significant work happens. The Apify free plan includes monthly platform credit that covers small runs, and the cheapest way to control spend is a modest result limit rather than a large run you abort.

### Tips and advanced options

- The result limit is divided across the submitted URLs, so ten videos with a limit of 500 gives roughly fifty comments each.
- Comment sections skew to the earliest and most liked replies. Take that into account before reading the sample as representative.
- Export to CSV and pivot on `likes` to get the top community reactions in seconds.
- Comments are user-generated personal content. Keep only what you need and follow the privacy rules that apply to you.
- Start with one input and a small limit to confirm the shape of the output before scaling up.
- Filter on `sourceInput` when a single run covers several handles, keywords, or URLs.
- Treat private, removed, or region-blocked content as unavailable rather than as a zero metric.

### Related TikTok Actors

| Actor | What it does |
| --- | --- |
| [TikTok Creator Comparison](https://apify.com/scrape-lads/tiktok-creator-comparison) | Compare TikTok creators with rankings, engagement rates, median views, viral outliers, content patterns, and change tracking. |
| [TikTok Keyword Video Search](https://apify.com/scrape-lads/tiktok-keyword-video-search) | Find public TikTok videos matching keywords and export their creators, captions, and engagement metrics. |
| [TikTok Profile Videos Scraper](https://apify.com/scrape-lads/tiktok-profile-videos) | Collect public videos from one or more TikTok profiles with normalized post and engagement data. |
| [TikTok Profile Scraper](https://apify.com/scrape-lads/tiktok-profile-scraper) | Look up public TikTok profiles and export follower counts, bios, verification, and account statistics. |
| [TikTok Video Metrics Scraper](https://apify.com/scrape-lads/tiktok-video-metrics) | Fetch metrics and metadata for specific public TikTok video URLs. |
| [TikTok Followers Scraper](https://apify.com/scrape-lads/tiktok-followers-scraper) | Collect normalized public follower profiles for one or more TikTok accounts. |

All of them share the same collection engine and the same field names, so their datasets join together cleanly.

### FAQ

#### Does it include replies as well as top-level comments?

Yes. Replies arrive as their own rows with `isReply` set to true and `replyCount` on the parent.

#### Can I scrape comments from several videos in one run?

Yes. Paste as many public video URLs as you need and the limit is shared across them.

#### Why did a video return fewer comments than the limit?

The video simply has fewer public comments, or some were removed. The Actor never invents rows to reach a limit.

#### Is scraping TikTok legal?

Collecting public data is generally legal in most jurisdictions, and this Actor only reads pages any logged-out visitor can see. You remain responsible for how you use what you collect: follow TikTok's terms, honour applicable privacy law such as GDPR and CCPA when records describe identifiable people, and do not republish personal data you have no basis to process.

#### Something looks wrong. What now?

Public pages and upstream schemas change. If a field stops populating or a run fails, open the **Issues** tab on this Actor with the run ID and the input you used. Feature requests and custom export formats are welcome through the same channel.

# Actor input Schema

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

Paste one or more full public TikTok video URLs.

## `maxResults` (type: `integer`):

Stop after this many output records. Start small on your first run.

## `maxProviderSpendUsd` (type: `number`):

Hard USD ceiling for third-party data collection. Apify reserves at least $2 of headroom to start a provider run, so $2 is the minimum. Real charges are normally a fraction of a cent.

## Actor input object example

```json
{
  "videoUrls": [
    "https://www.tiktok.com/@tiktok/video/7106594312292453675"
  ],
  "maxResults": 100,
  "maxProviderSpendUsd": 5
}
```

# Actor output Schema

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

No description

## `costEstimate` (type: `string`):

No description

## `runSummary` (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/@tiktok/video/7106594312292453675"
    ]
};

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

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

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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/@tiktok/video/7106594312292453675"
  ]
}' |
apify call scrape-lads/tiktok-comments-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=scrape-lads/tiktok-comments-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/Cx3w0VIomMLpLv7UO/builds/Tzy1dANpZSlN3Gw9A/openapi.json
