TikTok Hashtag API Guide: Search, Trending, and Examples
TikTok hashtag data powers trend discovery, creator research, and content planning. This guide shows how to fetch trending hashtags and run hashtag or keyword searches using API Fast, with clear examples and practical tips.
Need the full TikTok API reference? See the TikTok endpoints page: /docs/endpoints/tiktok.
When you should use a hashtag API
Use hashtag data when you need to:
- Track trending topics in a specific region
- Find posts related to a niche or campaign
- Build discovery features for creators and marketers
- Monitor changes in hashtag activity over time
The two TikTok endpoints you will use most
API Fast exposes TikTok endpoints with a unified REST API. For hashtags, these two endpoints cover the majority of use cases:
1) Trending hashtags
Use trending/hashtag to get a list of currently trending hashtags. You can filter by country and time period.
GET https://apifast.dev/api/tiktok/trending/hashtag
Common parameters:
country: ISO country code (example:US)period: time window in days (7,30, or120)limit: number of results per pagepage: page number
Example request:
curl -X GET "https://apifast.dev/api/tiktok/trending/hashtag?country=US&period=30&limit=20&page=1" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"
2) Hashtag and keyword search
Use search/general for broad TikTok search across videos, users, and hashtags.
GET https://apifast.dev/api/tiktok/search/general
Common parameters:
keyword: the term to search (example:coffee)cursor: pagination cursor (default0)search_id: pagination id for follow-up requests
Example request:
curl -X GET "https://apifast.dev/api/tiktok/search/general?keyword=coffee&cursor=0" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"
If you paginate, use both cursor and search_id from the previous response.
What the response looks like
Response fields vary by endpoint, but you will commonly see:
data: list of resultscursorandhasMore: pagination controlsstatusCodeorcode: request status
When searching general content, items include fields like author, desc, and other content metadata you can use to rank or filter.
Practical use cases
Here are a few real use cases we see most often:
- Trend alerts: Poll
trending/hashtagon a schedule and alert when new hashtags appear. - Content research: Search
search/generalby niche terms to find fresh posts and creator angles. - Campaign tracking: Track brand or campaign hashtags to understand participation and momentum.
Pagination tips
Most search endpoints return a cursor and a search_id (for TikTok search). Store both and pass them into the next request to get the next page of results. This keeps pagination stable.
Rate limits and reliability
If you are polling for trends, avoid aggressive loops. Cache the trending list for a short period and refresh on a schedule. This improves reliability and keeps your usage predictable.
Ready to build?
Start with the TikTok endpoints list, then grab your API token and make your first request.
- TikTok endpoints: /docs/endpoints/tiktok
- Get started: /docs/getting-started
- Start free trial: /signup