Tiktok Hashtag Scraper avatar
Tiktok Hashtag Scraper
Try for free

Pay $5.00 for 1,000 videos

View all Actors
Tiktok Hashtag Scraper

Tiktok Hashtag Scraper

clockworks/tiktok-hashtag-scraper
Try for free

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.

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

How to use data extracted from TikTok hashtags?

The data extracted from TikTok Hashtag Scraper 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

How do I use 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.

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.

Click on the input tab for a full explanation of an input example in JSON.

1{
2  "hashtags": [
3    "#booktok",
4    "#tiktoktravel",
5    "#tiktokviral"
6  ],
7  "resultsPerPage": 99
8}

If you set resultsPerPage to 15 or lower, the scraper will be significantly faster because it doesn't need to support scrolling.

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 if you apply the input parameters above:

Apify - tiktok hashtags data - Output

And here is the same data but in JSON. You can choose in which format to download your TikTok hashtag data: JSON, JSONL, Excel spreadsheet, HTML table, CSV, or XML.

1[{
2  "id": "7197570602176220458",
3  "text": "It’s a beautifully written thriller on Amazon 🥹❤️ #stonemaidens #booktok #authorsoftiktok #thrillerbooks #books ",
4  "createTime": 1675815005,
5  "createTimeISO": "2023-02-08T00:10:05.000Z",
6  "locationCreated": "US",
7  "isAd": false,
8  "isMuted": false,
9  "authorMeta": {
10    "id": "7197549560411227182",
11    "name": "stonemaidens",
12    "nickName": "lloyd",
13    "verified": false,
14    "signature": "Stone Maidens is a bestselling thriller\n✨account run by his daughter😌❤️",
15    "bioLink": null,
16    "avatar": "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/532fc8b1bd240ad334013ea12efc4625~c5_720x720.jpeg?x-expires=1679054400&x-signature=NM6hc5KRAka6RXDMPagm3l9%2ByYg%3D",
17    "privateAccount": false,
18    "roomId": "",
19    "ttSeller": false,
20    "following": 135,
21    "fans": 391400,
22    "heart": 15600000,
23    "video": 14,
24    "digg": 182
25  },
26  "musicMeta": {
27    "musicName": "original sound",
28    "musicAuthor": "e",
29    "musicOriginal": true,
30    "musicAlbum": "",
31    "playUrl": "https://v77.tiktokcdn.com/2a49965f3ee4ea0c08b1861a30bf9e84/6411c6b9/video/tos/useast2a/tos-useast2a-v-27dcd7/087f3967d9254562993bd0baea46be8d/?a=1233&ch=0&cr=0&dr=0&er=2&cd=0%7C0%7C0%7C0&br=250&bt=125&ft=d2A~l-Inz7Tqm1Qfiyq8Z&mime_type=audio_mpeg&qs=6&rc=OzlnN2VnPDhlOjs0aTpnZEBpM25tazt5bm15NTMzNzU8M0A1Xl9gNl8uNWAxYmEtXy0xYSMyY25icy00XzZgLS1kMTZzcw%3D%3D&l=20230315122223890A34FC035DFC0C9096&btag=80000&cc=13&download=true",
32    "coverMediumUrl": "https://p16-sign-sg.tiktokcdn.com/aweme/720x720/tos-alisg-avt-0068/3b8cf578d154dbef816de11b2e7e8523.jpeg?x-expires=1679054400&x-signature=qu2ynSR8ITDgXegsc6s66QvmBso%3D",
33    "musicId": "7182615980223662849"
34  },
35  "webVideoUrl": "https://www.tiktok.com/@stonemaidens/video/7197570602176220458",
36  "mediaUrls": [
37    "https://v16-webapp-prime.tiktok.com/video/tos/maliva/tos-maliva-ve-0068c799-us/500fcf02e5084425bc16d2671813d244/?a=1988&ch=0&cr=0&dr=0&lr=tiktok_m&cd=0%7C0%7C1%7C0&cv=1&br=2220&bt=1110&cs=0&ds=3&ft=TYOI3113vjVQ9-~ltJTsdOcw4i_a7uwQAmy5dbSyJE&mime_type=video_mp4&qs=0&rc=ZTQ2ZTRmaGRpPGQ0M2dpN0BpajdpbWc6ZndoaTMzZzczNEA1L2MzNi8uNTIxYmAwYC8zYSNsLmBzcjQwY2VgLS1kMS9zcw%3D%3D&btag=80000&expire=1678904561&l=20230315122223890A34FC035DFC0C9096&ply_type=2&policy=2&signature=8b08a9d00de906f77995c8cfe4848860&tk=tt_chain_token"
38  ],
39  "videoMeta": {
40    "height": 1024,
41    "width": 576,
42    "duration": 17,
43    "coverUrl": "https://p19-sign.tiktokcdn-us.com/obj/tos-useast5-p-0068-tx/23b8f55d3189470284431a64fde53dbb?x-expires=1678903200&x-signature=g6LnfcJfnzirPo3XrX5PLjUTH%2Bw%3D",
44    "definition": "720p",
45    "format": "mp4"
46  },
47  "diggCount": 10700000,
48  "shareCount": 54100,
49  "playCount": 50700000,
50  "commentCount": 44100,
51  "mentions": [],
52  "hashtags": [
53    {
54      "id": "7142528998826835994",
55      "name": "stonemaidens",
56      "title": "",
57      "cover": ""
58    },
59    {
60      "id": "1622962893630470",
61      "name": "booktok",
62      "title": "Dive into the biggest book club on the planet with reviews and recommendations for just about every genre you could imagine.",
63      "cover": ""
64    },
65    {
66      "id": "1631897085131782",
67      "name": "authorsoftiktok",
68      "title": "",
69      "cover": ""
70    },
71    {
72      "id": "1635852931447813",
73      "name": "thrillerbooks",
74      "title": "",
75      "cover": ""
76    },
77    {
78      "id": "17861",
79      "name": "books",
80      "title": "",
81      "cover": ""
82    }
83  ],
84  "effectStickers": [],
85  "searchHashtag": {
86    "views": "116.5B",
87    "name": "booktok"
88  }
89}
90]
91...

