TikTok Hashtag Scraper
by clockworks
Need to track TikTok trends or analyze hashtag performance? This scraper pulls real data from TikTok so you can focus on the insights. Give it any has...
Opens on Apify.com
About TikTok Hashtag Scraper
Need to track TikTok trends or analyze hashtag performance? This scraper pulls real data from TikTok so you can focus on the insights. Give it any hashtag—like #BookTok or #Crypto—and it collects the actual videos posted with that tag. You’ll get the video URL, like and share counts, the country where it was posted, plus details about the music and video quality. It also grabs the creator’s profile info. Everything exports cleanly to JSON, CSV, or Excel for your dashboards or reports. I run this on Apify because it just works. Set it up once, then schedule it to run daily or trigger it via API to keep your data fresh. It’s become my go-to for competitive research, spotting viral trends early, and gathering UGC for campaigns. If you’re tired of manual searches or limited analytics, this automates the tedious part. Connect it to your data stack or run it solo—either way, you get the raw TikTok data without the noise.
What does this actor do?
TikTok Hashtag Scraper is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.
Key Features
- Cloud-based execution - no local setup required
- Scalable infrastructure for large-scale operations
- API access for integration with your applications
- Built-in proxy rotation and anti-blocking measures
- Scheduled runs and webhooks for automation
How to Use
- Click "Try This Actor" to open it on Apify
- Create a free Apify account if you don't have one
- Configure the input parameters as needed
- Run the actor and download your results
Documentation
What is TikTok Hashtag Scraper? TikTok Hashtag Scraper is a powerful and easy-to-use tool that allows you to extract data from TikTok videos that use a particular hashtag. Using this tool, you will be able to scrape: - All TikToks posted with chosen hashtags: caption, video URL, number of plays, hearts, comments, shares, country of creation, timestamp, paid or non-paid status, video- and music-related metadata. - Basic creator info from TikToks posted with chosen hashtags: name, ID, avatar, bio, account status, total followers/following numbers, given/received likes count, etc. - Total number of views for a chosen hashtag - Export all your data in multiple formats: JSON, CSV, Excel, or HTML - Export via SDKs (Python & Node.js), use API Endpoints, webhooks, or integrate with workflows ## What kind of data does TikTok Hashtag Scraper collect?
| 👤 Author metadata | ❤️ Likes | 🔁 Shares |
| 📜 Location metadata | 👥 Followers / Following count | 📋 Followers / Following list |
| 🕛 Time of creation | 📍 Location of creation | 🎵 Music metadata |
# symbol) and a number of videos. If you add more than one hashtag, the results will be split evenly. For instance, if you have 3 hashtags and set the total number of videos to 99, you'll get 33 results per each hashtag.
And how it looks in JSON: json { "hashtags": [ "webscraping" ], "resultsPerPage": 20, "shouldDownloadCovers": false, "shouldDownloadSlideshowImages": false, "shouldDownloadSubtitles": false, "shouldDownloadVideos": false } ## ⬆️ Output The results will be wrapped into a dataset which you can always find in the Storage tab. Here's an excerpt from the data you'd get:
Here is the same data but in JSON. You can choose to download your TikTok hashtag data in JSON, JSONL, Excel spreadsheet, HTML table, CSV, or XML. json { "id": "7204347705928191259", "text": "Scraping website dari nol menggunakan nodejs untuk pemula #programmer #nodejs #pemula #tutorial #webscraping #fyp #mudah #belajarprogramming #javascript ", "createTime": 1677392919, "createTimeISO": "2023-02-26T06:28:39.000Z", "isAd": false, "isMuted": false, "authorMeta": { "id": "6964254822141297665", "name": "mshbljrngoding", "nickName": "Masih Belajar Ngoding", "verified": false, "signature": "(APBD) Apakah Programmer Banyak Duit?", "bioLink": null, "avatar": "<https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/1925cbec11425784b6eb43710a7b7179~c5_720x720.jpeg?lk3s=a5d48078&nonce=41821&refresh_token=d39029bffc0e34b061c7797c8cdc227d&x-expires=1723226400&x-signature=xQ%2FPJB2DNsvOP9sPJhhcivu1tj8%3D&shp=a5d48078&shcp=b59d6b55>", "privateAccount": false, "ttSeller": true, "following": 1, "fans": 1849, "heart": 13000, "video": 33, "digg": 37 }, "musicMeta": { "musicName": "LoFi(860862)", "musicAuthor": "skollbeats", "musicOriginal": false, "musicAlbum": "", "playUrl": "", "coverMediumUrl": "<https://p16-sign-va.tiktokcdn.com/tos-useast2a-v-2774/6e11e2db7ce84eeea68c550d31c0a04c~c5_200x200.jpeg?lk3s=08d74b56&x-expires=1723077571&x-signature=yurHaQQq4nz2E9Z%2BkWAiTbOnt2Y%3D>", "musicId": "6873526724840130562" }, "webVideoUrl": "<https://www.tiktok.com/@mshbljrngoding/video/7204347705928191259>", "mediaUrls": [ "<https://v16-webapp-prime.tiktok.com/video/tos/useast2a/tos-useast2a-pve-0037-aiso/osPeeQUon3CqvEfRgDbFAEg7keOwKHGE1J2rJ1/?a=1988&bti=NDU3ZjAwOg%3D%3D&ch=0&cr=3&dr=0&lr=all&cd=0%7C0%7C0%7C&cv=1&br=542&bt=271&cs=0&ds=6&ft=4fUEKMMD8Zmo0T6b0-4jV7k4ZpWrKsd.&mime_type=video_mp4&qs=0&rc=N2dpNjo5aWc3PGhmaWY1M0BpajtpcDc6ZjhpaTMzZjgzM0BeNV8wLjYxNmMxMmNeLWItYSNxMTBncjQwaXFgLS1kL2Nzcw%3D%3D&btag=e00090000&expire=1723228936&l=20240807183929DAB47193301FC57F3994&ply_type=2&policy=2&signature=cc15279875748c6836c8720042b906ce&tk=tt_chain_token>" ], "videoMeta": { "height": 944, "width": 576, "duration": 164, "coverUrl": "<https://p16-sign-useast2a.tiktokcdn.com/tos-useast2a-p-0037-aiso/8911252b9a134cdcb38440ab14e0948d_1677392932~tplv-dmt-logom:tos-useast2a-pv-0037-aiso/38550d5eaff94fe98678e313f6066549.image?lk3s=b59d6b55&nonce=36818&refresh_token=3b5c06d382b4d87f842c5da06d20248a&x-expires=1723226400&x-signature=%2BNkXA%2BaccW5QghnCTR6wKnuypQk%3D&shp=b59d6b55&shcp=->", "originalCoverUrl": "<https://p16-sign-useast2a.tiktokcdn.com/tos-useast2a-p-0037-aiso/8911252b9a134cdcb38440ab14e0948d_1677392932~tplv-dmt-logom:tos-useast2a-pv-0037-aiso/38550d5eaff94fe98678e313f6066549.image?lk3s=b59d6b55&nonce=36818&refresh_token=3b5c06d382b4d87f842c5da06d20248a&x-expires=1723226400&x-signature=%2BNkXA%2BaccW5QghnCTR6wKnuypQk%3D&shp=b59d6b55&shcp=->", "definition": "540p", "format": "mp4", "originalDownloadAddr": "<https://v16-webapp-prime.tiktok.com/video/tos/useast2a/tos-useast2a-pve-0037-aiso/osPeeQUon3CqvEfRgDbFAEg7keOwKHGE1J2rJ1/?a=1988&bti=NDU3ZjAwOg%3D%3D&ch=0&cr=3&dr=0&lr=all&cd=0%7C0%7C0%7C&cv=1&br=542&bt=271&cs=0&ds=6&ft=4fUEKMMD8Zmo0T6b0-4jV7k4ZpWrKsd.&mime_type=video_mp4&qs=0&rc=N2dpNjo5aWc3PGhmaWY1M0BpajtpcDc6ZjhpaTMzZjgzM0BeNV8wLjYxNmMxMmNeLWItYSNxMTBncjQwaXFgLS1kL2Nzcw%3D%3D&btag=e00090000&expire=1723228936&l=20240807183929DAB47193301FC57F3994&ply_type=2&policy=2&signature=cc15279875748c6836c8720042b906ce&tk=tt_chain_token>", "downloadAddr": "<https://v16-webapp-prime.tiktok.com/video/tos/useast2a/tos-useast2a-pve-0037-aiso/osPeeQUon3CqvEfRgDbFAEg7keOwKHGE1J2rJ1/?a=1988&bti=NDU3ZjAwOg%3D%3D&ch=0&cr=3&dr=0&lr=all&cd=0%7C0%7C0%7C&cv=1&br=542&bt=271&cs=0&ds=6&ft=4fUEKMMD8Zmo0T6b0-4jV7k4ZpWrKsd.&mime_type=video_mp4&qs=0&rc=N2dpNjo5aWc3PGhmaWY1M0BpajtpcDc6ZjhpaTMzZjgzM0BeNV8wLjYxNmMxMmNeLWItYSNxMTBncjQwaXFgLS1kL2Nzcw%3D%3D&btag=e00090000&expire=1723228936&l=20240807183929DAB47193301FC57F3994&ply_type=2&policy=2&signature=cc15279875748c6836c8720042b906ce&tk=tt_chain_token>" }, "diggCount": 517, "shareCount": 17, "playCount": 12600, "collectCount": 115, "commentCount": 27, "mentions": [], "hashtags": [ { ## How can I use the data extracted from TikTok Hashtag Scraper? The data extracted from TikTok Hashtags extractor can be used for a variety of purposes, including: ✨ Conducting sentiment analysis and finding authentic product reviews 👩🔬 Obtaining data for research and social listening experiments 🦠 Analyzing trends and viral campaigns 🥸 Identifying unverified content and inaccurate information with high public value 📚 Preparing for or analyzing a TikTok marketing campaign ## Scrape any TikTok data you need with dedicated scrapers 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: Comments Analyzer Agent - Influencer Discovery Agent ## Frequently asked questions ### How many results can I scrape with TikTok Hashtag Scraper? TikTok Hashtag scraper can return up to 400 to 800 results per hashtag on average. This is a hard limit set by the TikTok website. However, you have to keep in mind that scraping tiktok.com has many variables to it and may cause the results to fluctuate case by case. The best way to know for sure for your particular use case is to do a test run yourself. ### How much does it cost to use TikTok Hashtag Scraper? TikTok Hashtag Scraper uses the pay-per-result (PPR) pricing model, so your costs can be easily calculated: it will cost you $5 to scrape 1,000 results, so $0.005 per item. Apify provides you with $5 free usage credits every month on the Apify free plan, so you can get 1,000 results from TikTok Hashtag Scraper for free. If you need to extract data regularly, we recommend that you get an Apify subscription. Not only do you get a greater amount of prepaid credits, you get a discount on your usage costs, as well. Check out the pricing tab for more details. ### Can I use integrations with TikTok Hashtag Scraper? You can integrate TikTok Hashtag Scraper with almost any cloud service or web app. We offer integrations with Make, Zapier, Slack, Airbyte, GitHub, Google Sheets, Google Drive, and plenty more. Alternatively, you could use webhooks to carry out an action whenever an event occurs, such as getting a notification whenever TikTok Hashtag Scraper successfully finishes a run. ### Can I use TikTok Hashtag 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. Click on the API tab for code examples, or check out the Apify API reference docs for all the details. ### Can I use TikTok Hashtag Scraper through an MCP Server? With Apify API, you can use almost any Actor in conjunction with an MCP server. You can connect to the MCP server using clients like ClaudeDesktop and LibreChat, or even build your own. Read all about how you can set up Apify Actors with MCP. For TikTok Hashtag Scraper, go to the MCP tab and then go through the following steps: 1. Start a Server-Sent Events (SSE) session to receive a sessionId 2. Send API messages using that sessionId to trigger the scraper 3. The message starts the TikTok Hashtag Scraper with the provided input 4. The response should be: Accepted ### Is it legal to scrape TikTok? Our TikTok scrapers 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. 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. ## Your feedback We’re always working on improving the performance of our Actors. If you’ve got any technical feedback for TikTok Hashtag scraper or simply found a bug, please create an issue on the Actor’s Issues tab in Apify Console.
Categories
Common Use Cases
Market Research
Gather competitive intelligence and market data
Lead Generation
Extract contact information for sales outreach
Price Monitoring
Track competitor pricing and product changes
Content Aggregation
Collect and organize content from multiple sources
Ready to Get Started?
Try TikTok Hashtag Scraper now on Apify. Free tier available with no credit card required.
Start Free TrialActor Information
- Developer
- clockworks
- Pricing
- Paid
- Total Runs
- 277,488
- Active Users
- 7,582
Related Actors
🏯 Tweet Scraper V2 - X / Twitter Scraper
by apidojo
Instagram Scraper
by apify
TikTok Scraper
by clockworks
Instagram Profile Scraper
by apify
Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.
Learn more about ApifyNeed Professional Help?
Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.
Trusted by millions | Money-back guarantee | 24/7 Support