Tiktok Search by Hashtag API
Search TikTok by hashtag to find videos, measure reach, and track how campaigns or trending topics are performing on the platform.
| 1 | import requests |
| 2 | |
| 3 | root = "https://ensembledata.com/apis" |
| 4 | endpoint = "/tt/hashtag/posts" |
| 5 | params = { |
| 6 | "name": "magic", |
| 7 | "cursor": 0, |
| 8 | "token": "YOUR-TOKEN-HERE" |
| 9 | } |
| 10 | |
| 11 | res = requests.get(root+endpoint, params=params) |
| 12 | print(res.json()) |
| 13 |
Why Developer Teams Use Our API
Measure Hashtag Reach
Get aggregate view and post counts to quantify exactly how far a hashtag has traveled.
Track Branded Campaigns
Poll a campaign hashtag on a schedule to build a full reach timeline over time.
Every Tagged Video
Retrieve the public videos carrying a specific hashtag instead of a partial in-app sample.
Spot Emerging Tags
Compare view counts across hashtags to see which ones are picking up real momentum.
No Official API Needed
Pull hashtag data independently of TikTok's own developer platform and approval process.
Current At Request Time
Every metric is fetched live, so hashtag reports never rely on outdated figures.
Scrape Tiktok Data Effortlessly
Retrieve TikTok videos by tag along with engagement data using our hashtag search API, useful for campaign tracking and staying on top of trending topics.
Hashtag Comparison
Query multiple TikTok hashtags side by side to see which is driving more views.
Launch Day Tracking
Track a new TikTok hashtag from its first videos to measure early momentum.
Structured Video List
Get every tagged TikTok video as clean JSON, ready for a reporting dashboard.
Tiktok Scraping Features
Monitor how specific hashtags perform on TikTok over time and back up what you are seeing with real data from our campaign analytics API.
- Pull every public video tagged with a specific hashtag to measure its full reach.
- Get aggregate view and post counts alongside individual videos for a quick reach overview.
- Poll a branded campaign hashtag on a schedule to build a complete performance timeline.
- Match hashtags in non-Latin scripts the same way as English tags, since text is UTF-8.
- Compare view counts across multiple hashtags side by side to spot which is picking up momentum.
Starting crawling Tiktok now!
Get Your API Key in Minutes
Create a free account (no credit card required) and receive an API token instantly to test endpoints, pull live data, and rapidly prototype integrations. Upgrade as your needs grow.
Get started freeDeveloper Support
Need help integrating or customizing data for your workflows? Our developer success team offers onboarding, guidance, and enterprise support to get your project production-ready.
Contact usFrequently Asked Questions
It returns videos tagged with a specific hashtag along with view counts and engagement data, letting you measure that hashtag's overall reach.
Yes, this is one of the most common use cases, calling the endpoint periodically to track how many videos and views a campaign hashtag accumulates.
Yes, aggregate view and post count data is included alongside the individual videos, giving you an overview of the hashtag's total reach.
The endpoint is built to look up a specific hashtag rather than discover new ones, so it works best once you already know the tag you want to track.
No, pass the hashtag text without the leading '#'; the endpoint matches it against TikTok's internal hashtag index.
Results are paginated in batches, generally a few dozen videos per page, with a cursor to continue through the full tagged video list.
Yes, hashtag text is matched as UTF-8, so non-Latin scripts work the same as English hashtags.
Results follow TikTok's default hashtag feed ordering, which generally surfaces top-performing videos first rather than strict chronological order.
Most customers poll daily or weekly depending on campaign length, storing the results to build a reach and engagement timeline.