# Scrape TikTok Video Comments by Video ID - Cookieless (`patient_discovery/tiktok-api-post-comments`) Actor

Extract TikTok comments without login using only the video ID. Retrieve comment text, likes, replies, timestamps, and commenter profile data in JSON or CSV. Ideal for sentiment analysis, audience research, and social listening on TikTok videos.

- **URL**: https://apify.com/patient_discovery/tiktok-api-post-comments.md
- **Developed by:** [Surge Street](https://apify.com/patient_discovery) (community)
- **Categories:** Social media, Videos
- **Security:** Limited permissions
- **Stats:** 23 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 results

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 - No Login Required**

## **What does this scraper do?**

This actor extracts comments from any public TikTok video using the video ID.

Provide a TikTok video ID and the scraper will collect structured comment data including engagement metrics, timestamps, reply counts, and commenter profile information.

The scraper works **without login or cookies**, allowing teams to collect large-scale comment datasets without managing accounts or authentication.

This cookieless architecture makes it safe and reliable for automated TikTok data extraction.

***

## **Why scrape TikTok comments?**

TikTok comments provide valuable audience insight and direct feedback about videos, creators, and brands.

Businesses use comment data for:

- Sentiment analysis on viral content
- Audience research and feedback collection
- Influencer campaign evaluation
- Social listening and brand monitoring
- Discovering frequently asked questions from audiences
- Identifying top commenters and engaged followers
- Competitive intelligence on viral content

Structured comment data allows teams to quickly analyze audience reactions and engagement patterns across TikTok content.

***

## **How much will scraping cost?**

The pricing for this actor is **$2.50 per 1,000 results**. Refer to the pricing page.

Because the scraper does not require authentication, it provides **stable and scalable extraction without API limits or account restrictions**.

***

## **How to use the scraper**

Follow these simple steps:

**Step 1: Enter the TikTok video ID**

Provide the TikTok video ID in the `videoId` field.

Example video URL:

```
https://www.tiktok.com/@username/video/7306132438047116586
```

The video ID is:

```
7306132438047116586
```

**Step 2: Start the scraper**

Click Start to run the actor. The scraper will automatically retrieve available comments.

**Step 3: Export the results**

Download results in JSON, CSV, or Excel format.

These structured datasets can be integrated into analytics tools, sentiment analysis pipelines, or business intelligence dashboards.

***

### Input parameters

#### Input example

```json
{
  "videoId": "7306132438047116586"
}
```

| Field | Type | Description |
|------|------|-------------|
| videoId | String | TikTok video ID found in the video URL |

***

### What data does this scraper extract?

**Available Formats:** JSON, CSV, Excel

#### Extracted Fields

- `cid` - Unique comment identifier
- `text` - Comment text content
- `create_time` - Timestamp of comment creation
- `digg_count` - Number of likes on the comment
- `reply_comment_total` - Number of replies to the comment
- `comment_language` - Detected language code
- `author_pin` - Whether the comment is pinned by the creator
- `aweme_id` - Parent video ID
- `sort_tags` - Comment ranking metadata

#### Comment Author Data

- `user.nickname` - Commenter's display name
- `user.unique_id` - Commenter's TikTok username
- `user.sec_uid` - Secure user identifier
- `user.uid` - Internal user ID
- `user.avatar_thumb.url_list` - Profile picture URLs

This structured dataset enables sentiment analysis, audience research, and engagement tracking.

***

### Sample Output

```json
{
  "cid": "7306162850404975402",
  "text": "This is exactly what I needed to hear today!",
  "create_time": 1701098641,
  "digg_count": 41288,
  "reply_comment_total": 72,
  "comment_language": "en",
  "author_pin": false,
  "aweme_id": "7306132438047116586",
  "user": {
    "nickname": "Sarah Martinez",
    "unique_id": "sarahm_official",
    "sec_uid": "MS4wLjABAAAAF9Dxc3l2aIY6iyooRPiyCij_GHhCE7CwVuWZVRqENV0J",
    "uid": "6870606316903056390",
    "avatar_thumb": {
      "url_list": [
        "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/avatar123.jpeg"
      ]
    }
  },
  "sort_tags": "{\"top_list\":1}"
}
```

***

### Key Features

- 🔒 **Cookieless / No Login Required** - Scrape TikTok comments without authentication or cookies
- 📈 **Scalable Architecture** - Extract thousands of comments from multiple videos efficiently
- ✅ **Rich Comment Data** - Capture text, likes, replies, timestamps, and commenter profile details
- ⚡ **Fast & Reliable** - Optimized scraping engine with retry logic for stable extraction
- 📊 **Export-Ready Formats** - Download results in JSON, CSV, or Excel for analytics and reporting

***

### FAQs

**Does this scraper require a TikTok account?**\
No. It works completely without login credentials or cookies.

**Can it scrape comments from private videos?**\
No. Only comments from publicly accessible TikTok videos can be extracted.

**Is this useful for sentiment analysis?**\
Yes. The structured comment text and engagement metrics are ideal for building sentiment analysis pipelines.

**Can I integrate this data with analytics tools?**\
Yes. The scraper exports structured datasets compatible with BI tools, data warehouses, and CRM systems.

***

**Other social media scrapers you may find useful**

Instagram Scrapers\
Facebook Scrapers\
Twitter Scrapers\
TikTok Scrapers

These tools help businesses extract structured data across multiple social media platforms for lead generation, audience intelligence, and marketing analytics.

# Actor input Schema

## `videoId` (type: `string`):

TikTok video ID

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

Maximum number of items to fetch per page

## `maxPages` (type: `integer`):

Maximum number of pages to fetch (pagination handled automatically)

## Actor input object example

```json
{
  "videoId": "7306132438047116586",
  "maxItems": 50,
  "maxPages": 1
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("patient_discovery/tiktok-api-post-comments").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("patient_discovery/tiktok-api-post-comments").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 '{}' |
apify call patient_discovery/tiktok-api-post-comments --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,patient_discovery/tiktok-api-post-comments"
        }
    }
}
```

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/TIKK14Co30ZVgeqSw/builds/vKYb5PCIjqprT9wUK/openapi.json
