# TikTok Comments Scraper API (`scraptik/tiktok-comments-scraper-api`) Actor

Apify’s LOWEST cost TikTok Comment Scraper. Access the TikTok mobile API for comments and comment replies. Unlock TikTok data at scale. Have custom needs? Visit scraptik.com

- **URL**: https://apify.com/scraptik/tiktok-comments-scraper-api.md
- **Developed by:** [ScrapTik](https://apify.com/scraptik) (community)
- **Categories:** Social media, Videos
- **Security:** Full permissions
- **Stats:** 87 total users, 11 monthly users, 100.0% runs succeeded, 3 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $2.00 / 1,000 requests

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## The Simplest TikTok Comment Scraper

We're the most popular unofficial TikTok API since 2021 (as seen on other platforms).
We provide Marketing Agencies, Freelancers, and SaaS Companies with a TikTok API wrapper.
Always-maintained, up-to-date, and scale-friendly.
Our TikTok scraper helps you get the data you need with comprehensive endpoints (including mobile), proxies managed for you, and flat pricing ($.002/request). More than 95% cheaper than the other providers that price per result on average.

Interested in a [full TikTok API](https://apify.com/scraptik/tiktok-api) or custom plan beyond what's listed (e.g. more requests per second)? Fill out our form at <https://scraptik.com>

***

### Quickstart

Use the input GUI directly above, or use us as an API

#### Retrieve a TikTok post comments in seconds

**cURL Example:**

```bash
curl "https://api.apify.com/v2/acts/scraptik~tiktok-comments-scraper-api/runs?token=$API_TOKEN" \
  -X POST \
  -H 'Content-Type: application/json' \
  -d '{"listComments_awemeId": "6944028931875949829"}'

## "comments": [
##       {
##         "cid": "6947114404706025477",
##         "text": "The cross of the connecting to the h was the most satisfying thing I've ever witnessed.",
##         "aweme_id": "6944028931875949829",
##         "create_time": 1617501121,
##         "user": {
##           "uid": "6876771241307997190",
```

**GUI Input example**

![Input GUI entering video ID](https://i.postimg.cc/dtbTfxq5/list-Comments.png)

**Example JSON data output**

![JSON Results](https://i.postimg.cc/MZrB7GgS/comment-Example-Json.png)

### Why ScrapTik?

- **Flat per-request pricing, least expensive on a per-request basis** – more than 95% cheaper than the current most popular provider on Apify (when priced per result)
- **Most comprehensive in terms of API endpoints and tools**
- **The most popular TikTok data solution on other platforms**
- **Proxies all managed for you**
- **Responsive support & frequent updates**

### Key Features & Endpoints

- 💬 **Comments** – fetch comments and replies

### Simple, Transparent Pricing

- **$0.002 per request. That’s it.**

### ScrapTik vs. The Most Popular Provider

| | **ScrapTik** | **Most Popular Provider** |
| --- | --- | --- |
| **Pricing Model** | Per request (flat) | Per result (variable) |
| **Cost predictability** | ✅ Always clear | ❌ Varies by result count |
| **Average request cost (based on Starter plan with 20 results returned)** | $0.002 | $0.065 |
| **Endpoints covered** | Users, videos, followers, search, comments, download links  | Limited |
| **Proxies managed for you** | ✅ | ❌ |

### API Endpoints for easy integration and comprehensive data access

#### 💬 **Comment & Engagement Analysis**

| Endpoint | Path | Description | Key Features |
|----------|------|-------------|--------------|
| **List Comments** | `/list-comments` | Get video comments | Top-level comments, user engagement |
| **List Comment Replies** | `/list-comments-reply` | Get comment replies | Threaded conversations, nested engagement |

### Example Use Cases

- Build a **TikTok comment analysis tool** in minutes

### Common pitfalls/limitations

- Since we make live requests to TikTok, occasional errors may occur - simply retry your request if this happens. For persistent issues, contact support@scraptik.com
- For high-volume needs (many requests per second), please contact us to discuss alternative solutions. You can fill out a form [here](https://scraptik.com).

### Integrations & Scheduling

Easily send any results directly to GDrive, Make, Zapier, etc. Check out the "Integrations" tab above to choose any you'd like to use.

Need to schedule a check to run everyday? For example, checking whats trending every hour, or every day? Simply go to top right of your screen and click the schedule option.

![Schedule your actor runs](https://i.postimg.cc/85vJSRsc/schedule-actor-bg.png)

### Need more endpoints?

Check out our [Full TikTok API](https://apify.com/scraptik/tiktok-api)

### FAQ

**How much does it cost to use the TikTok API (unofficial)?**
Our pricing is simple: $0.002 per request, regardless of how many results are returned. This makes us over 95% cheaper than other providers who charge per result.

**How can I use the TikTok API with the Apify API?**
You can access our API through Apify's platform using your API token. See the Quickstart section above for code examples using cURL. If you need an in-depth tutorial you can view one [here](https://medium.com/@scraptik/how-to-get-tiktok-videos-using-an-unofficial-tiktok-api-with-apify-and-node-js-e8d8b79a0c75).

**Where do I submit questions or feedback?**
Fill out our form at https://scraptik.com or email us directly at support@scraptik.com. We aim to respond within 24 hours.

**What if I need more requests/limits?**
We offer custom plans for higher volume needs. Contact us through https://scraptik.com to discuss your requirements for increased requests per second or monthly limits.

**Can I use this beyond just code?**
Yes! We integrate seamlessly with no-code tools like Make and Zapier. Check out the Integrations section above for details on connecting to your preferred platform.

**Can I scrape private videos from private TikTok accounts?**
No, we can only access publicly available content. Private videos and accounts require authentication and explicit permission from the account owner.

**Can this extract comments?**
Yes, our API includes comprehensive comment extraction capabilities. You can retrieve comments, replies, and associated metadata for any public TikTok video.

### Questions? Feedback & Support

Found a bug or need a new endpoint? Interested in a custom plan beyond what's listed (# of requests per month or more requests per second)? Fill out our form at <https://scraptik.com>.

# Actor input Schema

## `listComments_awemeId` (type: `string`):

ID of the TikTok post to fetch top-level comments for. Example: 6944028931875949829

## `listComments_count` (type: `integer`):

Number of top-level comments to fetch. Default is 10.

## `listComments_cursor` (type: `integer`):

Pagination cursor to retrieve more top-level comments.

## `commentReplies_commentId` (type: `string`):

ID of the parent comment to fetch replies for. Example: 6999860547420766982

## `commentReplies_awemeId` (type: `string`):

ID of the TikTok post containing the comment. Example: 6996617408010112262

## `commentReplies_count` (type: `integer`):

Number of replies to fetch. Default is 10.

## `commentReplies_cursor` (type: `integer`):

Pagination cursor to retrieve more comment replies.

## Actor input object example

```json
{
  "listComments_awemeId": "",
  "listComments_count": 10,
  "listComments_cursor": 0,
  "commentReplies_commentId": "",
  "commentReplies_awemeId": "",
  "commentReplies_count": 10,
  "commentReplies_cursor": 0
}
```

# 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("scraptik/tiktok-comments-scraper-api").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("scraptik/tiktok-comments-scraper-api").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 scraptik/tiktok-comments-scraper-api --silent --output-dataset

```

## MCP server setup

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

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/dhe5MqaJR7qYQBZHr/builds/hGMUxvlZryRVMgIry/openapi.json
