# TikTok Comments Scraper (`aboo.script/tiktok-comments-scraper`) Actor

\[💰$2 / 1K] ⚡ Fast TikTok comments scraper. No login, no API key. Export comments and replies from TikTok video, photo or share links: text, likes, reply count, date, language, pinned and creator-liked flags, mentions, hashtags and commenter profile. Great for sentiment analysis.

- **URL**: https://apify.com/aboo.script/tiktok-comments-scraper.md
- **Developed by:** [Aboo Script](https://apify.com/aboo.script) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

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

![TikTok Comments Scraper](https://i.ibb.co/k2gyC2Kn/tiktok-comments-banner.png)

**TikTok Comments Scraper** extracts comments and replies from any public [TikTok](https://www.tiktok.com/) video or photo post into clean, structured data you can download as JSON, CSV, Excel, or HTML. Paste TikTok video links or share links, and get the comment text, likes, reply count, date, and the commenter's username, name, and profile for every comment. No account or login required.

### Introduction

[TikTok](https://www.tiktok.com/) is one of the world's largest short-video platforms, with more than a billion people watching, posting, and reacting every month. The comments under a video show what viewers really think: questions, complaints, praise, trends, and the people who engage most with a creator or brand.

This actor collects the same public comments you see in your browser and turns them into a ready-to-use dataset. You can run it once, schedule it to run daily, or connect it to your own tools.

### What data can you extract from TikTok comments?

- 💬 Comment text, with the @mentions and #hashtags it contains
- ❤️ Number of likes and number of replies
- 📅 Date and time the comment was posted
- ↩️ Replies, linked to the comment they answer
- 📌 Whether the comment is pinned or liked by the video creator
- 🌍 Comment language
- 👤 Commenter's username, display name, user ID, profile URL, and avatar
- 🔗 Video URL and video ID for every comment

### Use Cases

- 📈 **Audience research**: learn what viewers ask, like, and complain about under your own or competitors' videos.
- 🕵️ **Competitor monitoring**: follow how people react to a competitor's campaign or product launch.
- 🤝 **Influencer and lead discovery**: find the most active commenters and fans of a creator or brand.
- 😊 **Sentiment analysis**: collect large volumes of comments to measure opinion about a product, topic, or trend.
- 🤖 **AI and automation**: feed clean, structured comments into spreadsheets, dashboards, or AI workflows.

### How to scrape TikTok comments step by step

1. Paste one or more TikTok video links into **TikTok video URLs**.
2. Set **Max comments per video** to how many comments you want from each video.
3. Turn on **Include replies** if you also want the replies to each comment, and set **Max replies per comment**.
4. Click **Start** and wait for the run to finish.
5. Download your data in JSON, CSV, Excel, or HTML from the **Output** tab.

### Input

- **TikTok video URLs**: TikTok video or photo post links, such as `https://www.tiktok.com/@user/video/1234567890123456789`, or share links from the TikTok app (`vm.tiktok.com/...`, `vt.tiktok.com/...`, `tiktok.com/t/...`). Comments are scraped for each link.
- **Max comments per video**: how many comments to collect for each video. Replies are not counted here. Use 0 to collect all available comments.
- **Include replies**: also collect the replies to each comment. Replies are saved right after the comment they belong to.
- **Max replies per comment**: how many replies to collect for each comment when **Include replies** is on. Use 0 to collect all replies.

### Input Examples

Scrape the first comments of a video and of a share link:

```json
{
  "startUrls": [
    { "url": "https://www.tiktok.com/@scout2015/video/6718335390845095173" },
    { "url": "https://vm.tiktok.com/ZMhvqjqjq/" }
  ],
  "maxResults": 5,
  "includeReplies": false,
  "maxRepliesPerComment": 5
}
```

Scrape comments together with their replies:

```json
{
  "startUrls": [
    { "url": "https://www.tiktok.com/@scout2015/video/6718335390845095173" }
  ],
  "maxResults": 100,
  "includeReplies": true,
  "maxRepliesPerComment": 10
}
```

### Output

Each comment (and each reply) is saved as one item in the dataset. Here is an example of a single item:

```json
{
  "url": "https://www.tiktok.com/@x/video/7106594312292453675",
  "commentId": "7106602289409835819",
  "videoId": "7106594312292453675",
  "text": "@tiktok please i beg you please bring back @killsmartyr PLEASE😪",
  "createdAt": "2022-06-07T20:46:32.000Z",
  "likes": 14,
  "replyCount": 1,
  "isReply": false,
  "parentCommentId": null,
  "repliedToCommentId": null,
  "isPinned": false,
  "isLikedByAuthor": false,
  "language": "en",
  "mentions": ["@tiktok", "@killsmartyr"],
  "hashtags": [],
  "imageUrls": [],
  "authorId": "6736711176522564613",
  "authorSecUid": "MS4wLjABAAAA0PrnSr3yCbPpGisTUGWw3gJINW86mp8IQi5kAHUE8n3eTatzweBYlqS_XdBNDDph",
  "authorUsername": "leahelizabethhud",
  "authorNickname": "leah",
  "authorProfileUrl": "https://www.tiktok.com/@leahelizabethhud",
  "authorAvatarUrl": "https://p16-common-sign.tiktokcdn.com/tos-maliva-avt-0068/07cb4aee297181e1feb0f3aa75a54c92~tplv-tiktokx-cropcenter:100:100.jpg?..."
}
```

Replies have `isReply` set to `true`, `parentCommentId` set to the comment they answer, and `replyCount` set to `null`.

You can download the dataset in JSON, CSV, Excel, XML, or HTML, or access it through the Apify API.

### Notes

- Only video and photo post links are supported. Profile pages, hashtag pages, and other TikTok pages are skipped.
- TikTok hides some comments from public view (for example spam or filtered comments), so the number of comments you get can be lower than the comment count shown on the video.
- For share links, the video URL in the results may not contain the creator's username (`https://www.tiktok.com/@/video/...`). The link still opens the video.
- `language` is `null` when TikTok cannot detect the comment language, and `imageUrls` is empty for text-only comments.
- Videos with comments turned off, deleted videos, or private videos return no results.

### Why use the TikTok Comments Scraper?

- ✅ **No login needed**: works with public data only, so there is no account to manage.
- 🔗 **Any TikTok link**: paste full video links or short share links straight from the TikTok app.
- ↩️ **Replies included**: get whole conversations, with each reply linked to its parent comment.
- 🧹 **Clean data**: numbers are real numbers, dates use one standard format, and mentions and hashtags are already extracted.
- 💸 **Pay for what you need**: set a limit per video and keep every run small and cheap.
- 🔄 **Ready for automation**: schedule runs, export to Google Sheets, or connect to Make, Zapier, and n8n.

### FAQ

#### How many comments can I scrape?

Set **Max comments per video** to any number, or 0 to collect every comment TikTok shows publicly. The actor keeps going until it reaches your limit or runs out of comments.

#### Do I need a TikTok account?

No. The actor only collects publicly available comments. You do not need to log in or provide any account details.

#### Can I scrape comments on a schedule?

Yes. Use Apify Schedules to run the actor every hour, day, or week, and get fresh comments automatically.

#### Can I request a new feature or filter?

Yes. Right now the actor accepts TikTok video links and share links. If you need other inputs, such as all videos of a profile or a date filter, get in touch and they can be added.

#### Can I get a custom or private version?

Yes. The actor can be customized for your workflow, delivered as a private version, or a new scraper can be built for a different website. Use the contact details below.

### Need to scrape other social media platforms?

- [TikTok Trending Videos Scraper](https://apify.com/aboo.script/tiktok-trending-videos-scraper): trending TikTok videos by country, period, and category, with views and engagement.
- [TikTok Trending Hashtags Scraper](https://apify.com/aboo.script/tiktok-trending-hashtags-scraper): trending TikTok hashtags with posts, views, and trend data.
- [TikTok Ad Library Scraper](https://apify.com/aboo.script/library-tiktok-scraper): ads from the TikTok Ad Library with advertiser and targeting details.
- [YouTube Live Chat Scraper](https://apify.com/aboo.script/youtube-live-chat-scraper): live chat messages from YouTube streams.
- [LinkedIn Articles Scraper](https://apify.com/aboo.script/linkedin-pulse-scraper): LinkedIn Pulse articles with author and engagement data.

***

**Need help or want a custom solution?**

- 📧 Email: aboo.script@gmail.com
- 🧩 More scrapers: [Apify profile](https://apify.com/aboo.script)

### Image Credit

Image credit: [TikTok](https://www.tiktok.com/)

# Actor input Schema

## `startUrls` (type: `array`):

TikTok video or photo post URLs (https://www.tiktok.com/@user/video/...) or share links (vm.tiktok.com/..., vt.tiktok.com/..., tiktok.com/t/...). Comments are scraped for each URL.

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

Maximum number of comments to scrape for each video URL. Replies are not counted here (see "Max replies per comment"). Use 0 for unlimited.

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

Also scrape the replies of each comment. Replies are saved right after their parent comment.

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

Maximum number of replies to scrape for each comment when "Include replies" is on. Use 0 for unlimited.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.tiktok.com/@scout2015/video/6718335390845095173"
    },
    {
      "url": "https://vm.tiktok.com/ZMhvqjqjq/"
    }
  ],
  "maxResults": 5,
  "includeReplies": false,
  "maxRepliesPerComment": 5
}
```

# Actor output Schema

## `overview` (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 = {
    "startUrls": [
        {
            "url": "https://www.tiktok.com/@scout2015/video/6718335390845095173"
        },
        {
            "url": "https://vm.tiktok.com/ZMhvqjqjq/"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("aboo.script/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 = { "startUrls": [
        { "url": "https://www.tiktok.com/@scout2015/video/6718335390845095173" },
        { "url": "https://vm.tiktok.com/ZMhvqjqjq/" },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("aboo.script/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 '{
  "startUrls": [
    {
      "url": "https://www.tiktok.com/@scout2015/video/6718335390845095173"
    },
    {
      "url": "https://vm.tiktok.com/ZMhvqjqjq/"
    }
  ]
}' |
apify call aboo.script/tiktok-comments-scraper --silent --output-dataset

```

## MCP server setup

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