TikTok Hashtag Scraper avatar
TikTok Hashtag Scraper

Pricing

from $2.00 / 1,000 videos

Go to Apify Store
TikTok Hashtag Scraper

TikTok Hashtag Scraper

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.

Pricing

from $2.00 / 1,000 videos

Rating

4.9

(17)

Developer

Clockworks

Clockworks

Maintained by Apify

Actor stats

130

Bookmarked

7.6K

Total users

329

Monthly active users

3.4 days

Issues response

19 hours ago

Last modified

Share

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

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:

  1. Create a free Apify account using your email.
  2. Open TikTok Hashtag Scraper.
  3. Add one or more TikTok hashtags to scrape data.
  4. Click the “Start” button and wait for the data to be extracted.
  5. Download your data in JSON, XML, CSV, Excel, or HTML.

For a more detailed tutorial, check out our video:

⬇️ Input

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.

TikTok Hashtag Scraper input

And how it looks in 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:

TikTok Hashtag Scraper output

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.

{
"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:

🎹 Tiktok Scraper📹 Tiktok Video Scraper🧛 TikTok Profile Scraper
🎙 TikTok Comments Scraper🛍 Tiktok Hashtag Analytics Scraper💽 TikTok Data Extractor
🔍TikTok Discover Scraper🎙 TikTok User Search Scraper#️⃣ TikTok Explore Scraper

We also have put together a few AI agents that will help you extract data from social media and turn it into actionable information:

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

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.