# TikTok Video Comments Scraper: Replies & Likes, No Login (`themineworks/tiktok-video-comments-scraper`) Actor

Scrape comments and replies from TikTok videos: text, likes, reply counts, date, pinned and liked by creator flags, language, and each commenter's username, nickname, ids and avatar. Paste video links, short links or ids. No login. Works via API and MCP.

- **URL**: https://apify.com/themineworks/tiktok-video-comments-scraper.md
- **Developed by:** [The Mine Works](https://apify.com/themineworks) (community)
- **Categories:** Social media, Videos
- **Features:** Limited permissions
- **Stats:** 4 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.45 / 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 Video Comments Scraper: Comments, Replies and Likes

[![TikTok Video Comments Scraper: comments and replies from any public video](https://api.apify.com/v2/key-value-stores/cUXz95yxflDho41nn/records/tiktok-video-comments-scraper-hero.png)](https://api.apify.com/v2/key-value-stores/cUXz95yxflDho41nn/records/button-run.png)

**Part of The Mine Works Social media and video family:** [Threads Scraper](https://apify.com/themineworks/threads-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral), [Reddit Scraper](https://apify.com/themineworks/reddit-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral), [Threads Search Scraper](https://apify.com/themineworks/threads-search-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral), [Instagram Profile Scraper](https://apify.com/themineworks/instagram-profile-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral), [Instagram Followers & Following](https://apify.com/themineworks/instagram-followers-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral), [Reddit Search Scraper](https://apify.com/themineworks/reddit-search-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral).

### What does TikTok Video Comments Scraper do?

Paste TikTok video links and get the public comments back as clean rows: the text, when it was posted, its likes and reply count, whether the creator pinned it or liked it, and who wrote it (username, display name, user ids, avatar and profile link). Switch on replies and every reply comes back as its own row, linked to the comment it answers. No TikTok account, no cookies, no API key.

It is made for reading what an audience actually says: product feedback under a launch video, objections under an ad, questions under a rival's post, or a clean sample of comments for sentiment analysis. One row per comment, so the output drops straight into a spreadsheet, a BI tool or an LLM prompt.

✅ No login or cookies | ✅ Video links, share links or ids | ✅ Replies as their own rows | ✅ Pay only for comments delivered | ✅ MCP ready for AI agents

[![Run it on Apify](https://api.apify.com/v2/key-value-stores/cUXz95yxflDho41nn/records/button-run.png)](https://api.apify.com/v2/key-value-stores/cUXz95yxflDho41nn/records/button-run.png)

### Features

Reads the comments on any public TikTok video or photo post, in the order TikTok's website lists them.
Accepts full video links, app share links (vm.tiktok.com, vt.tiktok.com, tiktok.com/t/) and bare video ids, and skips duplicates.
Returns replies as separate rows with `parentCommentId`, capped per comment so one long thread cannot use up a video's limit.
Filters by comment date at no extra charge: comments older than your window are skipped and never billed.
Explains every video that gives no comments (turned off, none yet, removed, private, refused) in a free status row.

### How does it work?

The actor asks TikTok for comments the way the TikTok website does when a visitor opens a video, from a US connection, one page of up to 50 comments per request. There is no browser, no login and no cookie to set up, which is why it is fast and cheap. Comments are read page by page until your limit for that video is reached or TikTok has no more. If TikTok refuses a request, the actor moves to a new connection and tries again.

TikTok answers a request it will not serve with an empty page, which looks a lot like "no comments". The actor never takes that at face value. When a video's first page is empty, it reads the video itself to find out why: comments switched off, no comments yet, removed or private. Each of those gets a free status row. If the video shows comments but TikTok still returns none, the actor retries on a fresh connection and, if that fails too, marks the video `blocked`. You are not charged for any of it.

### How do I scrape comments from a TikTok video?

Put one or more videos in **TikTok videos**, one per line. Links, share links from the app and plain video ids all work.

```json
{
  "videos": [
    "https://www.tiktok.com/@traxnyc/video/7612802409273806110",
    "https://vm.tiktok.com/ZTR45GpSF/",
    "7685827766373207326"
  ],
  "maxCommentsPerVideo": 200,
  "includeReplies": true,
  "maxRepliesPerComment": 5,
  "newerThanDays": 30
}
```

| Input | Default | What it does |
| --- | --- | --- |
| `videos` | none | Video links, share links (vm.tiktok.com, vt.tiktok.com, tiktok.com/t/) or video ids. Up to 1,000 per run. Profile and hashtag links are not videos: they get a free `invalid_input` row |
| `maxCommentsPerVideo` | 100 | Most rows per video, from 1 to 5,000. Replies count toward it, so this is also the most you can be charged per video. TikTok lists roughly the first 350 top level comments of any video, so on a very large video expect about that many comments plus their replies |
| `includeReplies` | false | Also return the replies under each comment, as their own rows |
| `maxRepliesPerComment` | 10 | Most replies under any one comment. Setting it also switches replies on; 0 keeps them off |
| `newerThanDays` | empty | Keep only comments posted in the last N days. Older ones are skipped and never charged |

Input copied from other TikTok tools works as is: `postURLs`, `videoUrls`, `startUrls`, `urls` and `videoIds` are read as the video list, and `commentsPerPost` as the per video limit. Rows exported by a TikTok video scraper (objects with `id` or `webVideoUrl`) can be pasted straight into `videos` through the API.

### What data do I get for each comment?

One row per comment or reply. Field names and types below are exact; the values are illustrative.

```json
{
  "commentId": "7685901000000000001",
  "videoId": "7685827766373207326",
  "videoUrl": "https://www.tiktok.com/@kendylbrookie/video/7685827766373207326",
  "text": "where is this ring from??",
  "createTime": 1789500000,
  "createTimeISO": "2026-09-15T19:20:00.000Z",
  "diggCount": 1520,
  "replyCount": 3,
  "isReply": false,
  "isPinned": true,
  "likedByCreator": true,
  "language": "en",
  "authorUsername": "ringlover",
  "authorNickname": "Ring Lover",
  "authorId": "6800000000000000001",
  "authorSecUid": "MS4wLjABAAAA...",
  "authorAvatarUrl": "https://p16-sign-va.tiktokcdn.com/...",
  "authorProfileUrl": "https://www.tiktok.com/@ringlover",
  "sourceInput": "7685827766373207326",
  "scrapedAt": "2026-09-27T12:30:27.282Z"
}
```

| Field | What it holds |
| --- | --- |
| `commentId`, `videoId`, `videoUrl` | The comment's id and the video it is on |
| `text` | The comment text (empty for a sticker or image only comment) |
| `createTime`, `createTimeISO` | When it was posted, as Unix seconds and ISO 8601 UTC |
| `diggCount` | Likes on the comment |
| `replyCount` | Replies under it (top level comments) |
| `isReply`, `parentCommentId`, `replyToCommentId` | For replies: the comment it sits under and, for a reply to a reply, the one it answers |
| `isPinned`, `likedByCreator` | Pinned by the creator; liked by the creator |
| `language`, `labels` | Language TikTok detected; labels TikTok shows on the comment, such as Creator |
| `authorUsername`, `authorNickname` | The commenter's handle and display name |
| `authorId`, `authorSecUid` | The commenter's numeric user id and secUid, to join with profile data |
| `authorAvatarUrl`, `authorProfileUrl` | Avatar image (a signed link that expires) and profile link |
| `sourceInput`, `scrapedAt` | The input line the video came from, and when the row was collected |

A field TikTok does not send for a comment is left out of that row rather than filled with a guess.

**Status rows.** A video that gives no comments gets one row with `_type: "skipped"`, a `status` and a plain `reason`: `comments_off`, `no_comments`, `video_unavailable`, `video_private`, `none_in_date_window`, `blocked`, `error`, `stopped` or `invalid_input`. These rows are never charged. Filter them out with `_type` if you only want comments.

**Run summary.** The key-value store record `OUTPUT` has per video counts (delivered, comments, replies, filtered by date, duplicates, pages read), the number of requests made, and whether TikTok refused anything.

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

You pay per comment or reply delivered to your dataset. Compute and proxies are included, and there is no start fee.

| Apify plan | Per comment | Per 1,000 comments |
| --- | --- | --- |
| Free | $0.00112 | $1.12 |
| Starter (Bronze) | $0.0009 | $0.90 |
| Scale (Silver) | $0.00067 | $0.67 |
| Business (Gold) and above | $0.00045 | $0.45 |

What real jobs cost:

| Job | Free | Starter | Scale | Business |
| --- | --- | --- | --- | --- |
| 100 comments from one video | $0.11 | $0.09 | $0.07 | $0.05 |
| 20 videos, 250 comments each (5,000) | $5.60 | $4.50 | $3.35 | $2.25 |
| 50,000 comments with replies | $56 | $45 | $33.50 | $22.50 |

Apify's $5 free monthly credit covers about 4,400 comments at the Free plan price. The Pricing tab always shows the rate for your own plan and wins if it ever differs from this table.

**Charged:** each comment or reply row that reaches your dataset.

**Never charged:** status rows, comments outside your date window, duplicates, comments TikTok hides, failed or empty requests, and anything TikTok refused. Charges are reserved against your run's maximum charge before rows are saved, so a run never delivers more comments than your limit pays for.

### What can I use TikTok comments for?

**Product feedback.** Read what buyers say under your launch, unboxing and review videos. Sort by `diggCount` to see which complaints and praise the audience agrees with.

**Sentiment analysis.** Feed `text` and `language` to a classifier or an LLM. One row per comment, with dates, makes trend lines over weeks simple.

**Competitor and ad research.** Pull the comments under a rival's best performing videos or ads to find objections, questions and unmet wants you can answer.

**Influencer vetting.** Check whether a creator's comments come from a real, engaged audience or read like bots, before you pay for a post.

**Community management.** Find the questions still waiting for an answer: with replies switched on, `replyCount` and the reply rows show which comments got a response and which did not.

### How do I get started?

1. Open the actor and paste your TikTok video links into **TikTok videos**.
2. Set **Max comments per video**, and switch on **Include replies** if you want the threads.
3. Optionally set **Only comments from the last N days**.
4. Click **Start**. Comments appear in the dataset as each page is read.
5. Export as CSV, Excel or JSON, or read the dataset through the API.

### FAQ

#### Can I get the replies to each comment?

Yes. Switch on **Include replies**. Each reply is its own row with `isReply: true` and `parentCommentId` set to the comment it answers, and a reply to a reply also carries `replyToCommentId`. `maxRepliesPerComment` (10 unless you set it) caps each thread, and replies count toward `maxCommentsPerVideo`.

#### Does it work with vm.tiktok.com share links?

Yes. Share links from the app (vm.tiktok.com, vt.tiktok.com and tiktok.com/t/) are opened once to find the video they point to. If two inputs turn out to be the same video, it is read once.

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

Check its status row. `comments_off` means the creator switched comments off or limited them, `no_comments` means nobody has commented yet, `video_unavailable` and `video_private` mean TikTok will not show the video to a visitor, and `none_in_date_window` means it has comments but none inside your date filter. `blocked` means TikTok refused the request; try again later. None of these are charged.

#### Can I get only recent comments?

Yes. Set `newerThanDays`, for example 7 for the last week. Each comment's own post date is checked, older comments are skipped without charge, and the actor stops paging a video after 5 pages in a row with nothing inside your window.

#### How many comments can I get from one video?

Up to 5,000 rows per video per run, replies included. TikTok's public comment list stops after roughly 350 top level comments on every video, even one that shows tens of thousands, so that is the practical ceiling for comments; replies come on top when you switch them on. When the list ends early the run summary shows how many pages were read, and you pay only for what arrived.

#### Am I charged when TikTok blocks a request?

No. A refused request, an empty answer, a failed page and every status row are free. Only comment and reply rows that reach your dataset are charged, and each one is charged once.

#### Do I need a TikTok account, cookies or an API key?

No. The actor reads what TikTok shows a visitor who is not logged in. There is nothing of yours to connect, so nothing of yours can be blocked.

#### Which countries does it work from?

The actor reads TikTok from the United States. Comments come back from commenters anywhere in the world; a video that TikTok does not show in the US is reported as `video_unavailable`.

#### Can I feed it the videos from a hashtag or search scrape?

Yes. Run a TikTok hashtag or search scraper, then pass its rows (or just their video links or ids) into `videos`. Rows with an `id` or `webVideoUrl` field are understood directly when you call the actor through the API.

#### Can I run it on a schedule?

Yes. In Apify Console open this actor, go to Schedules, add a schedule, pick how often and save. It reruns with the same input. Combine it with `newerThanDays: 1` on a daily schedule to collect each day's new comments.

### Use in Claude, ChatGPT and any MCP agent

Add it to Claude Code in one line:

```bash
claude mcp add --transport http apify "https://mcp.apify.com/?tools=themineworks/tiktok-video-comments-scraper"
```

Or point any MCP client at:

```
https://mcp.apify.com/?tools=themineworks/tiktok-video-comments-scraper
```

Paste this into an assistant connected to Apify's MCP:

> Use the Apify actor themineworks/tiktok-video-comments-scraper to get the 200 most recent comments, with replies, from https://www.tiktok.com/@traxnyc/video/7612802409273806110. Group them by theme and list the top questions people ask.

Or call it from code:

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

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('themineworks/tiktok-video-comments-scraper').call({
    videos: ['https://www.tiktok.com/@traxnyc/video/7612802409273806110'],
    maxCommentsPerVideo: 200,
    includeReplies: true,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
const comments = items.filter((row) => !row._type);
console.log(comments.length, 'comments');
```

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("themineworks/tiktok-video-comments-scraper").call(run_input={
    "videos": ["7685827766373207326"],
    "maxCommentsPerVideo": 100,
    "newerThanDays": 30,
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    if "_type" not in row:
        print(row["diggCount"], row["text"])
```

### What are the limitations?

Public videos only: private, removed and login only videos are reported, not read.
The actor reads TikTok from the US, so a video TikTok does not show in the US cannot be read.
Comments come in the order TikTok's website lists them; there is no sort by newest, so the date filter reads pages until it runs out of recent comments.
Comments TikTok itself hides from visitors are skipped.
TikTok changes its site often. If it starts refusing requests, affected videos get a free `blocked` row and the run stops after three refused videos in a row instead of retrying forever.

### Is it legal to scrape TikTok comments?

This actor collects only comments that TikTok shows publicly to any visitor, and it never logs in. Courts in the United States have found that accessing publicly available data is unlikely to breach the Computer Fraud and Abuse Act (*hiQ Labs v. LinkedIn*), but platform terms and privacy laws such as GDPR and CCPA still apply to how you store and use personal data like usernames. Use the data responsibly and get advice for your own situation. This is not legal advice.

### More from The Mine Works

**Social media and video**

- [Threads Scraper](https://apify.com/themineworks/threads-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Reddit Scraper](https://apify.com/themineworks/reddit-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Threads Search Scraper](https://apify.com/themineworks/threads-search-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Instagram Profile Scraper](https://apify.com/themineworks/instagram-profile-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Instagram Followers & Following](https://apify.com/themineworks/instagram-followers-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Reddit Search Scraper](https://apify.com/themineworks/reddit-search-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Twitter / X Scraper](https://apify.com/themineworks/twitter-x-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [YouTube Transcript](https://apify.com/themineworks/youtube-transcript-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Xiaohongshu (RED) Scraper](https://apify.com/themineworks/xiaohongshu-explore-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Telegram Channel Scraper](https://apify.com/themineworks/telegram-channel-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Telegram Channel Finder](https://apify.com/themineworks/telegram-channel-finder?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Pinterest Profile Scraper](https://apify.com/themineworks/pinterest-profile-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

**Leads and business directories**

- [B2B Leads Finder](https://apify.com/themineworks/b2b-leads-finder?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Skip Trace Lookup](https://apify.com/themineworks/skip-trace-lookup?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Google Maps Email Scraper](https://apify.com/themineworks/maps-leads?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [2GIS Places Scraper](https://apify.com/themineworks/2gis-places-search?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

**Marketing, SEO and reviews**

- [Facebook Ad Library Scraper](https://apify.com/themineworks/meta-ad-library-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Google Ads Transparency Scraper](https://apify.com/themineworks/google-ads-transparency?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Similarweb Scraper](https://apify.com/themineworks/similarweb-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Google News Scraper](https://apify.com/themineworks/google-news?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

**LinkedIn**

- [LinkedIn Company Scraper](https://apify.com/themineworks/linkedin-company-details?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [LinkedIn Post Scraper](https://apify.com/themineworks/linkedin-post-search?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [LinkedIn Employees Scraper](https://apify.com/themineworks/linkedin-employees?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [LinkedIn Profile Scraper](https://apify.com/themineworks/linkedin-profile-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

**Real estate**

- [Zillow Rentals Scraper](https://apify.com/themineworks/zillow-rental-listings?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Zillow Sold Comps Scraper](https://apify.com/themineworks/zillow-recently-sold?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [India Real Estate MCP](https://apify.com/themineworks/india-real-estate-mcp?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Housing.com Scraper](https://apify.com/themineworks/housing-com-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

**Science, health and government data**

- [Academic Research MCP](https://apify.com/themineworks/academic-research-mcp?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [CourtListener Scraper](https://apify.com/themineworks/courtlistener-court-records?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Socrata Open Data Scraper](https://apify.com/themineworks/socrata-open-data?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [OpenAlex Scraper](https://apify.com/themineworks/openalex-scholarly-works?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

**Jobs and hiring**

- [Foundit Monster India Jobs](https://apify.com/themineworks/foundit-jobs-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Hirist Jobs Scraper](https://apify.com/themineworks/hirist-jobs-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [India Jobs MCP](https://apify.com/themineworks/india-jobs-mcp?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Naukri Jobs Scraper](https://apify.com/themineworks/naukri-jobs?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

**Company and business data**

- [Company Domain Finder](https://apify.com/themineworks/company-domain-finder?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [GST Taxpayer Lookup](https://apify.com/themineworks/gst-taxpayer-lookup?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Company KYB Resolver](https://apify.com/themineworks/company-identity-resolver?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [SEC EDGAR Filings Scraper](https://apify.com/themineworks/sec-edgar-filings?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

**E-commerce and marketplaces**

- [Ozon.ru Scraper](https://apify.com/themineworks/ozon-product-search?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [⭐ Amazon Reviews Scraper](https://apify.com/themineworks/amazon-reviews?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Amazon Product Scraper](https://apify.com/themineworks/amazon-products?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Etsy Listings Scraper](https://apify.com/themineworks/etsy-search-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

**Food and local services**

- [NoBroker Scraper](https://apify.com/themineworks/nobroker-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Swiggy Restaurant Scraper](https://apify.com/themineworks/swiggy-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Zomato Scraper](https://apify.com/themineworks/zomato-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

**Developer and AI tools**

- [Website to Markdown Crawler](https://apify.com/themineworks/rag-crawler?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [GitHub Skill Finder](https://apify.com/themineworks/github-skill-discovery?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [GitHub Repo Scraper](https://apify.com/themineworks/github-repo-intelligence?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [GitHub Trending Scraper](https://apify.com/themineworks/github-trending-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

**More tools**

- [G2 Reviews Scraper](https://apify.com/themineworks/g2-reviews-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Naver Blog Scraper](https://apify.com/themineworks/naver-blog-posts-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [WeChat Article Scraper 微信公众号文章](https://apify.com/themineworks/wechat-article-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Taobao Products Scraper 淘宝 天猫](https://apify.com/themineworks/taobao-products-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

### Support

Found a bug or need a field? Open an issue on the Issues tab with the input that did not work. Found this useful? A quick Store review helps other buyers find it.

TikTok is a trademark of its owner. This actor is not affiliated with, endorsed by or sponsored by TikTok.

# Actor input Schema

## `videos` (type: `array`):

TikTok videos to read comments from, one per line. Paste the video link (https://www.tiktok.com/@user/video/7...), a share link from the app (vm.tiktok.com/..., vt.tiktok.com/... or tiktok.com/t/...), or just the video id. Photo posts work too. Profile and hashtag links are not videos and are skipped for free.

## `maxCommentsPerVideo` (type: `integer`):

Most comment rows to return for EACH video. When replies are on, replies count toward this number too, so it is the most you can be charged per video. TikTok shows comments in its own relevance order, the same order as the app, and lists roughly the first 350 top level comments of a video.

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

Also return the replies under each comment, as their own rows with parentCommentId set to the comment they answer. Each reply is charged like a comment and counts toward Max comments per video.

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

The most replies to return under any one comment, so one busy thread cannot use up the whole video's limit. Leave empty for 10. Setting a number here also turns replies on; set 0 to leave them off.

## `newerThanDays` (type: `integer`):

Keep only comments (and replies) posted in the last N days, based on each comment's own date. Older comments are skipped and never charged. Leave empty to get comments of any age.

## Actor input object example

```json
{
  "videos": [
    "https://www.tiktok.com/@traxnyc/video/7612802409273806110"
  ],
  "maxCommentsPerVideo": 50,
  "includeReplies": false
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `summary` (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 = {
    "videos": [
        "https://www.tiktok.com/@traxnyc/video/7612802409273806110"
    ],
    "maxCommentsPerVideo": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("themineworks/tiktok-video-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 = {
    "videos": ["https://www.tiktok.com/@traxnyc/video/7612802409273806110"],
    "maxCommentsPerVideo": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("themineworks/tiktok-video-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 '{
  "videos": [
    "https://www.tiktok.com/@traxnyc/video/7612802409273806110"
  ],
  "maxCommentsPerVideo": 50
}' |
apify call themineworks/tiktok-video-comments-scraper --silent --output-dataset

```

## MCP server setup

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