Tiktok Hashtag Scraper
Pay $5.00 for 1,000 videos
Tiktok Hashtag Scraper
Pay $5.00 for 1,000 videos
Scrape TikTok hashtag data. Just add one or more hashtags and extract TikTok videos with that hashtag: URLs, likes, country of creation, video and music metadata, TikTok creator data. 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 demoWhat 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
How to scrape TikTok with TikTok Hashtag Scraper?
TikTok Hashtag Scraper is designed to be user-friendly, even for those who have never extracted data from the web before! Here’s how you can use TikTok Hashtag Scraper to extract hashtag data:
- Create a free Apify account using your email.
- Open TikTok Hashtag Scraper.
- Add one or more TikTok hashtags to scrape data.
- Click the “Start” button and wait for the data to be extracted.
- Download your data in JSON, XML, CSV, Excel, or HTML.
Watch this video for guidance:
Input sample
The input for TikTok Hashtag Scraper should be a TikTok hashtag (with or without the #
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.
See how you can fill in the input schema.
And how it looks in JSON:
1{ 2 "hashtags": [ 3 "webscraping" 4 ], 5 "resultsPerPage": 20, 6 "shouldDownloadCovers": false, 7 "shouldDownloadSlideshowImages": false, 8 "shouldDownloadSubtitles": false, 9 "shouldDownloadVideos": false 10}
Output sample
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.
1{ 2 "id": "7204347705928191259", 3 "text": "Scraping website dari nol menggunakan nodejs untuk pemula #programmer #nodejs #pemula #tutorial #webscraping #fyp #mudah #belajarprogramming #javascript ", 4 "createTime": 1677392919, 5 "createTimeISO": "2023-02-26T06:28:39.000Z", 6 "isAd": false, 7 "isMuted": false, 8 "authorMeta": { 9 "id": "6964254822141297665", 10 "name": "mshbljrngoding", 11 "nickName": "Masih Belajar Ngoding", 12 "verified": false, 13 "signature": "(APBD) Apakah Programmer Banyak Duit?", 14 "bioLink": null, 15 "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", 16 "privateAccount": false, 17 "ttSeller": true, 18 "following": 1, 19 "fans": 1849, 20 "heart": 13000, 21 "video": 33, 22 "digg": 37 23 }, 24 "musicMeta": { 25 "musicName": "LoFi(860862)", 26 "musicAuthor": "skollbeats", 27 "musicOriginal": false, 28 "musicAlbum": "", 29 "playUrl": "", 30 "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", 31 "musicId": "6873526724840130562" 32 }, 33 "webVideoUrl": "https://www.tiktok.com/@mshbljrngoding/video/7204347705928191259", 34 "mediaUrls": [ 35 "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" 36 ], 37 "videoMeta": { 38 "height": 944, 39 "width": 576, 40 "duration": 164, 41 "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=-", 42 "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=-", 43 "definition": "540p", 44 "format": "mp4", 45 "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", 46 "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" 47 }, 48 "diggCount": 517, 49 "shareCount": 17, 50 "playCount": 12600, 51 "collectCount": 115, 52 "commentCount": 27, 53 "mentions": [], 54 "hashtags": [ 55 {
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
Integrate TikTok Hashtag Scraper and automate your workflow
Last but not least, TikTok Hashtag Scraper can be connected with almost any cloud service or web app thanks to integrations on the Apify platform.
These include:
Alternatively, you can use webhooks to carry out an action whenever an event occurs, e.g. get a notification whenever TikTok Hashtag Scraper successfully finishes a run.
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:
🎹 Tiktok Scraper | 📹 Tiktok Video Scraper | 🧛 TikTok Profile Scraper | 🎸 Tiktok Sound Scraper |
📊 TikTok Data Extractor | 🛍 Tiktok Ads Scraper | #️⃣ TikTok Comments Scraper | 🔍TikTok Discover Scraper |
Not your cup of tea? Build your own scraper.
TikTok Comments Scraper doesn’t exactly do what you need?
You can always build your own! Use one of scraper templates in Python, JavaScript, and TypeScript to get started.
Alternatively, you can write it from scratch using our open-source library Crawlee. You can keep the scraper to yourself or make it public by adding it to Apify Store and start making money on it.
Or let us know if you need a custom scraping solution.
Your feedback
We’re always working on improving the performance of our Actors. So 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.
FAQ
How many results can I scrape with TikTok Hashtag Scraper?
TikTok Hashtag scraper can return up to 400-800 results per hashtag on average. This is a hard limit by the TikTok website that cannot be overcome.
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 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.
But if you need to extract data regularly, you should get an Apify subscription. We recommend our $49/month Starter plan — that one could get you over 9,800 results from TikTok Hashtag Scraper every month.
How 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.
You can use the apify-client
NPM package to access the API using Node.js, or the apify-client PyPI
package to access the API using Python.
Check out the Apify API reference docs for full details or click on the API tab for code examples.
Is it legal to scrape hashtags with TikTok Hashtag Scraper?
Our TikTok scrapers, TikTok Hashtag Scraper included, are ethical and do not extract any private user data, such as email addresses, gender, or location. They can 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.
- 298 monthly users
- 33 stars
- 100.0% runs succeeded
- 38 days response time
- Created in Mar 2023
- Modified 2 days ago