Scrape 1,000s of TikTok Comments
If you need to scrape comments for a TikTok video, you have 2 main options that we’ll cover: automated scraping with TikAPI (paid service & complicated) or using our HAR File Web Scraper (manual but fast & easy).
Scraping with HAR Files
If you want to quickly scrape the comments for a single post (or handful of posts), you’ll find it easier to do this with our HAR File Web Scraper.
Simply browse to any TikTok Video in your web browser (Google Chrome preferred), right click and select “Inspect” to open developer tools (this will begin recording the comment data TikTok sends to you):
Now with developer tools open, refresh the page to load in the comments again while recording. Then scroll down and keep scrolling until you reach the end (or you get enough comments).
Once you’re done scrolling, click the “Export HAR…” button under the Network Tab in Developer Tools:
Upload the file to the HAR File Web Scraper and then find the group labeled with /api/comment/list/
- click the Parse Group
there:
You’ll then see the comments under the comments
collection, along with a lot of metadata about the users, comments, replies, etc…
Automated Scraping with TikAPI
To use TikAPi, you will need to go to TikAPI and sign up for a free trial for 5 days at no charge. Just visit their site and sign up, then you’ll receive an API key you can use to follow the rest of this article. You may also want to reach out to their customer support if you’re not comfortable providing payment information upfront and they can send you a free trial key like they did with us.
Account Key Unfortunately TikAPI requires you to be logged in with a TikTok account in order to scrape comments, even though they are available without a login. This makes things extremely difficult if you are not very technical, but you can see their support section on How to get an Account Key.
Once you have both a TikAPI Key and Account Key, you can use the form on this page to scrape comments using TikAPI.
Disclaimer: We were provided with a free API key from TikAPI for the purposes of evaluating their service and writing this article, but we were not compensated in any other way to promote their service.