![TikTok Comments Scraper avatar](https://images.apifyusercontent.com/RzVWeGYSgc9oMpDht3s1g_DWr0q1SRX-8ZykGDx6Wx0/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9CRGVjMDB5QW1DbTFRYk1FSS9xaDJ6Zkt2ZDU5VDJBY2JwTi1UaWtUb2tfQ29tbWVudHNfU2NyYXBlci5wbmc.webp)
Pay $1.00 for 1,000 comments
![TikTok Comments Scraper](https://images.apifyusercontent.com/RzVWeGYSgc9oMpDht3s1g_DWr0q1SRX-8ZykGDx6Wx0/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9CRGVjMDB5QW1DbTFRYk1FSS9xaDJ6Zkt2ZDU5VDJBY2JwTi1UaWtUb2tfQ29tbWVudHNfU2NyYXBlci5wbmc.webp)
TikTok Comments Scraper
Pay $1.00 for 1,000 comments
Extract TikTok comments. Just add a TikTok URL and get TikTok video and profile data: comments, URLs, numbers of shares, followers, hashtags, hearts, video, and music metadata. Export scraped data, run the scraper via API, schedule and monitor runs or integrate with other tools.
Do you want to learn more about this Actor?
Get a demoScraping comments from a certain date
Closed
If I have a video URL that was posted a week ago, but only want new to scrape new comments today, is there a way to filter for that in the scrape?
![lukas.prusa avatar](https://apify-image-uploads-prod.s3.amazonaws.com/KNRBu8ZQbXJs57TCd/gMDJPyh4HJ53yis3n-rsz_1lukas_about_small.jpg)
Hi Rob, thanks for your patience and for opening this issue!
Unfortunately, since there is no way to sort comments on TikTok by date, there is no other way other than just filtering them out. While we could add this custom filter feature to this scraper, it would mostly just bloat the input, because this filtering option can simply be achieved on the output.
You can simply use an Actor to Actor integration with a utility Actor like the Merge, Dedup & Transform Datasets. In the transforming function, set this code which will filter out only dates newer than the given one:
1async (items, { Apify }) => { 2 const cutoffDate = new Date("2024-07-25"); // Your date goes here 3 4 return items.filter((item) => { 5 const itemDate = new Date(item.createTimeISO); 6 const isNewEnoughDate = itemDate.getTime() > cutoffDate.getTime(); 7 8 return isNewEnoughDate 9 }) 10}
I hope this helps, thanks!
We also have some issues currently with users not being able to comment/reopen on closed issues, so I will keep this open for now and feel free to close this if everything has been resolved :) Thanks and happy scraping!
light_zep
Wonderful, Lukáš. Will give this a try. Thank you! - Rob
- 337 monthly users
- 34 stars
- 99.9% runs succeeded
- 12 days response time
- Created in Feb 2023
- Modified 4 days ago