Tiktok Comments Scraper avatar

Tiktok Comments Scraper

Try for free

3 days trial then $15.00/month - No credit card required now

View all Actors
Tiktok Comments Scraper

Tiktok Comments Scraper

epctex/tiktok-comment-scraper
Try for free

3 days trial then $15.00/month - No credit card required now

Effortlessly scrape Tiktok data: comments, users, and all the other insights. Overcome API limitations, and ensure real-time monitoring for seamless extraction.

Actor - Tiktok Comments Scraper

Tiktok Comments scraper

Since Tiktok doesn't provide a good and free API, this actor should help you to retrieve data from it.

The Tiktok Comments data scraper supports the following features:

  • Unlock Tiktok Insights - Gain comprehensive insights from Tiktok videos with ease.

  • Efficient Data Retrieval - Extract comments, user details, and music information using minimal input parameters.

  • Overcome API Limitations - Sidestep Tiktok's API restrictions and access valuable data effortlessly.

  • In-Depth Comment Details - Gather author info, timestamps, likes, and more for each comment.

  • Streamlined Scraping - Scrape multiple videos seamlessly, manage pagination, and set proxy configurations effortlessly.

Bugs, fixes, updates and changelog

This scraper is under active development. If you have any feature requests you can create an issue from here.

Input Parameters

The input of this scraper should be JSON containing the list of pages on Tiktok Comments that should be visited. Possible fields are:

  • startUrls: (Required) (Array) List of Tiktok video URLs. You should only provide the URLs of videos.

  • maxItems: (Optional) (Number) You can limit scraped comments. This should be useful when you search through the videos where there are a lot of comments.

  • endPage: (Optional) (Number) The end page limitation for the comments. You can limit the number of pages you want to retrieve the comments from. The endPage effects each of the video URLs individually.

  • proxy: (Required) (Proxy Object) Proxy configuration.

This solution requires the use of Proxy servers, either your own proxy servers or you can use Apify Proxy.

Compute Unit Consumption

The actor optimized to run blazing fast and scrape many as listings as possible. Therefore, it forefronts all listing detail requests. If actor doesn't block very often it'll scrape 100 listings in 1 minute with ~0.03-0.05 compute units.

Tiktok Comments Scraper Input example

1{
2  "startUrls": [
3    "https://www.tiktok.com/@deborahyowa/video/7173615947603922181?is_copy_url=1&is_from_webapp=v1",
4    "https://www.tiktok.com/@argenby/video/7171782248281165058?is_copy_url=1&is_from_webapp=v1",
5    "https://www.tiktok.com/@cznburak/video/7161858444830461190?is_copy_url=1&is_from_webapp=v1"
6  ],
7  "customMapFunction": "(object) => { return {...object} }",
8  "maxItems": 200,
9  "endPage":1,
10  "proxy": {
11    "useApifyProxy": true
12  }
13}

During the Run

During the run, the actor will output messages letting you know what is going on. Each message always contains a short label specifying which page from the provided list is currently specified. When items are loaded from the page, you should see a message about this event with a loaded item count and total item count for each page.

If you provide incorrect input to the actor, it will immediately stop with failure state and output an explanation of what is wrong.

Tiktok Comments Export

During the run, the actor stores results into a dataset. Each item is a separate item in the dataset.

You can manage the results in any languague (Python, PHP, Node JS/NPM). See the FAQ or our API reference to learn more about getting results from this Tiktok Comments actor.

Other Tiktok Scrapers

If you need different functionalities or all at once, we have solutions for each of them. You can check;

Scraped Tiktok Comments Properties

The structure of each comment in Tiktok Comments looks like this:

Comment Detail

1{
2	"author_pin": false,
3	"aweme_id": "7171782248281165058",
4	"cid": "7171787686901465902",
5	"collect_stat": 0,
6	"comment_language": "en",
7	"create_time": 1669811972,
8	"digg_count": 42526,
9	"image_list": null,
10	"is_author_digged": false,
11	"label_list": null,
12	"no_show": false,
13	"reply_comment": null,
14	"reply_comment_total": 268,
15	"reply_id": "0",
16	"reply_to_reply_id": "0",
17	"share_info": {
18		"acl": {
19			"code": 1,
20			"extra": "{\"item_share_acl\":\"empty item value\"}"
21		},
22		"desc": "alexのコメント: This is the actual meaning of sigma",
23		"title": "Sigma must respect everyone… @ayazkyzz @aman4ek ",
24		"url": "https://m.tiktok.com/v/7171782248281165058.html?_d=e9hlia25ee8a8f&comment_author_id=7105545617678664750&preview_pb=0&share_comment_id=7171787686901465902&share_item_id=7171782248281165058&sharer_language=ja-JP&source=h5_m&u_code=0"
25	},
26	"status": 1,
27	"stick_position": 0,
28	"text": "This is the actual meaning of sigma",
29	"text_extra": [],
30	"trans_btn_style": 1,
31	"user": {
32		"account_labels": null,
33		"ad_cover_url": null,
34		"advance_feature_item_order": null,
35		"advanced_feature_info": null,
36		"avatar_thumb": {
37			"uri": "tos-useast5-avt-0068-tx/aa12e4c1250f1774a6bc299bb87c8b58",
38			"url_list": [
39				"https://p16-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/aa12e4c1250f1774a6bc299bb87c8b58~c5_100x100.jpg?x-expires=1692957600&x-signature=xdcSGNgBwc0GhX21ZpOcGX8WOko%3D",
40				"https://p19-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/aa12e4c1250f1774a6bc299bb87c8b58~c5_100x100.jpg?x-expires=1692957600&x-signature=vKQKN6kPwOxYSNnk5AZr1eziXwo%3D",
41				"https://p16-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/aa12e4c1250f1774a6bc299bb87c8b58~c5_100x100.jpeg?x-expires=1692957600&x-signature=8j%2FBXd3%2FFQi%2BJtCPtcv62IV3Feo%3D"
42			]
43		},
44		"bold_fields": null,
45		"can_message_follow_status_list": null,
46		"can_set_geofencing": null,
47		"cha_list": null,
48		"cover_url": null,
49		"custom_verify": "",
50		"enterprise_verify_reason": "",
51		"events": null,
52		"followers_detail": null,
53		"geofencing": null,
54		"homepage_bottom_toast": null,
55		"item_list": null,
56		"mutual_relation_avatars": null,
57		"need_points": null,
58		"nickname": "alex",
59		"platform_sync_info": null,
60		"relative_users": null,
61		"search_highlight": null,
62		"sec_uid": "MS4wLjABAAAA7vpB3z_9t3fRfuaZC8zkuo7v_SI_Z2DZJ9WxY4IzPrZJJ0TZFBiYFbgk3iglgOPC",
63		"shield_edit_field_info": null,
64		"type_label": null,
65		"uid": "7105545617678664750",
66		"unique_id": "error_7690",
67		"user_profile_guide": null,
68		"user_tags": null,
69		"white_cover_url": null
70	},
71	"user_buried": false,
72	"user_digged": 0
73}

Contact

Please visit us through epctex.com to see all the products that is available for you. If you are looking for any custom integration or so, please reach out to us through the chat box in epctex.com. In need of support? devops@epctex.com is at your service.

Developer
Maintained by Community
Actor metrics
  • 21 monthly users
  • 6 stars
  • 89.0% runs succeeded
  • Created in Aug 2023
  • Modified 2 days ago