# TikTok Comments Scraper — Replies, Creator Likes & No Login (`valev-lab/tiktok-comments-scraper`) Actor

Scrape TikTok video and photo comments, replies, likes and creator hearts. Export CSV, Excel or JSON. Filter keywords, dates and likes, detect languages and monitor unseen comments. No TikTok login. $0.60/1K on Free; $0.40/1K on Gold+.

- **URL**: https://apify.com/valev-lab/tiktok-comments-scraper.md
- **Developed by:** [Daniel Valev](https://apify.com/valev-lab) (community)
- **Categories:** Social media, Videos
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.40 / 1,000 comment scrapeds

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 — Replies, Likes & Creator Hearts, No Login

**Download public TikTok comments and replies to CSV, Excel or JSON — without a TikTok login.** Collect comment text, likes, creator hearts, reply relationships, timestamps and public author details from video and photo posts. Paste [TikTok](https://www.tiktok.com) post URLs or use a profile's recent public post slice. No user-supplied cookies or paid data API is required.

Filter by keywords, date, likes or creator endorsement. Detect languages locally, monitor previously unseen comment IDs and get a free summary for each post. Download the dataset as **JSON, CSV, Excel or HTML**, or use the Apify API.

**Price:** $0.60 per 1,000 delivered comments/replies on the Apify Free plan, down to $0.40 on Gold+. A run-start event adds $0.00005 at default memory. Errors, duplicates, filtered comments, previously seen monitor IDs and post summaries have no comment fee. Start with four comments for **$0.00245 on Free** at default memory.

**Useful for:** audience research, brand monitoring, product feedback and UGC research. Enable replies to retain conversations, filter creator-liked comments, and keep a named history of delivered IDs for repeat monitoring. Each post also gets a free summary with its caption, creator, reported comment count and ten most-liked delivered comments.

### How to download TikTok comments

1. Replace the sample URL with your public video or photo-post URLs.
2. Start with the Console's four-comment sample, then increase `maxCommentsPerPost`.
3. Enable replies and select optional comment filters.
4. Inspect **Comments overview** and **Post summaries**.
5. Export your dataset, retrieve it through the API or connect a scheduled workflow.

The dataset contains `type: "comment"`, `type: "postSummary"` and `type: "error"` rows. Dataset views choose columns from the same mixed dataset; they do not filter row types. Keep `type == "comment"` for a comments-only table.

### What can you use TikTok comment data for?

| Use case | Workflow |
| --- | --- |
| **Audience research** | Compare questions, discussion topics, languages and popular comments across public posts |
| **Brand monitoring** | Filter brand/product phrases and use a named monitor store for repeat runs |
| **Product feedback** | Export feature requests, complaints and purchase questions for your own analysis |
| **UGC research** | Review public creator interactions and audience responses around user-generated content |

For audience research, join replies to parents using `parentCommentId` and `commentId`, group comments by `postId` and keep the source links for review. For product feedback, put your own product posts in `postUrls` and phrases such as `wish`, `please add` or `does it work` in `keywords`; matching uses any phrase, not all phrases together.

For brand monitoring, combine your brand phrases with `monitorMode: true`, reuse one `monitorStoreName` and schedule repeats in Apify Console. For UGC research, use `minLikes` to find well-liked audience reactions or `authorLikedOnly` to review explicit creator endorsements. These filters select comments; they do not discover every TikTok post mentioning a brand.

Language labels support your own sentiment or topic-analysis pipeline. This Actor does not generate sentiment scores, qualify buyers or grant permission to reuse someone's UGC.

For campaign creative and advertiser research, use our [TikTok Ads Library](https://apify.com/valev-lab/tiktok-ads-library). For long-form and Shorts discussions, use our [YouTube Comments Scraper](https://apify.com/valev-lab/youtube-comments-scraper).

### How much does TikTok comment scraping cost?

Prices use pay-per-event billing. **Free means the Apify Free plan, not zero-cost extraction.** Start and comment events were verified in private cloud runs; check the Pricing tab and your run details for effective prices.

| Event | Free | Bronze | Silver | Gold and above |
| --- | ---: | ---: | ---: | ---: |
| `apify-actor-start`, per run at default memory | $0.00005 | $0.00005 | $0.00005 | $0.00005 |
| `comment-scraped`, per comment or reply | $0.0006 | $0.00055 | $0.0005 | $0.0004 |
| 1,000 delivered comments/replies | $0.60 | $0.55 | $0.50 | $0.40 |
| Summaries, errors, discovery and skipped IDs | $0 | $0 | $0 | $0 |

A four-comment sample would cost **$0.00245 Free** plus one free post summary. One thousand delivered comments/replies would cost **$0.60005 Free / $0.40005 Gold+** including a start event at default memory. These are event estimates, not measured infrastructure costs or a billing invoice. The developer pays run infrastructure under PPE; later platform storage/export usage follows Apify's terms.

Set Apify's **maximum total charge** to control spending. The collector checks combined event spending before each delivery and honors the SDK's charge-limit response. Comments already delivered remain billable if a later page fails; diagnostic and summary rows stay free. The synthetic run-start event can still apply when a post is unavailable. There is no separate per-post or reply surcharge.

#### Compared with Clockworks and API Dojo

Public [Clockworks pricing metadata](https://api.apify.com/v2/acts/clockworks~tiktok-comments-scraper) and [API Dojo pricing metadata](https://api.apify.com/v2/acts/apidojo~tiktok-comments-scraper) checked 9 November 2026. Prices below are per 1,000 comments; included allowances and operational behavior differ.

| Actor | Free | Gold | Platinum / Diamond | Relevant scope |
| --- | ---: | ---: | ---: | --- |
| **This Actor** | **$0.60** | **$0.40** | $0.40 / $0.40 | Keyword/date/like and creator-like filters, offline language labels, persistent ID monitoring, free post summaries |
| [Clockworks TikTok Comments Scraper](https://apify.com/clockworks/tiktok-comments-scraper) | $1.25 | $0.50 | $0.30 / $0.15 | Comments, replies and profile inputs |
| [API Dojo TikTok Comments Scraper](https://apify.com/apidojo/tiktok-comments-scraper) | $0.30 | $0.279 | $0.270 / $0.255 | Public comment extraction; its listing describes Free-plan demo limits |

The requested price is **52% below Clockworks on Free** and **20% below on Gold**. Clockworks costs less on Platinum/Diamond. API Dojo has a lower comment rate. These comparisons do not establish reliability parity or the lowest price on every plan.

### Input example

```json
{
  "postUrls": ["https://www.tiktok.com/@tiktok/video/7106594312292453675"],
  "maxCommentsPerPost": 100,
  "includeReplies": true,
  "maxRepliesPerComment": 20,
  "detectLanguage": true,
  "proxyConfiguration": { "useApifyProxy": true }
}
```

| Option | Default | Meaning |
| --- | --- | --- |
| `postUrls` | Small sample if no sources | Public video/photo URLs; `vm.tiktok.com`, `vt.tiktok.com` and TikTok `/t/` share links |
| `profiles` | None | Usernames, @handles or full profile URLs; public recent embed slice, currently ten posts |
| `maxPostsPerProfile` | 10 | Maximum posts from that slice; unavailable deeper coverage generates a free `PROFILE_INCOMPLETE` diagnostic |
| `maxCommentsPerPost` | 100 | Delivered matching unseen comments and replies **combined** per post; `0` follows all available pages |
| `includeReplies`, `maxRepliesPerComment` | `false`, 100 | Traverse replies independently of parent filters; reply cap counts unique replies inspected per parent; `0` follows all replies |
| `dateFrom`, `minLikes`, `keywords` | None, 0, empty | Inclusive UTC date; minimum available likes; any case-insensitive matching phrase |
| `authorLikedOnly` | `false` | Require TikTok's explicit liked-by-creator flag on the comment itself |
| `detectLanguage` | `true` | Offline ISO 639-3 labels such as `eng` or `bul`; `und` for short/uncertain text |
| `monitorMode`, `monitorStoreName` | `false`, `tiktok-comments-scraper-monitor` | Deliver IDs not previously saved by this named workflow |
| `proxyConfiguration` | Apify datacenter proxy | Cloud defaults to rotating datacenter sessions; local no-source health uses direct HTTP. Explicit direct/custom/residential choices are respected; no automatic residential escalation |

The Console prefill uses four comments for a small first run. Ordinary source inputs default to 100. Without sources, the health check delivers four comments plus a summary. See the Input tab for the full form.

TikTok's public profile embed can include pins and omit recent posts. Sorting the returned IDs removes pin ordering within the slice, but cannot recover omitted posts. Use individual post URLs when exact coverage matters. Profiles that cannot be read produce a free error and do not stop other sources.

### What fields does the comments API return?

| Group | Fields |
| --- | --- |
| Comment | `commentId`, `text`, `createdAt`, `likeCount`, `replyCount`, `commentUrl` |
| Post | `postId`, `postUrl` |
| Reply relationship | `isReply`, `parentCommentId` (top-level parent) |
| Creator interaction | `isPinned`, `likedByAuthor`, `isPostAuthor` |
| Public author | `authorUsername`, `authorNickname`, `authorId`, `authorAvatar`, `authorIsVerified` |
| Enrichment | `mentions[]`, `hashtags[]`, `language`, `isNew`, `scrapedAt` |
| Free post summary | `type: "postSummary"`, `postDescription`, `author`, `totalCommentCount`, `scrapedCount`, `topComments`, `status`, `paginationComplete` |
| Free diagnostic | `type: "error"`, `source`, `postId`, `errorCode`, `error`, optional `parentCommentId` |

Unknown values are `null`; creator likes are never inferred from the anonymous visitor's likes. Replies do not inherit parent pins/hearts. Mentions and hashtags contain unique names without `@`/`#`. Author/avatar URLs may expire. `topComments` ranks the ten most-liked **delivered rows**, including replies, rather than every comment on the post.

Illustrative abbreviated output; IDs and text below are synthetic:

```json
[
  {"type":"comment","commentId":"7000000000000000000","postId":"7106594312292453675","text":"How much does this product cost?","likeCount":20,"replyCount":1,"isReply":false,"parentCommentId":null,"isPinned":false,"likedByAuthor":true,"language":"eng","isNew":null},
  {"type":"comment","commentId":"7000000000000000100","postId":"7106594312292453675","text":"Thanks for the question!","isReply":true,"parentCommentId":"7000000000000000000","isPostAuthor":true},
  {"type":"postSummary","postId":"7106594312292453675","scrapedCount":2,"topComments":[{"commentId":"7000000000000000000","likeCount":20}],"status":"limit","paginationComplete":false}
]
```

### Use the TikTok comments API

Use `valev-lab/tiktok-comments-scraper` through the [Apify API](https://docs.apify.com/api/v2). An Apify account/token is needed for API calls; no TikTok account or TikTok API key is needed. Access follows the Actor's visibility and your Apify permissions.

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('valev-lab/tiktok-comments-scraper').call({
    postUrls: ['https://www.tiktok.com/@tiktok/video/7106594312292453675'],
    maxCommentsPerPost: 100,
    includeReplies: true,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const item of items) {
    if (item.type === 'comment') console.log(item.text, item.likeCount);
}
// listItems returns one page; paginate larger exports.
```

Python, using the [official Apify client](https://docs.apify.com/api/client/python) 3.x:

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("valev-lab/tiktok-comments-scraper").call(run_input={
    "postUrls": ["https://www.tiktok.com/@tiktok/video/7106594312292453675"],
    "maxCommentsPerPost": 100,
    "includeReplies": True,
})
for item in client.dataset(run.default_dataset_id).iterate_items():
    if item["type"] == "comment":
        print(item["text"], item["likeCount"])
```

Make, Zapier, n8n and scheduled Apify workflows can run the same input and retrieve the dataset. Creating a saved task or enabling monitoring does not create a schedule.

#### Use with AI agents and MCP

Connect your MCP client to the [official Apify MCP server](https://docs.apify.com/mcp) and authorize with your Apify account. Select this Actor with `https://mcp.apify.com?tools=valev-lab/tiktok-comments-scraper`. Availability follows Actor visibility and account access; an end-to-end external MCP call has not been verified here.

Example request: “Collect up to 100 comments and replies from this public TikTok URL, retain creator likes and source links, then group the exported comments into common product questions.” The Actor supplies source data; your agent performs the topic analysis. Keep `type == "comment"` when analyzing individual comments and inspect error/summary rows separately.

### Monitoring and reliability

Reuse the same named key-value store for repeat runs and choose separate names for independent workflows. IDs are saved only after successful delivery, every 50 deliveries and at post completion/persist events. Later runs scan past saved IDs to find unseen matches. New means unseen by the workflow, including older comments not previously delivered. Avoid overlapping runs against the same monitor store. A crash between dataset delivery and a checkpoint can cause redelivery; there is no cross-store transaction. Local named stores stay on your machine; keep them when testing repeat monitoring.

The HTTP transport retries blocks and transient failures with backoff, rotating anonymous cookies and proxy sessions together. Empty HTTP 200 bodies and explicit token/signature refusals are treated as failures. Null/malformed lists are not silently accepted as empty posts. Cursor loops become diagnostics, short pages continue when `has_more` is true, and repeated IDs are skipped before charging. Replies that fail do not discard their parent or stop later posts.

For an unlimited scan, set `maxCommentsPerPost: 0`, `includeReplies: true` and `maxRepliesPerComment: 0`. TikTok may expose fewer comments than its public count. Budget, run timeout, removed/moderated comments and unavailable pages can stop coverage. Filters and monitoring may scan many pages to fill a small result cap. Very large scans retain IDs and need appropriate memory.

#### Measured results and coverage limits

Validation on 9 November 2026:

| Workload | Result | Environment |
| --- | --- | --- |
| Viral video with replies | 1,000 unique rows, including 927 replies, in 43.661 s | Local HTTP |
| Photo post | 100 comments/replies in 6.752 s | Local HTTP |
| Bulgarian creator | 40 comments in 2.234 s, including four creator-liked comments | Local HTTP |
| Profile, five posts | 250 comments in 11.048 s | Local HTTP, public embed slice |
| No-input health check, final build | Three runs, each four comments plus a summary, 2.745–6.712 s | Apify cloud, datacenter proxy |
| Photo post, final build | Five comments plus a summary, 4.290 s | Apify cloud, datacenter proxy |
| Repeated monitor workflow | 40 initial deliveries, then zero deliveries and 40 skipped IDs | Apify cloud |

These are small acceptance samples, not a reliability SLA or a speed guarantee. A direct cloud photo request received HTTP 429 before datacenter proxy became the cloud default. The final proxy runs and actual Free-plan start/comment charges were verified. Sustained 99% reliability, provider parity, actual Gold-customer billing and a cloud 1,000-comment cost benchmark remain unverified.

Profile discovery is limited to the ten-post public embed slice; exact latest-N completeness is not guaranteed. Photo extraction was tested live; short-link resolution has redirect/host-validation tests but still needs a live share-link acceptance check. Private/deleted posts return diagnostics. The proposed comments-disabled example was unavailable, so recognition of a still-public disabled post remains a live acceptance gap.

### FAQ

#### Can I scrape TikTok comments without login or cookies?

No TikTok account or user-provided cookies are needed. The Actor uses the public HTTP route and site-issued anonymous session cookies. It never asks for your TikTok password or session.

#### Does it support photo posts and short links?

Photo posts use the same comment API as videos. Short share links are followed only through validated TikTok hosts. A link that does not resolve to a supported post returns a free diagnostic.

#### Can I collect all replies?

Set `maxCommentsPerPost: 0`, `includeReplies: true` and `maxRepliesPerComment: 0`. The Actor follows the cursors TikTok exposes until the available end, spending limit, timeout or a request failure. Top-level pagination completion does not imply every reply was collected if a reply cap was configured; reply errors are explicit diagnostics.

#### How do I export TikTok comments to CSV or Excel?

Run the Actor, open its dataset and choose CSV, Excel or JSON export. The Comments overview view includes thread IDs, text, likes and creator flags. Dataset views select columns; filter `type == "comment"` downstream to remove summaries and diagnostics from a comments-only table.

#### What does a creator heart mean?

`likedByAuthor` reflects TikTok's explicit `is_author_digged` flag. It is separate from a pin, a visitor's like and whether the commenter is the post creator. Use `authorLikedOnly` to keep creator-liked rows.

#### Can I monitor only new comments?

Yes. Enable `monitorMode`, reuse `monitorStoreName` and schedule repeats separately. Saved IDs are skipped without a comment event. Missing old IDs can still appear as new workflow results.

#### Are languages and timestamps accurate?

Comment timestamps use exact TikTok Unix seconds converted to ISO UTC. Offline language detection can misclassify short, mixed-language or ambiguous text; very short comments use `und`. No translation service is called.

#### What happens with private, deleted or comments-disabled posts?

Unavailable posts return a free error and post summary, while other sources continue. Disabled comments are recognized from the explicit post metadata flag, not from a zero comment count. No comment is charged without a delivered row; a run-start fee can still apply. A real disabled-post acceptance measurement is still pending.

#### Do I need a proxy?

Cloud runs default to Apify datacenter proxy: a direct cloud photo-post request returned HTTP 429, while a proxy retry returned five comments after one session rotation. The local no-source health check runs direct without proxy credentials. You can explicitly choose direct HTTP, custom proxies or residential proxy. Requests retain one cookie jar per proxy session and rotate on blocks. Residential proxy is never enabled automatically; its developer cost can exceed the comment event revenue.

#### Is this the cheapest TikTok comments scraper?

The Free and Gold prices undercut Clockworks at those tiers. API Dojo has a lower comment rate, and Clockworks is cheaper on Platinum/Diamond. This Actor's filters, monitoring and summaries serve different workflows; compare the current Pricing tabs before running.

#### How can I report a problem?

Include the public post URL, run ID and diagnostic code through the Actor's Issues tab once deployed. Public comments can contain personal data; use the output for a legitimate purpose, respect applicable rules and review rights before reusing UGC.

# Actor input Schema

## `postUrls` (type: `array`):

Public video/photo URLs, including vm.tiktok.com and vt.tiktok.com share links.

## `profiles` (type: `array`):

@usernames or profile URLs. Reads the recent public embed slice; currently at most ten posts. Requests beyond available coverage produce a free diagnostic.

## `maxPostsPerProfile` (type: `integer`):

Maximum recent posts per profile. Current public embed coverage is ten; strict latest-N completeness is not guaranteed.

## `maxCommentsPerPost` (type: `integer`):

Delivered matching unseen comments and replies combined. 0 follows available cursors to the end, budget or timeout.

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

Fetch reply threads, even when the parent fails your filters.

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

Unique replies inspected per parent; 0 follows all available reply pages. The per-post delivery limit still applies.

## `detectLanguage` (type: `boolean`):

Offline ISO 639-3 labels such as eng and bul, und for short/uncertain text.

## `dateFrom` (type: `string`):

Inclusive date YYYY-MM-DD.

## `minLikes` (type: `integer`):

Keep rows whose reported like count meets this minimum.

## `keywords` (type: `array`):

Any matching case-insensitive substring; replies are filtered independently.

## `authorLikedOnly` (type: `boolean`):

Require an explicit creator-like flag on this comment; visitor likes and parent flags do not qualify.

## `monitorMode` (type: `boolean`):

Skip IDs previously delivered by this named monitor workflow. Schedule future runs separately.

## `monitorStoreName` (type: `string`):

Reuse for repeat runs; use separate names for independent workflows. Avoid overlapping runs.

## `proxyConfiguration` (type: `object`):

Apify datacenter proxy by default in cloud after direct egress returned HTTP 429. The local no-source health check uses direct HTTP without credentials. Explicit direct/custom/residential choices are respected; blocked sessions rotate. No automatic residential escalation.

## Actor input object example

```json
{
  "postUrls": [
    "https://www.tiktok.com/@tiktok/video/7106594312292453675"
  ],
  "profiles": [],
  "maxPostsPerProfile": 10,
  "maxCommentsPerPost": 4,
  "includeReplies": false,
  "maxRepliesPerComment": 100,
  "detectLanguage": true,
  "minLikes": 0,
  "keywords": [],
  "authorLikedOnly": false,
  "monitorMode": false,
  "monitorStoreName": "tiktok-comments-scraper-monitor",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

All mixed row types as JSON. Filter type=comment for comments and replies only.

## `comments` (type: `string`):

Comment-oriented columns of the same mixed dataset. This view does not filter row types.

## `summaries` (type: `string`):

Post-summary columns of the same mixed dataset. Keep type=postSummary for summaries only.

## `summary` (type: `string`):

Run counts, HTTP body-byte measurements and estimated event costs; not a billing invoice.

# 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/@tiktok/video/7106594312292453675"
    ],
    "maxCommentsPerPost": 4
};

// Run the Actor and wait for it to finish
const run = await client.actor("valev-lab/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 = {
    "postUrls": ["https://www.tiktok.com/@tiktok/video/7106594312292453675"],
    "maxCommentsPerPost": 4,
}

# Run the Actor and wait for it to finish
run = client.actor("valev-lab/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 '{
  "postUrls": [
    "https://www.tiktok.com/@tiktok/video/7106594312292453675"
  ],
  "maxCommentsPerPost": 4
}' |
apify call valev-lab/tiktok-comments-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,valev-lab/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/a0DArBCmf2qOsiA6J/builds/w3nbl8hQ6NVz34iOc/openapi.json
