TikTok Comments Scraper avatar

TikTok Comments Scraper

Try for free

Pay $2.00 for 1,000 results

Go to Store
TikTok Comments Scraper

TikTok Comments Scraper

alien_force/tiktok-scraper-with-comments
Try for free

Pay $2.00 for 1,000 results

Scrape TikTok videos data along with their comments and replies. This powerful tool helps you extract structured data from TikTok URLs, including the video details, user, comments, and replies.

TikTok Video Scraper with Comments

Overview

The TikTok Video Scraper with Comments is an Apify actor that allows you to scrape TikTok video data along with their comments and replies. This powerful tool helps you extract structured data from TikTok URLs, including the video details, user comments, and replies.

Key Features

  • TikTok Video Data Extraction: The actor scrapes the video details, including the URL, author, and metadata, even if no comments are present.
  • Customizable Comments Limit: Specify the number of comments to retrieve for each TikTok video.
  • Replies to Comments: Configure the number of replies fetched for each comment or disable it for performance optimization.

⚠️ Important Feature Highlight ⚠️

Integrated Video Data in Comments

  • If includeVideoInFirstComment is checked: The TikTok video details are embedded within the first comment object for each scraped TikTok url. If no comments exist, the video details will be included in one dummy comment object to ensure consistency.
  • If includeVideoInFirstComment is NOT checked: The TikTok video details are excluded from the comment object entirely, and only the standard dataset fields (without embedding the video in comments) are provided.

Input Schema

Input Properties

  1. startUrls (required)

    • Type: array
    • Description: List of TikTok video URLs to scrape.
    • Example:
      1[
      2    {
      3        "url": "https://www.tiktok.com/@therock/video/7456475589663362350"
      4    }
      5]
  2. commentsLimit (optional)

    • Type: integer
    • Description: Maximum number of comments to scrape per video.
    • Default: 100
  3. oneCommentRepliesLimit (optional)

    • Type: integer
    • Description: Maximum number of replies to scrape for each comment. Setting this to 0 disables replies fetching.
    • Default: 0

Input Exmaple

1{
2    "startUrls": [
3        {
4            "url": "https://www.tiktok.com/@therock/video/7456475589663362350"
5        }
6    ],
7    "commentsLimit": 100,
8    "oneCommentRepliesLimit": 0
9}

Output Schema

Properties

FieldTypeDescription
tiktok_videojsonTikTok video details (embedded in the first comment).
originUrlstringThe provided TikTok video URL.
textstringText content of the comment.
idstringUnique identifier for each comment.
isPinnedbooleanWhether the comment is pinned.
createdTimedateTimestamp when the comment was created.
commentLangstringLanguage of the comment text.
authorUsernamestringUsername of the comment author.
authorNicknamestringNickname of the comment author.
authorPicUrlstringProfile picture URL of the comment author.
diggCountintegerNumber of likes on the comment.
diggedByAuthorbooleanIndicates if the comment is liked by the author.
repliesCountintegerTotal number of replies to the comment.
reply_to_nicknamestringNickname of the user the comment replied to.
reply_idstringUnique identifier for the reply.
repliesjsonArray of replies to the comment.

Output Example

