Youtube Search by Hashtag API
Search YouTube by hashtag to find associated videos, measure reach, and track campaign performance across the platform.
| 1 | import requests |
| 2 | |
| 3 | root = "https://ensembledata.com/apis" |
| 4 | endpoint = "/youtube/hashtag/search" |
| 5 | params = { |
| 6 | "name": "magic", |
| 7 | "depth": 1, |
| 8 | "only_shorts": False, |
| 9 | "token": "YOUR-TOKEN-HERE" |
| 10 | } |
| 11 | |
| 12 | res = requests.get(root+endpoint, params=params) |
| 13 | print(res.json()) |
| 14 |
Why Developer Teams Use Our API
Measure Hashtag Reach
Get videos and engagement tied to a hashtag to quantify how far it has spread.
Track Campaign Hashtags
Poll a branded hashtag on a schedule to build a reach timeline over a campaign.
Every Tagged Video
Retrieve public videos carrying a specific hashtag instead of a partial in-app sample.
Spot Emerging Tags
Compare engagement across hashtags to see which ones are gaining real momentum.
No Quota Limits
Pull hashtag data without being throttled by YouTube Data API quota restrictions.
Current At Request Time
Every metric is fetched live, so hashtag reports never rely on outdated figures.
Scrape Youtube Data Effortlessly
Scrape videos, view totals, and engagement signals for any YouTube tag with our hashtag search API, useful for campaign tracking and content discovery.
Hashtag Head-to-Head
Compare multiple YouTube hashtags side by side to see which pulls more views.
Campaign Launch Tracking
Follow a new YouTube hashtag from day one to measure early campaign traction.
Structured Tag Results
Get every video under a hashtag as clean JSON ready for a reporting tool.
Youtube Scraping Features
Monitor how specific hashtags are performing on YouTube and use that data to fine-tune your video campaign strategy.
- Retrieve every video associated with a specific YouTube hashtag along with view counts.
- Get aggregate engagement data alongside individual videos to size up a hashtag's total reach.
- Poll a branded campaign hashtag on a schedule to build a reach and engagement timeline.
- Compare multiple hashtags side by side to see which one is pulling in more views.
- Pull hashtag data without being throttled by YouTube Data API quota restrictions.
Starting crawling Youtube 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 associated with a specific hashtag along with view counts and engagement data.
Yes, this is a common use case, calling the endpoint periodically to monitor how many videos and views a hashtag has accumulated.
Yes, aggregate engagement data is returned alongside individual videos, giving you a view of the hashtag's overall reach.
It's built to look up a specific hashtag you already know, rather than discover new trending tags from scratch.
No, pass the hashtag text without the leading '#'; the endpoint matches it against YouTube's hashtag index directly.
Yes, results are paginated in batches with a continuation token, so hashtags with large video counts require multiple requests to retrieve fully.
There's no language filter parameter; results reflect whatever videos YouTube associates with that hashtag regardless of language.
Results follow YouTube's default hashtag page ordering, which typically favors more recently or actively viewed videos over strict chronological order.
Most customers poll daily or weekly depending on campaign length, storing the results to build a reach and engagement timeline.