# How to Scrape TikTok Hashtag Pages

To scrape a TikTok hashtag, put its page URL, such as https://www.tiktok.com/tag/booktok, in the startUrls input of apidojo's TikTok Scraper on Apify, set maxItems, and run it.

[![apidojo](/blog/authors/apidojo.png)**Apidojo** *15+ years of experience in data retrieval.*](/blog/authors/apidojo/)

**12 October 2026** Published

**3 min** Read

![Cover card reading 'How to Scrape TikTok Hashtag Pages'](/blog/covers/scrape-hashtags.png)

**To scrape a TikTok hashtag, put its page URL, such as `https://www.tiktok.com/tag/booktok`, in the `startUrls` input of apidojo’s [TikTok Scraper](https://apify.com/apidojo/tiktok-scraper) on Apify, set `maxItems`, and run it.** It returns the hashtag’s videos with views, likes, comments, shares, saves, upload time, sound and creator profile, at $0.30 per 1,000 posts.

Hashtag data shows how big a topic is, who drives it and whether it’s growing. This guide covers inputs, country targeting, measuring a hashtag’s growth, and costs. Choosing hashtags in the app is covered in [how to use hashtags on TikTok](/blog/tiktok-trends/use-hashtags/). Every other collection task is mapped in [how to scrape TikTok data](/blog/tiktok-scraping/how-to-scrape-tiktok/). For a topic without a fixed hashtag, [how to scrape TikTok search results](/blog/tiktok-scraping/scrape-search-results/) covers keyword searches, and the sounds inside a hashtag’s videos lead to [how to scrape TikTok sounds and music data](/blog/tiktok-scraping/scrape-sounds/).

## How Do You Scrape a TikTok Hashtag?

**You scrape a hashtag by giving the actor the hashtag’s page URL.** Listed below are the 4 steps.

1.  **Build** the URL: `https://www.tiktok.com/tag/` followed by the hashtag without #.
2.  **Paste** one or more URLs into `startUrls` in TikTok Scraper.
3.  **Set** `maxItems` and, if needed, a `location` country code.
4.  **Run** it and export the videos as JSON, CSV or Excel.

```
{
  "startUrls": [
    "https://www.tiktok.com/tag/booktok",
    "https://www.tiktok.com/tag/bookrecommendations"
  ],
  "location": "US",
  "maxItems": 2000
}
```

Hashtag URLs are one of the URL types the actor accepts, and each URL should return at least 10 posts (Apify).

## Should You Use a Hashtag URL or a Keyword Search?

**Use the hashtag URL for videos tagged with that exact hashtag, and a keyword search for videos about a topic whether or not they’re tagged.** Keyword searches can be sorted by likes or date with `sortType`; hashtag URLs return the hashtag page’s own order. Keyword collection is covered in [how to scrape TikTok search results](/blog/tiktok-scraping/scrape-search-results/).

## How Do You Measure a Hashtag’s Growth?

**Measure growth by counting how many of a hashtag’s videos were posted each day and how many views they gathered.** The `uploadedAtFormatted` field makes this a simple group-by.

```
import pandas as pd
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("apidojo/tiktok-scraper").call(run_input={
    "startUrls": ["https://www.tiktok.com/tag/booktok"],
    "maxItems": 2000,
})
df = pd.json_normalize(list(client.dataset(run.default_dataset_id).iterate_items()))
df["day"] = pd.to_datetime(df["uploadedAtFormatted"]).dt.date

daily = df.groupby("day").agg(videos=("id", "count"), views=("views", "sum"))
print(daily.tail(14))
print(df.groupby("channel.username")["views"].sum().nlargest(10))
```

The second print lists the creators driving the hashtag. Repeating this on a schedule turns it into a trend monitor; see [how to monitor TikTok trends with an API](/blog/tiktok-scraping/monitor-trends/).

## What Can You Learn From Hashtag Data?

**Hashtag data answers 4 practical questions.** The table maps each question to the fields that answer it.

| Question | Fields |
| --- | --- |
| Is the hashtag still active? | uploadedAtFormatted counts per day |
| Which videos win? | views, likes, shares, bookmarks |
| Who are the top creators? | channel.username, channel.followers |
| Which sounds and formats go with it? | song, video.duration, hashtags |

## What Does Scraping TikTok Hashtags Cost?

**At $0.30 per 1,000 posts, 5 hashtags with 2,000 videos each cost $3.** The free Apify plan runs the actor in demo mode, 5 runs a month with 10 items each (Apify).

## The scrapers behind this

-   [TikTok Scraper Profiles, videos, hashtags, music and locations; 460 posts/sec measured $0.30 / 1K posts](/scrapers/tiktok-scraper/)

## Questions people ask

### Can you scrape a hashtag's total view count?

The hashtag page shows its total in the app; scraped results give you each video's views, which you can sum for the videos collected.

### Can you scrape hashtags by country?

Yes, set `location` to an ISO country code.

### Can you scrape hashtag data for older videos?

You get what the hashtag page serves; very old videos may not all appear.

### Where do you start?

At [how to scrape TikTok data in 2026](/blog/tiktok-scraping/how-to-scrape-tiktok/).

## More on scraping TikTok data

-   [How to Scrape TikTok Data in 2026 What TikTok data you can scrape, the 3 ways to collect it, which apidojo actor fits each task, limits, costs and Python code.](/blog/tiktok-scraping/how-to-scrape-tiktok/)
-   [How to Scrape TikTok Comments and Replies Export every comment and reply on any public TikTok video with text, likes, language and commenter profile, plus Python code.](/blog/tiktok-scraping/scrape-comments/)
-   [How to Scrape TikTok Profiles and Their Videos Scrape TikTok profiles by username with apidojo's actors, get every video's stats and the creator's details, and turn them into creator benchmarks.](/blog/tiktok-scraping/scrape-profiles/)
-   [How to Scrape TikTok Followers and Following Lists Export TikTok follower and following lists with profile details, the limits on large and hidden lists, and how to use the data.](/blog/tiktok-scraping/scrape-followers/)
-   [How to Scrape TikTok Search Results Scrape TikTok keyword search results by country and sort order, turn video results into a creator list, and see what it costs.](/blog/tiktok-scraping/scrape-search-results/)
-   [How to Scrape TikTok Sounds and Music Data Scrape the videos using any TikTok sound, read the song fields, measure a sound's growth, and extract audio from your own videos.](/blog/tiktok-scraping/scrape-sounds/)
-   [How to Scrape Location-Tagged TikTok Videos Scrape TikTok videos tagged at a venue or landmark, target results by country, and use location data for local research.](/blog/tiktok-scraping/scrape-locations/)
-   [How to Download TikTok Videos in Bulk Collect TikTok video links in bulk, download the files with Python, keep their details, and follow the rules on rights and reuse.](/blog/tiktok-scraping/bulk-download-videos/)
-   [How to Collect TikTok Data With Python A Python script that searches TikTok videos, scrapes comments on the best ones, cleans the data and saves it, with costs and limits.](/blog/tiktok-scraping/tiktok-python/)
-   [TikTok Scraping Limits: Pagination and Rate Limits The documented limits of apidojo's TikTok actors, how pagination and maxItems work, and fixes for runs that return too few results.](/blog/tiktok-scraping/limits-pagination/)
-   [Why geotagged TikTok posts arrive without a geotag TikTok Location Scraper returns posts filed under a place, and not one field in the output names that place. Here is how to keep the provenance.](/blog/tiktok/tiktok-location-provenance/)
-   [TikTok date windows that return nothing, and why TikTok Profile Scraper's since and until mean the opposite of what almost everyone assumes. Swap them and the run returns an empty dataset.](/blog/tiktok/tiktok-since-until/)
-   [Why your TikTok user run cost three queries getFollowers and getFollowing are both on by default, and each is its own charge on top of the profile lookup. An unconfigured run bills three times.](/blog/tiktok/tiktok-user-defaults/)

![apidojo](/blog/authors/apidojo.png)

## [Apidojo](/blog/authors/apidojo/)

15+ years of experience in data retrieval.

API Dojo is always ready for you. With 15+ years of experience, data acquisition has never been that easy. Cheapest prices with high availability.

-   🏯 15+ years of experience in data retrieval.
-   💰 Cheapest prices, qualified data.
-   ⚙️ High availability, extreme maintenance.
-   🐉 Hyper communicative, excellent support.

-   [apify.com](https://apify.com/apidojo)
-   [x.com](https://x.com/apidojo_)
-   [github.com](https://github.com/apidojo-io)