1[
2    {
3        "originUrl": "https://www.tiktok.com/@therock/video/7456475589663362350",
4        "id": "7456661078770238251",
5        "text": "Damn I knew he would be there. At this rate I’ll never see the rock live 🙁",
6        "isPinned": false,
7        "createdTime": 1736139219,
8        "commentLang": "en",
9        "authorUsername": "urios89",
10        "authorNickname": "Uvi",
11        "authorPicUrl": "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/5c1eae0941349e5fbd8f5682667a0ae1~c5_100x100.jpg?lk3s=30310797&nonce=86834&refresh_token=c88463d49450d655affff04af15ffe44&x-expires=1737169200&x-signature=lP%2BdLg598IFCsEoH%2BkdUlh2uwdg%3D&shp=30310797&shcp=-",
12        "diggCount": 21,
13        "diggedByAuthor": false,
14        "repliesCount": 1,
15        "reply_to_nickname": null,
16        "reply_id": "0",
17        "replies": [
18            {
19                "id": "7456858126559281925",
20                "text": "Your energy fuels me every day, and I’m truly grateful. On behalf of my new title as a High chief. I’m giving back to my amazing fans with an exciting giveaway. send interested to me now ❤️",
21                "isPinned": false,
22                "createdTime": 1736185095,
23                "commentLang": "en",
24                "authorUsername": "therock_fans_followup",
25                "authorNickname": "The Rock Dwayne Johnson 🔵",
26                "authorPicUrl": "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/0906962ead0397e4557cca6ffa3aa8fd~c5_100x100.jpg?lk3s=30310797&nonce=18973&refresh_token=b2c4c604114003dc919499072b900b02&x-expires=1737169200&x-signature=v5Dy0yXMSKTIb%2B1pQffmHLvXlzs%3D&shp=30310797&shcp=-",
27                "diggCount": 0,
28                "diggedByAuthor": false,
29                "repliesCount": 0,
30                "reply_to_nickname": null,
31                "reply_id": "7456661078770238251",
32                "replies": []
33            }
34        ],
35        "tiktok_video": {
36            "id": "7456475589663362350",
37            "description": "Besides having my three daughters, my Samoan High Chief Title, High Chief Seiuli is one of the greatest honor of my life. I gave my word and made a commitment 20 years ago to his Highness High Chief Maleatoa Tunamafili II and to our people of Samoa, that I would “leave my boyish ways behind” (well, I try 😅) and carry my Samoan, Polynesian, and Black culture around the world with great respect, pride, kindness, MANA, humility, and warrior spirit. Fa’a Samoa (the Samoan way) After 20yrs of proudly carrying our culture with me around the world, I can’t wait to soon return back home to Samoa. I already have chills just thinking about it 🇼🇸❤️💪🏾 Until then, I’ll come back home to @WWE tomorrow night as we make history on @Netflix and begin a new and exciting era. Tomorrow night is dedicated to my grandfather, the High Chief Peter Maivia, my grandmother, Lia Maivia and my dad, Rocky “Soulman” Johnson and my ancestors who have ALL paved the way. ~ High Chief Seiuli",
38            "createdTime": "1736096020",
39            "url": "https://www.tiktok.com/@therock/video/7456475589663362350",
40            "duration": 69,
41            "originCover": "https://p19-sign.tiktokcdn-us.com/obj/tos-useast5-p-0068-tx/okheDfeRIEakIRuycAOAFCN6ICjrA29wlHYImP?lk3s=81f88b70&x-expires=1737255600&x-signature=EsOQ1G5MXtqqP6gzI7wqyckYAQQ%3D&shp=81f88b70&shcp=-",
42            "dynamicCover": "https://p19-sign.tiktokcdn-us.com/obj/tos-useast5-p-0068-tx/ooyFwIC9IIjkRh8RJfec6IrmOR5uNDWseAEAAH?lk3s=81f88b70&x-expires=1737255600&x-signature=ODrRGCYTJANoeZufxTHxJ%2Bm0Vio%3D&shp=81f88b70&shcp=-",
43            "diggCount": "90600",
44            "shareCount": "4730",
45            "commentCount": "3087",
46            "playCount": "1000000",
47            "collectCount": "5631",
48            "hashtags": [],
49            "keywordTags": [],
50            "author": {
51                "id": "6745191554350760966",
52                "uniqueId": "therock",
53                "name": "The Rock",
54                "profile_url": "https://www.tiktok.com/@therock",
55                "profile_picture_url": "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/7310325298631802885~c5_1080x1080.jpeg?lk3s=a5d48078&nonce=91521&refresh_token=b4eb0d31d5e81ae361a59b3847b5f7d5&x-expires=1737255600&x-signature=46ol4xAqCCMxLgzA58zAmYpKUi8%3D&shp=a5d48078&shcp=81f88b70",
56                "bio": "CEO of #RockTok\nLife’s so much sweeter when you’re not an asshole",
57                "verifiedAccount": true,
58                "privateAccount": false,
59                "followerCount": 76000000,
60                "followingCount": 0,
61                "heart": 582700000,
62                "heartCount": 582700000,
63                "videoCount": 403,
64                "diggCount": 15,
65                "friendCount": 0
66            },
67            "music": {
68                "id": "7456475548458847018",
69                "title": "original sound",
70                "playUrl": "https://v77.tiktokcdn.com/89533797dbc9743c0df2d4642e467675/678a1ddd/video/tos/maliva/tos-maliva-ve-27dcd7c799-us/oQEsLBToIHEfRM16QODAph1fkCFkWueDrQKW0l/?a=1233&bti=ODszNWYuMDE6&ch=0&cr=0&dr=0&er=0&lr=default&cd=0%7C0%7C0%7C0&br=250&bt=125&ft=.NpOcInz7ThwxZPOXq8Zmo&mime_type=audio_mpeg&qs=6&rc=Ozo7PDY1ZTZkNmgzZWRlZ0BpanBxZ2w5cjhldzMzZzU8NEBfXjIzXzQtNjMxM2AwYV9eYSNkcjFxMmRrZnFgLS1kMS9zcw%3D%3D&vvpl=1&l=20250117030631820957AA04C506409D5F&btag=e00090000&cc=13",
71                "coverThumb": "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/7310325298631802885~c5_100x100.jpeg?lk3s=a5d48078&nonce=48482&refresh_token=0b565f603dc7e2e592e5e269b72f61c1&x-expires=1737255600&x-signature=FiRmOm0xFuCQie6MBhLkCw%2FIWto%3D&shp=a5d48078&shcp=81f88b70",
72                "authorName": "The Rock",
73                "original": false,
74                "duration": 69,
75                "isCopyrighted": false
76            }
77        }
78    }
79]
Developer
Maintained by Community

Actor Metrics

  • 9 monthly users

  • 1 bookmark

  • >99% runs succeeded

  • Created in Jan 2025

  • Modified 4 hours ago