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.

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn mode

Node.js

Python

curl

1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4const client = new ApifyClient({
5    token: '<YOUR_API_TOKEN>',
6});
7
8// Prepare Actor input
9const input = {
10    "startUrls": [
11        "https://www.tiktok.com/@deborahyowa/video/7173615947603922181?is_copy_url=1&is_from_webapp=v1",
12        "https://www.tiktok.com/@argenby/video/7171782248281165058?is_copy_url=1&is_from_webapp=v1",
13        "https://www.tiktok.com/@cznburak/video/7161858444830461190?is_copy_url=1&is_from_webapp=v1"
14    ],
15    "endPage": 2,
16    "maxItems": 10,
17    "proxy": {
18        "useApifyProxy": true
19    }
20};
21
22(async () => {
23    // Run the Actor and wait for it to finish
24    const run = await client.actor("epctex/tiktok-comment-scraper").call(input);
25
26    // Fetch and print Actor results from the run's dataset (if any)
27    console.log('Results from dataset');
28    const { items } = await client.dataset(run.defaultDatasetId).listItems();
29    items.forEach((item) => {
30        console.dir(item);
31    });
32})();
Developer
Maintained by Community
Actor metrics
  • 20 monthly users
  • 79.8% runs succeeded
  • 0.0 days response time
  • Created in Aug 2023
  • Modified about 1 hour ago