How to Scrape TikTok Comments and Replies: Step-by-Step Tutorial with Screenshots

TikTok Comment Scraper takes TikTok video URLs (or just the video IDs) and returns every comment as a row: the text, like count, reply count, language, timestamp and the commenter’s profile. Turn on replies and each reply comes back as its own row, linked to the comment it answers. You don’t need a TikTok account or proxies.

For this tutorial I ran it on two Lady Gaga videos with replies turned on. It returned 71 rows (37 comments + 34 replies) in 10 seconds for $0.021. The whole flow in 90 seconds:

Below are the same steps with a screenshot for each.

What you get

Field Example Meaning
text Just creepin’ it real 💚 The comment or reply text
digg_count 26512 Likes on the comment
reply_comment_total 52 Replies the comment has on TikTok
reply_id "0" or a comment cid "0" for a top-level comment, otherwise the cid of the parent comment
create_time 1742311990 Unix timestamp
comment_language en Detected language
user unique_id, nickname, avatar… The commenter’s public profile
aweme_id 7482895727757102382 The video the comment belongs to

Mentions and hashtags inside the comment are in text_extra, and share_info.url is a direct link to the comment.

Step 1: Open the Actor and click “Try for free”

Go to the Actor page on Apify and click Try for free. If you don’t have an account yet, sign up first. The free plan’s monthly credit covers thousands of comments with this Actor.

TikTok Comment (Replies) Scraper page on the Apify Store with the Try for free button

Step 2: Add the video URLs

The Actor opens in Apify Console with an example video already filled in. The quickest way to add your own list is Bulk edit under Video URLs or IDs: paste one URL per line and click Set. Both forms work:

Bulk edit dialog with two TikTok video URLs, one per line

Step 3: Set replies and limits

Three settings decide how much you get:

Scrape all (unlimited) ignores both limits and takes every comment and every reply. On a viral video that can be a very large number of rows, so set Maximum cost per run under Run options first.

Input form with Scrape replies on, Max comments 20 and Max replies 3

Step 4: Or paste the input as JSON

Switch the editor to JSON if you prefer to paste the whole input. This is the input I used:

{
    "urls": [
        "https://www.tiktok.com/@ladygaga/video/7211250685902359850",
        "https://www.tiktok.com/@ladygaga/video/7482895727757102382"
    ],
    "shouldScrapeReplies": true,
    "maxItems": 20,
    "maxRepliesPerComment": 3,
    "shouldScrapeAll": false
}

The same input in the JSON editor

The same JSON works as the request body when you start the Actor from the API (see Run it from code).

Step 5: Run it and check the results

Click Save & start. My run finished in 10 seconds with 71 results and cost $0.021 on the free plan.

The Comments view of the Output tab shows the comment, username, nickname, likes, replies, creation time, language and video ID. Switch to All fields to see every column.

Run succeeded with 71 results, $0.021 and 10 s, and the Comments table with likes, replies and language

The most-liked comment on the newer video had about 36K likes. A top-level comment and one of its replies look like this (shortened):

[
  {
    "cid": "7483172861290431278",
    "aweme_id": "7482895727757102382",
    "text": "Just creepin’ it real 💚",
    "digg_count": 26512,
    "reply_comment_total": 52,
    "reply_id": "0",
    "create_time": 1742311990,
    "comment_language": "en",
    "user": { "unique_id": "monsterhigh", "nickname": "Monster High" }
  },
  {
    "cid": "7483220100482515758",
    "text": "We need a video of the BTW Monster High doll doing this choreo",
    "digg_count": 78,
    "reply_id": "7483172861290431278"
  }
]

To keep only top-level comments, filter reply_id to "0". To rebuild the threads, group replies by reply_id.

Step 6: Export to CSV, Excel or JSON

Click Export, pick a view (Comments for the main columns, All fields for everything) and a format: JSON, CSV, XML, Excel, HTML Table, RSS or JSONL. You can also pick or leave out fields.

Export dataset dialog with the Comments view and CSV selected

Run it from code

Get your API token from Settings > API & Integrations in Apify Console, then use the official client.

Python (pip install apify-client):

from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")

run = client.actor("xtdata/tiktok-comment-scraper").call(run_input={
    "urls": ["https://www.tiktok.com/@ladygaga/video/7482895727757102382"],
    "maxItems": 100,
    "shouldScrapeReplies": True,
    "maxRepliesPerComment": 10,
})

for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    kind = "comment" if row["reply_id"] == "0" else "reply"
    print(kind, row["digg_count"], row["text"])

Node.js (npm install apify-client):

import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('xtdata/tiktok-comment-scraper').call({
    urls: ['7482895727757102382'],
    maxItems: 100,
    shouldScrapeReplies: true,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
const comments = items.filter((row) => row.reply_id === '0');
console.log(comments.length, 'comments,', items.length - comments.length, 'replies');

To track the same videos over time, save the input as a Task and add a Schedule. The Integrations tab can send each run’s results to Google Sheets, Slack, Make, Zapier or n8n.

Pricing

You pay per result, with no subscription:

Event Free plan Paid plans
Each comment (or reply) $0.30 per 1,000 down to $0.25 per 1,000
Actor start $0.0001 per run $0.00009

With replies on, every reply is a result too. Set Maximum cost per run under Run options if you want a hard spending cap.

Tips

FAQ

Do I need a TikTok account or cookies? No. The Actor reads public comments only.

Do I need proxies? No.

How many comments can I get per run? Set Max comments (per post) for each video, or turn on Scrape all to take every comment and reply.

Ready to try it? Open TikTok Comment Scraper on Apify. Your first runs fit easily into the free credit.