# TikTok Comments Scraper - Comments, Likes & Video Stats (`delicious_zebu/tiktok-video-comment-scraper`) Actor

Scrape TikTok videos by URL: views, likes, comments, shares, bookmarks, hashtags, music and author details, plus the comments on each video with text, likes, reply counts, dates and whether the author liked them.

- **URL**: https://apify.com/delicious_zebu/tiktok-video-comment-scraper.md
- **Developed by:** [Zebu Data](https://apify.com/delicious_zebu) (community)
- **Categories:** Social media, Videos, Automation
- **Stats:** 115 total users, 2 monthly users, 100.0% runs succeeded, 38 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

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

Welcome to the  **TikTok Video & Comments Scraper** ! 🚀 This powerful Apify Actor quickly and reliably gathers comprehensive details from TikTok videos, including video metadata, author details, and insightful comment information. It’s designed to meet your data needs efficiently, providing rich and accurate content in no time.

***

### 🌟 Features

- **⚡ Fast & Stable** : Optimized for speed and reliability to handle high-volume requests without compromising on stability.
- **📋 Rich Data Fields** : Captures extensive video, author, and comment details, covering all the essentials for a deep dive into TikTok content.
- **💡 Easy to Use** : Just pass in the TikTok video link, and let the Actor do the rest!

***

### 📊 Data Fields

The scraper captures:

- **Author Information** : Unique ID, nickname, signature, and verification status
- **Video Metadata** : Title, hashtags, post date, views, likes, comments, shares, bookmarks, and duration
- **Video Media Links** : Cover image URL, download link
- **Music Information** : Title, author, and URL
- **Comment Details** : Commenter's username, comment text, likes, replies, date, and author interaction status

***

### 📥 Output Example

```
{
   "url": "https://www.tiktok.com/@realdonaldtrump/video/7431991177563426078",
   "author_unique_id": "realdonaldtrump",
   "author_nickname": "President Donald J Trump",
   "author_signature": "45th President of the United States",
   "author_is_verified": true,
   "video_title": "THANK YOU, WISCONSIN!",
   "video_hashtags": "",
   "video_post_date": "2024-11-01 01:21:47",
   "video_views": 2400000,
   "video_likes": 179000,
   "video_comments": 5123,
   "video_bookmarks": 8491,
   "video_shares": 4425,
   "video_duration_seconds": 27,
   "video_cover_url": "https://p16-pu-sign-useast8.tiktokcdn-us.com/tos-useast8-p-0068-tx2/738ff89b895a4f5a9f302dc63e8bde84_1730395310~tplv-dmt-logom:tos-useast8-i-0068-tx2/ocQ4HjEOfROelWEZfoCMUAAIqII8ABwAlgAhQ3.image?lk3s=81f88b70&x-expires=1731139200&x-signature=GZmdepkU4yRMpkaLgPoz7rdBmSk%3D&shp=81f88b70&shcp=-",
   "video_download_url": "https://v16-webapp-prime.us.tiktok.com/video/tos/useast8/tos-useast8-ve-0068c004-tx2/oYyR3Ii00EQk4jVLEQievwAIBfAGiEQHvBmn7E/?a=1988&bti=ODszNWYuMDE6&ch=0&cr=3&dr=0&lr=all&cd=0%7C0%7C0%7C&cv=1&br=2698&bt=1349&cs=0&ds=3&ft=4KJMyMzm8Zmo01UJdb4jVUBjQpWrKsd.&mime_type=video_mp4&qs=0&rc=PGY4ODVmNzZpZmQ8aWYzM0BpMzpsN3E5cml1djMzaTczNEBgMzQ2MjMvNS4xNC40X19eYSNtcjM1MmRjZWVgLS1kMTJzcw%3D%3D&btag=e00088000&expire=1730988660&l=2024110708103376F07DFC9D529B359AAA&ply_type=2&policy=2&signature=d3f7010076afafc12912c78eb2ab6cb9&tk=tt_chain_token",
   "video_id": "7431991177563426078",
   "music_title": "original sound",
   "music_author": "President Donald J Trump",
   "music_url": "https://www.tiktok.com/music/original sound-7431991114338749215",
   "commenter_username": "georgiaantoniou88",
   "comment_text": "Fight, fight 👊💪",
   "comment_likes": 111,
   "comment_replies": 26,
   "comment_date": "2024-11-01 03:46:45",
   "is_comment_liked_by_author": false
}
```

### 🛠️ How It Works

- **Input** : Provide the TikTok video URL for the content you want to scrape.
- **Processing** : The Actor navigates to the video page, extracts details, and gathers all specified data fields.
- **Output** : You receive a JSON response packed with all the key data points!

***

### 🎉 Why Choose This Actor?

With a high-speed, highly stable approach, this TikTok Scraper is designed for efficiency and accuracy. Get rich video insights and detailed comment data—everything you need for TikTok analysis in one Actor!

### 🔑Related Actors

Looking for more?😊 Check out my other TikTok scraping solutions:

1. [TikTok Profile & Video Data Extractor](https://apify.com/delicious_zebu/tiktok-profile-video-data-extractor) - quickly extracts comprehensive TikTok profile data, including Profile Info (Username, Bio, Verification Status), Follower Stats, Engagement Metrics (Likes, Comments, Shares), Latest Video Details (Description, Hashtags, Views, Music Info), and more, directly from any TikTok profile URL.

### 💬 Support and Feedback

Need help or have suggestions? Reach out to us via Apify support channels or leave feedback directly on the Actor’s page.

### 🔖Tags

`TikTok` `TikTok Comment` `Data Extraction` `Social Media Analysis`  `Fast Retrieval`  `Comprehensive Data` `TikTok Video`

# Actor input Schema

## `Urls` (type: `array`):

TikTok video detail page URLs. You can provide any TikTok video URL here.

## `maxCrawlNums` (type: `integer`):

The maximum number of comments to scrape per video URL.

## Actor input object example

```json
{
  "Urls": [
    "https://www.tiktok.com/@issei0806/video/7317175500512709896"
  ],
  "maxCrawlNums": 10000
}
```

# Actor output Schema

## `overview` (type: `string`):

Table view of comments using the 'overview' view from dataset_schema.json.

## `rawResults` (type: `string`):

All video and comment items from the default dataset without a specific view.

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

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

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

```

## MCP server setup

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