# Tiktok Comment Scraper (`bhansalisoft/tiktok-comment-scraper`) Actor

Tiktok Comment Scraper advanced tool for scrap all comments information from tiktok post

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

## Pricing

from $10.00 / 1,000 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

### TikTok Comments Scraper

Extract **TikTok comments from any public TikTok post URL**, including comment text, likes, replies, commenter profile information, comment IDs, post metadata, and timestamps. This Apify actor is perfect for **social media research, influencer analysis, sentiment analysis, engagement tracking, brand monitoring, lead generation, and AI training datasets**.

### Why use this TikTok comments scraper?

This actor helps marketers, researchers, developers, agencies, and businesses automatically collect TikTok comments without manual copying.

#### Extract valuable TikTok comment data

- Comment text
- Comment ID
- Comment URL
- Number of likes
- Number of replies
- Comment creation date
- TikTok post URL
- TikTok post ID
- Post creation date
- Commenter username
- Commenter profile URL
- Commenter ID
- Comment replies
- Collection timestamp
- Original input parameters

### Input

Provide a TikTok post (video) URL.

Example input:

```json
{
  "url": "https://www.tiktok.com/@sillybingfilms/video/7568674916636036365",
  "collect_replies": false,
  "num_of_comments": 1
}
```

#### Input fields

| Field           | Description                          |
| --------------- | ------------------------------------ |
| url             | TikTok video/post URL                |
| collect\_replies | Whether to collect comment replies   |
| num\_of\_comments | Maximum number of comments to scrape |

### Output

The actor returns a structured JSON array.

Example response:

```json
[
  {
    "url": "https://www.tiktok.com/@sillybingfilms/video/7568674916636036365",
    "post_url": "https://www.tiktok.com/@sillybingfilms/video/7568674916636036365",
    "post_id": "7568674916636036365",
    "post_date_created": "2025-11-04T01:24:39.000Z",
    "date_created": "2025-11-23T20:23:25.000Z",
    "comment_text": "But according Adobe Terms and Conditions it will not be your work anymore... 🥀💔",
    "num_likes": 49,
    "num_replies": 1,
    "commenter_user_name": "Drifter",
    "commenter_id": "6711966563379430406",
    "commenter_url": "https://www.tiktok.com/@drifteratsea",
    "comment_id": "7576019021750649630",
    "comment_url": "https://www.tiktok.com/@sillybingfilms/video/7568674916636036365?comment_id=7576019021750649630",
    "replies": [],
    "timestamp": "2026-08-10T11:48:42.661Z",
    "input": {
      "url": "https://www.tiktok.com/@sillybingfilms/video/7568674916636036365",
      "collect_replies": false,
      "num_of_comments": 1
    }
  }
]
```

### Output fields

| Field               | Description                   |
| ------------------- | ----------------------------- |
| url                 | TikTok video URL              |
| post\_url            | Original TikTok post URL      |
| post\_id             | TikTok video ID               |
| post\_date\_created   | Video creation date           |
| date\_created        | Comment creation date         |
| comment\_text        | Comment content               |
| num\_likes           | Comment likes count           |
| num\_replies         | Number of replies             |
| commenter\_user\_name | TikTok username               |
| commenter\_id        | TikTok user ID                |
| commenter\_url       | Commenter profile URL         |
| comment\_id          | Unique comment ID             |
| comment\_url         | Direct comment URL            |
| replies             | Nested replies (if collected) |
| timestamp           | Scraping timestamp            |
| input               | Original input parameters     |

### Common use cases

#### Sentiment analysis

Analyze customer opinions, audience reactions, and community feedback from TikTok comments.

#### Influencer research

Measure audience engagement and comment quality on influencer videos.

#### Brand monitoring

Track mentions, discussions, complaints, and feedback related to brands and products.

#### Engagement analysis

Collect likes, replies, and comment activity for viral TikTok posts.

#### AI and NLP datasets

Build datasets for language models, comment classification, moderation, and social media intelligence.

#### Competitor analysis

Compare engagement and audience responses across competing TikTok accounts.

### Collect replies

Enable reply collection to extract threaded TikTok conversations.

Example input:

```json
{
  "url": "https://www.tiktok.com/@username/video/1234567890",
  "collect_replies": true,
  "num_of_comments": 100
}
```

### Bulk TikTok comment scraping

The actor supports scraping comments from multiple TikTok posts.

Example input:

```json
[
  {
    "url": "https://www.tiktok.com/@user1/video/1111111111"
  },
  {
    "url": "https://www.tiktok.com/@user2/video/2222222222"
  },
  {
    "url": "https://www.tiktok.com/@user3/video/3333333333"
  }
]
```

### API integration

You can run this actor using the **Apify API** and retrieve comment data programmatically.

Typical workflow:

1. Submit TikTok video URLs
2. Run the actor
3. Wait for completion
4. Download results as **JSON, CSV, Excel, or via the Apify Dataset API**

### Perfect for

- Social media marketers
- Influencer agencies
- Ecommerce brands
- Researchers
- Data analysts
- AI developers
- NLP engineers
- Marketing agencies
- Brand monitoring companies
- Social listening platforms

### Keywords

TikTok Comments Scraper, TikTok Comment Extractor, TikTok Comment API, TikTok Engagement Scraper, TikTok Data Scraper, TikTok Comment Dataset, TikTok Social Media Scraper, TikTok Video Comments, TikTok Analytics, TikTok Audience Analysis, TikTok Sentiment Analysis, TikTok Influencer Analytics, TikTok Brand Monitoring, TikTok Reply Scraper, TikTok Comment Export

This actor provides a **fast, reliable, and scalable way to extract TikTok comments from public videos**, delivering structured, analysis-ready JSON data for research, marketing, AI, and business intelligence.

Thanks

# Actor input Schema

## `TiktokPostUrl` (type: `string`):

Paste Tiktok Post URL which comment you want to scrap

## `num_of_comments` (type: `integer`):

Maximum number of Comments per URL .

## `collect_replies` (type: `boolean`):

Collect Replies ?

## Actor input object example

```json
{
  "TiktokPostUrl": "https://www.tiktok.com/@sillybingfilms/video/7568674916636036365",
  "num_of_comments": 1000
}
```

# 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 = {
    "TiktokPostUrl": "https://www.tiktok.com/@sillybingfilms/video/7568674916636036365"
};

// Run the Actor and wait for it to finish
const run = await client.actor("bhansalisoft/tiktok-comment-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 = { "TiktokPostUrl": "https://www.tiktok.com/@sillybingfilms/video/7568674916636036365" }

# Run the Actor and wait for it to finish
run = client.actor("bhansalisoft/tiktok-comment-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 '{
  "TiktokPostUrl": "https://www.tiktok.com/@sillybingfilms/video/7568674916636036365"
}' |
apify call bhansalisoft/tiktok-comment-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bhansalisoft/tiktok-comment-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/BqeZYc8Vp4D79MPBZ/builds/0bZAdmnt1aYbD7Asz/openapi.json
