# TikTok Comments Scraper Lowcost (0.25$/1K 🤑) (`sones/tiktok-comments-scraper-lowcost`) Actor

TikTok comments scraper: export the comments and replies of any public TikTok video to JSON, CSV or Excel, without login. Text, likes, date, reply count, pinned and author-liked comments, commenter name. $0.25 per 1,000 comments.

- **URL**: https://apify.com/sones/tiktok-comments-scraper-lowcost.md
- **Developed by:** [Samy](https://apify.com/sones) (community)
- **Categories:** Social media, Marketing, Lead generation
- **Features:** Limited permissions
- **Stats:** 4 total users, 3 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.18 / 1,000 comments

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 Lowcost

**TikTok Comments Scraper** exports the comments and replies of public TikTok videos for **$0.25 per 1,000 comments**. Paste video URLs, and get each comment's text, likes, date and reply count, the commenter's name, and the replies if you want them, as JSON, CSV or Excel. No TikTok account, cookies or login needed.

### What is TikTok Comments Scraper?

It is an unofficial TikTok comments API: it reads the same comments TikTok's web app shows a logged-out visitor, 50 at a time, and turns them into clean rows. Use it from the Apify Console with no code, or call it from your own code through the Apify API, Python or JavaScript clients, or integrations such as Make, Zapier, n8n and Google Sheets.

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

| Field               | What it is                                             |
| ------------------- | ------------------------------------------------------ |
| `text`              | The comment's text                                     |
| `diggCount`         | Number of likes                                        |
| `replyCommentTotal` | Number of replies to the comment                       |
| `createTimeISO`     | When it was posted (also `createTime` in Unix seconds) |
| `pinnedByAuthor`    | Whether the video's author pinned it                   |
| `likedByAuthor`     | Whether the video's author liked it                    |
| `uniqueId`          | The commenter's TikTok handle                          |
| `nickname`          | The commenter's display name                           |
| `commentLanguage`   | The language TikTok detected, such as `en`             |
| `repliesToId`       | For a reply, the ID of the comment it answers          |
| `cid`, `videoId`    | The comment's and the video's TikTok IDs               |
| `videoWebUrl`       | The video's page, and the line you entered (`input`)   |

### What can you use TikTok comments for?

- **Sentiment analysis and market research**: what viewers say about a product, a brand or a campaign.
- **Brand and competitor monitoring**: the questions and complaints under a competitor's videos.
- **Influencer vetting**: whether a creator's audience engages for real.
- **Giveaways and contests**: export every comment of a giveaway video to a spreadsheet.
- **Content ideas**: the questions your audience asks most.
- **AI and NLP datasets**: comment text with likes and language, ready for a model.

### How to scrape TikTok comments

1. Open the Actor's **Input** tab.
2. Paste your video URLs, one per line, such as `https://www.tiktok.com/@nba/video/7255379108241198378`. A numeric video ID works too.
3. Set **Comments per video**, and **Replies per comment** if you want replies.
4. Click **Start**.
5. Open the **Output** tab when the run finishes, and export the comments as CSV, Excel, JSON or HTML.

Repeated videos are scraped once. Lines that are not a TikTok video are skipped and counted in the run log. Short links such as `vm.tiktok.com/...` don't work: open them in a browser and copy the full link.

### Input

```json
{
    "postURLs": [
        "https://www.tiktok.com/@nba/video/7255379108241198378",
        "https://www.tiktok.com/@therock/video/7422010349337021726"
    ],
    "commentsPerPost": 100,
    "maxRepliesPerComment": 0
}
```

| Field                  | Type             | Description                                                                                                                        |
| ---------------------- | ---------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| `postURLs`             | array of strings | Required. Video URLs or numeric video IDs.                                                                                         |
| `commentsPerPost`      | integer          | Optional, `100` by default. The most comments to get from each video, in TikTok's order. Replies don't count toward it.            |
| `maxRepliesPerComment` | integer          | Optional, `0` by default. The most replies to get for each comment, oldest first. Each reply is a row of its own, priced the same. |

The field names are those of the most used TikTok comments Actor, so you can switch with the same input.

### Output

```json
{
    "videoWebUrl": "https://www.tiktok.com/@nba/video/7255379108241198378",
    "submittedVideoUrl": "https://www.tiktok.com/@nba/video/7255379108241198378",
    "input": "https://www.tiktok.com/@nba/video/7255379108241198378",
    "videoId": "7255379108241198378",
    "cid": "7256293923982590766",
    "createTime": 1689487617,
    "createTimeISO": "2023-07-16T06:06:57.000Z",
    "text": "Did it end up counting??",
    "diggCount": 12,
    "likedByAuthor": false,
    "pinnedByAuthor": false,
    "repliesToId": null,
    "replyCommentTotal": 1,
    "uniqueId": "hoops_fan_23",
    "nickname": "Hoops Fan",
    "commentLanguage": "en"
}
```

The rows of a video come in TikTok's order: each comment, then its replies. The dataset's **Overview** tab shows the video, date, text, likes, replies and commenter. Exports always contain every field.

Each run also saves a `RUN_SUMMARY` record in its key-value store. It lists every video you asked for with its result and its number of comments.

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

You pay per comment in your dataset, and a small fee per run. Apify subscribers get a lower price per comment:

| Apify plan        | Price per 1,000 comments or replies |
| ----------------- | ----------------------------------- |
| Free              | $0.25                               |
| Starter (Bronze)  | $0.22                               |
| Scale (Silver)    | $0.20                               |
| Business (Gold)   | $0.18                               |
| Platinum, Diamond | $0.18                               |

The run start costs $0.001 per run start (per GB of memory, at least one; runs use 512 MB by default).

For example, 10,000 comments on the free plan cost $2.501: $2.50 for the comments and $0.001 for the run start. Apify's free plan includes $5 of monthly credit, enough for about 20,000 comments a month. A video without comments costs nothing.

The most used TikTok comments Actor on Apify costs $1.25 per 1,000 comments on the free plan. In our tests, a run of 3 videos and 2,204 comments took 36 seconds.

### Limits

- The Actor gets what TikTok shows a logged-out visitor: public videos only.
- TikTok answers a deleted or private video the same way as a video without comments: the run log says `no comments (or the video is not public)`, and it costs nothing.
- TikTok does not show every comment it counts. On a video with 4,020 comments, TikTok showed about 1,300 distinct ones; the Actor gets every comment TikTok shows, up to your limit.
- Comments come in TikTok's own order, which puts the most relevant first and can differ from one run to the next.
- The commenter is given by their public handle and display name only: no user IDs, pictures or other details.

### FAQ

#### Do I need a TikTok account or cookies?

No. The Actor never logs in and needs no cookies.

#### Is it legal to scrape TikTok comments?

The Actor collects only public comments, as any visitor sees them, and only the commenter's public name. Personal data is protected by laws such as the GDPR in the EU: scrape and use it only for a legitimate reason, and consult a lawyer if you are unsure.

#### Can I use it as a TikTok comments API?

Yes. Start the Actor through the [Apify API](https://docs.apify.com/api/v2) with the same JSON input, from Python, JavaScript or any HTTP client, and read the comments from its dataset. You can also schedule runs and send the results to Google Sheets, Slack, a webhook or an AI agent through Apify's MCP server.

#### Can I get the comments of every video of a profile?

Get the profile's video URLs first, for example with a TikTok profile scraper, then give them to this Actor.

#### Why did a video give no comments?

It has no comments, its author turned them off, or the video was deleted or made private.

#### Why did I get fewer comments than I asked for?

The video has fewer comments than your limit, or TikTok stopped showing new ones. TikTok shows a logged-out visitor only part of a very popular video's comments.

### Other lowcost scrapers

- [TikTok Video Scraper Lowcost](https://apify.com/sones/tiktok-video-details-scraper-lowcost): views, likes and shares of TikTok videos.
- [Instagram Posts Scraper Lowcost](https://apify.com/sones/instagram-posts-scraper-lowcost): posts and reels of Instagram profiles.
- [Instagram Profile Scraper Lowcost](https://apify.com/sones/instagram-user-scraper-lowcost): followers, bio and links of Instagram profiles.
- [YouTube Scraper Lowcost](https://apify.com/sones/youtube-scraper-lowcost): videos, Shorts and comments of YouTube channels.
- [YouTube Transcript Scraper Lowcost](https://apify.com/sones/youtube-transcript-scraper-lowcost): transcripts of YouTube videos.
- [X Twitter Scraper Lowcost](https://apify.com/sones/x-twitter-scraper-lowcost): tweets from X searches and profiles.

# Actor input Schema

## `postURLs` (type: `array`):

One video per line: a video URL such as https://www.tiktok.com/@nba/video/7255379108241198378, or its numeric ID. Short links (vm.tiktok.com/...) don't work: open them in a browser and copy the full link. Repeated videos are scraped once, and lines that are not a TikTok video are skipped.

## `commentsPerPost` (type: `integer`):

The most comments to get from each video, in the order TikTok shows them. Replies don't count toward it.

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

The most replies to get for each comment, oldest first. 0 gets no replies. Each reply is a row of its own, charged like a comment.

## `proxy` (type: `object`):

Leave on automatic. Choose 'Own proxies' and enter their URLs only if you want every request to go through proxy servers of your own.

## Actor input object example

```json
{
  "postURLs": [
    "https://www.tiktok.com/@nba/video/7255379108241198378",
    "7422010349337021726"
  ],
  "commentsPerPost": 2,
  "maxRepliesPerComment": 1,
  "proxy": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `dataset` (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 = {
    "postURLs": [
        "https://www.tiktok.com/@nba/video/7255379108241198378",
        "https://www.tiktok.com/@therock/video/7422010349337021726"
    ],
    "commentsPerPost": 2,
    "maxRepliesPerComment": 1,
    "proxy": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("sones/tiktok-comments-scraper-lowcost").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 = {
    "postURLs": [
        "https://www.tiktok.com/@nba/video/7255379108241198378",
        "https://www.tiktok.com/@therock/video/7422010349337021726",
    ],
    "commentsPerPost": 2,
    "maxRepliesPerComment": 1,
    "proxy": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("sones/tiktok-comments-scraper-lowcost").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 '{
  "postURLs": [
    "https://www.tiktok.com/@nba/video/7255379108241198378",
    "https://www.tiktok.com/@therock/video/7422010349337021726"
  ],
  "commentsPerPost": 2,
  "maxRepliesPerComment": 1,
  "proxy": {
    "useApifyProxy": true
  }
}' |
apify call sones/tiktok-comments-scraper-lowcost --silent --output-dataset

```

## MCP server setup

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

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/fVsnsyFGwMyDjFEUS/builds/oCJv1uf0M1K1XdHeN/openapi.json
