TikTok Comments Scraper
- clockworks/tiktok-comments-scraper
- Modified
- Users 73
- Runs 14.4k
- Created by
Clockworks
Get thousands of comments from TikTok videos fast and easy with TikTok Comments Scraper by Apify.
What does TikTok Comments Scraper do?
It’s a simple and powerful tool that allows you to scrape comments from TikTok videos: comment text, user ID, timestamp, number of replies, number of likes, etc. To get that data, just insert the video URL and click “Save & Start” button.
How to use extracted TikTok data
✨ Find authentic product reviews and conduct sentiment analysis
👩🔬 Get data for research and social listening experiments
🦠 Analyze viral campaigns and trends
🥸 Identify unverified content and inaccurate information with high public value
📚 Prepare for or analyze a TikTok marketing campaign
How do I use TikTok Comments Scraper?
TikTok Comments Scraper was designed to be easy to start with, even if you’ve never extracted data from the web before. Here’s how you can scrape TikTok comments data with this tool:
- Create a free Apify account using your email.
- Open TikTok Comments Scraper.
- Add one or more TikTok video URLs to scrape comments.
- Click “Start” and wait for the data to be extracted.
- Download your data in JSON, XML, CSV, Excel, or HTML.
Please note that this scraper displays the extracted comments only after it has scraped all desired comments from one URL.
Input
The input for TikTok Comments Scraper should be a TikTok video URL and number of comments. You can add one or multiple URLs.
Click on the input tab for an input example in JSON.
{
"commentsPerPost": 10000,
"postURLs": [
"https://www.tiktok.com/@expeccto/video/7128277764389473562?q=harry%20potter&t=1675289064996"
]
}
Output sample
This scraper will deliver results in a dataset. You can choose in which format to download it: JSON, Excel, HTML, CSV, or XML. Here’s an example of scraped TikTok comments you’ll get from the video URL above.
Or the full 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"
}
]
Want to scrape TikTok profiles or hashtags?
You can use the dedicated scrapers below if you want to scrape specific TikTok data. Each of them is built particularly for the relevant TikTok data scraping case, be it hashtags, search results, profiles, or all data at once. Feel free to browse them:
🎶 TikTok Scraper | #️⃣ Tiktok Hashtag Scraper | 🔎 Tiktok Search Scraper | 🕹 Tiktok video downloader
Integrations and TikTok Scraper
Last but not least, TikTok Scraper can be connected with almost any cloud service or web app thanks to integrations on the Apify platform. You can integrate with Make, Zapier, Slack, Airbyte, GitHub, Google Sheets, Google Drive, and more. Or you can use webhooks to carry out an action whenever an event occurs, e.g. get a notification whenever TikTok Scraper successfully finishes a run.
Using TikTok Comments Scraper with the Apify API
The Apify API gives you programmatic access to the Apify platform. The API is organized around RESTful HTTP endpoints that enable you to manage, schedule and run Apify actors. The API also lets you access any datasets, monitor actor performance, fetch results, create and update versions, and more.
To access the API using Node.js, use the apify-client
NPM package. To access the API using Python, use the apify-client PyPI
package.
Check out the Apify API reference docs for full details or click on the API tab for code examples.
Is it legal to scrape TikTok comments?
Our TikTok scrapers are ethical and do not extract any private user data, such as email addresses, gender, or location. They only extract what the user has chosen to share publicly. However, you should be aware that your results might contain personal data.
Personal data is protected by GDPR in the European Union and other laws and regulations around the world. You should not scrape personal data unless you have a legitimate reason to do so. If you’re unsure whether your reason is legitimate, consult your lawyers. You can also read our blog post on the legality of web scraping and ethical scraping.
Your feedback
We’re always working on improving the performance of our actors. So if you’ve got any technical feedback for TikTok Comments Scraper or simply found a bug, please create an issue on the actor’s Issues tab in Apify Console.