RealdataAPI Store - Browse tools published by our community and use them for your projects right away
logo

TikTok Comment Data Scraper - TikTok Comment Data Collection

RealdataAPI / TikTok-Comment-Data-Scraper

Scrape video comments from specific TikTok video posts using TikTok Comment Data Scraper according to your custom requirement for social media data. Use our TikTok Comment Data Collection tool in countries like the USA, UK, UAE, Canada, Australia, France, Germany, Spain, Italy, Mexico, Singapore, Japan, and more.

What Does TikTok Comment Data Scraper Do?

TikTok comment data scraper is a vital and straightforward tool that permits you to collect comments, and user IDs, like counts, comments, reply counts, and other data. To extract the data, place the URL of the video you want, and hit the Save and Start button.

How to Use Scraped TikTok Comment Data?

  • Perform customer behavior analysis and search genuine reviews for products
  • Study trends and viral campaigns
  • Use the data for social listing and research experiments
  • Study and work on preparations for TilTok marketing campaigns
  • Discover unverified video content and misleading information containing the high public value

How to Use TikTok Comment Data Scraper?

We have designed a TikTok comment scraper that is simple to start even though you are trying it for the first time. Use the below steps to scrape TikTok comment data using this scraper.

  • Open a free account on our platform using your necessary credentials.
  • Visit TikTok Comment Data Scraper.
  • Add as many URLs as possible to collect video comment data.
  • Click on the start button and allow some time for the scraper to collect data.
  • Export the scraped data in multiple digestible formats like JSON, CSV, XML, HTML, Excel, etc.

Remember that the scraper shows collected comments only when it completes scraping all the required comments from the specific link.

Input Example of TikTok Comment Data Scraper

It would be best to insert the URL of the TikTok video, and the comment counts you want to scrape. You can add multiple URLs to the input field.

Check out the input tab to read the JSON-based input example.

{
"commentsPerPost": 10000,

"postURLs": [

"https://www.tiktok.com/@expeccto/video/7128277764389473562?q=harry%20potter&t=1675289064996"
]
}
Output Sample of TikTok Comment Data Scraper

You will get the results of this scraper in dataset format. You can download the dataset in Excel, CSV, HTML, XML, or JSON format. Check out the below example of collected comment data from TikTok.

You can also check the complete version in JSON.

[
{
"videoWebUrl":
"https://www.tiktok.com/@expeccto/video/7128277764389473562",
"cid": "7128599608109286190",
"createTime": 1659756449,
"createTimeISO": "2022-08-06T03:27:29.000Z",
"text": "Just finished watching the whole of the Harry Potter movies yesterday for the 10th time lmao",
"diggCount": 11477,
"replyCommentTotal": 142,
"uid": "7002585366419162117",
"uniqueId": "gyp2yy" },
{ "videoWebUrl": "https://www.tiktok.com/@expeccto/video/7128277764389473562",
"cid": "7128994054352978715",
"createTime": 1659848288,
"createTimeISO": "2022-08-07T04:58:08.000Z",
"text": "He was the best wizard and learned so fast 😩",
"diggCount": 9901,
"replyCommentTotal": 79,
"uid": "7100180717091701762",
"uniqueId": "iannasimonemonteb" },
{ "videoWebUrl": "https://www.tiktok.com/@expeccto/video/7128277764389473562",
"cid": "7155816116475101979",
"createTime": 1666093280,
"createTimeISO": "2022-10-18T11:41:20.000Z",
"text": "who don't know:😭😭😭\nwho know:🤨🤨",
"diggCount": 732,
"replyCommentTotal": 5,
"uid": "6785055187708445697",
"uniqueId": "gabrielcmgn" } ]
Do You Want To Scrape TikTok Hashtags or Profiles?

We've designed dedicated scrapers for specific data requirements from TikTok. They all work to scrape specific TikTok data, including search results, hashtags, profiles, or all data together. Do explore them for custom data needs.

  • TikTok Video Downloader
  • TikTok Scraper
  • TikTok Search Scraper
  • TikTok Hashtag Scraper
TikTok Comment Data Scraper with Integrations

Lastly, you can connect this tool for TikTok comment data collection with any web application or cloud service with the help of integrations available on our platforms. Multiple options to integrate the scraper include Google Drive, Google Sheets, Slack, Make, Airbyte, Zapier, GitHub, and more. You can also try webhooks to commence an action in case of an event occurrence.

Using TikTok Comment Data Scraper With Real Data API Actor

Our API programmatically permits you to access the platform. We've organized the actor around RESTful HTTP endpoints to allow you to run, manage and schedule our actors. It also allows you to track actor performance; access desired datasets, retrieve output, update and create scraper versions, and more.

You can use our client PyPl package to access the API using Python and our client NPM package to access it using Node.js.

Can I Scrape TikTok Comments Legally?

We've designed the TikTok Comment Data Scraper such that it doesn't scrape any personal data like location, contact details, and gender of users. The scraper only collects the publically available data. But remember that you may get some personal data in your dataset unknowingly.

Various regulations worldwide, like GDPR, protect personal data. Note that you should only collect private data if you have a proper purpose. Consult your lawyers if you need to know whether your reason is genuine.

Your Feedback For TikTok Comment Data Scraper

We continually work to improve our scraper performances. Therefore, if you want to suggest anything, want us to fix any bug, or have any technical feedback for the TikTok comment data scraper, you can raise an issue from your console account.

Industries

Check out how industries use TikTok Comment Data Scraper worldwide.

saas-btn.webp

Marketing and Media

You should have a Real Data API account to execute the program examples. Replace <YOUR_API_TOKEN> in the program using the token of your actor. Read about the live APIs with Real Data API docs for more explanation.

import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with API token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare actor input
const input = {
    "postURLs": [
        "https://www.tiktok.com/@bellapoarch/video/6862153058223197445"
    ]
};

(async () => {
    // Run the actor and wait for it to finish
    const run = await client.actor("clockworks/tiktok-comments-scraper").call(input);

    // Fetch and print actor results from the run's dataset (if any)
    console.log('Results from dataset');
    const { items } = await client.dataset(run.defaultDatasetId).listItems();
    items.forEach((item) => {
        console.dir(item);
    });
})();
from apify_client import ApifyClient

# Initialize the ApifyClient with your API token
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the actor input
run_input = { "postURLs": ["https://www.tiktok.com/@bellapoarch/video/6862153058223197445"] }

# Run the actor and wait for it to finish
run = client.actor("clockworks/tiktok-comments-scraper").call(run_input=run_input)

# Fetch and print actor results from the run's dataset (if there are any)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
# Set API token
API_TOKEN=<YOUR_API_TOKEN>

# Prepare actor input
cat > input.json <<'EOF'
{
  "postURLs": [
    "https://www.tiktok.com/@bellapoarch/video/6862153058223197445"
  ]
}
EOF

# Run the actor
curl "https://api.apify.com/v2/acts/clockworks~tiktok-comments-scraper/runs?token=$API_TOKEN" \
  -X POST \
  -d @input.json \
  -H 'Content-Type: application/json'

Direct URLs of TikTok Videos

postURLs Required Array

Insert the link of a specific TikTok video from which you want to collect comments.

Maximum Comments For Each Post

commentsPerPost Optional Integer

The comment counts you want to scrape in each output. You can expect up to 500 comments quickly, but beyond 500, the scraper will slow down.

{
  "postURLs": [
    "https://www.tiktok.com/@bellapoarch/video/6862153058223197445"
  ],
  "commentsPerPost": 100
}