How many results can you 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. There’s no one-size-fits-all-use-cases number. The maximum number of results may vary depending on the complexity of the input, location, and other factors. Some of the most frequent cases are:

  • website gives a different number of results depending on the type/value of the input
  • website has an internal limit that no scraper can cross
  • scraper has a limit that we are working on improving

Therefore, while we regularly run Actor tests to keep the benchmarks in check, the results may also fluctuate without our knowing. The best way to know for sure for your particular use case is to do a test run yourself.

Want to scrape TikTok profiles or comments?

If you want to extract specific TikTok data other than hashtags, you can use one of the specialized scrapers below, each built particularly for the relevant TikTok data scraping case, whether it's profiles, comments, search results, or all data at once:

🧛 TikTok Profile Scraper📹 Tiktok Video Scraper🎸 Tiktok Sound Scraper
🎶 TikTok Scraper🎙 TikTok Comments Scraper🛍 Tiktok Ads Scraper

Not your cup of tea? Build your own scraper!

TikTok Hashtag scraper doesn’t exactly do what you need? You can always build your own! We have various scraper templates in Python, JavaScript, and TypeScript to get you 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 find users for it).

Or let us know if you need a custom scraping solution.

Integrations and TikTok Hashtag Scraper

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. You can integrate with Make, Zapier, Slack, Airbyte, GitHub, Google Sheets, Google Drive, and more.

Or 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.

Using 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.

Our TikTok scrapers 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.

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.

Developer
Maintained by Apify
Actor metrics
  • 138 monthly users
  • 99.9% runs succeeded
  • 9.8 days response time
  • Created in Mar 2023
  • Modified 10 days ago