How to Scrape Youtube Hashtag Search Results
This tutorial shows how to use Youtube Hashtag Search Results API to scrape and crawl structured Youtube data in real-time.
Search YouTube by hashtag through our API and collect associated videos, view totals, and engagement signals to evaluate hashtag reach and inform campaign decisions.
Access Youtube Data in 3 Steps
Start crawling Youtube hashtag search data. Follow these steps to extract social media data in minutes.
Create Your Account
Go to our registration page and make an account. It's free, no credit card, and you get credits right away to play around with.
Verify Your Email Address
You'll get a verification email, click the link in it. Once that's done, you can grab your API token from the dashboard.
Make Your First API Call
Copy the code snippet below, swap in your API key, and run it. You'll get Youtube data back as JSON within a few seconds.
Code Sample
Here's a JavaScript example to get you going. Swap out the token and you're good, works the same way in any language that can make HTTP requests. Start collecting hashtag search data via our REST API!
| 1 | const root = 'https://ensembledata.com/apis' |
| 2 | const endpoint = '/youtube/hashtag/search' |
| 3 | const params = { |
| 4 | "name": "magic", |
| 5 | "depth": 1, |
| 6 | "only_shorts": false, |
| 7 | "token": "YOUR-TOKEN-HERE" |
| 8 | } |
| 9 | |
| 10 | const queryString = new URLSearchParams(params).toString(); |
| 11 | const url = `${root}${endpoint}?${queryString}`; |
| 12 | |
| 13 | await fetch(url) |
| 14 | .then(response => response.json()) |
| 15 | .then(data => console.log(data)) |
| 16 | .catch(error => console.error(error)); |
| 17 |
Parameters
Example Response
Explore the fields returned by this endpoint. Click a row to expand nested objects and arrays, hover a value to copy it, or use "Expand all" to see everything at once.
dataobject2 fields
infoobject2 fields
contentobject1 field
pageHeaderViewModelobject3 fields
titleobject1 field
dynamicTextViewModelobject2 fields
textobject1 field
rendererContextobject2 fields
loggingContextobject1 field
loggingDirectivesobject3 fields
visibilityobject1 field
clientVeSpecobject2 fields
accessibilityContextobject1 field
metadataobject1 field
contentMetadataViewModelobject2 fields
metadataRowsarray1 item · schema from #0 1 item
metadataPartsarray1 item · schema from #0 1 item
textobject1 field
rendererContextobject1 field
loggingContextobject1 field
loggingDirectivesobject3 fields
visibilityobject1 field
clientVeSpecobject2 fields
rendererContextobject1 field
loggingContextobject1 field
loggingDirectivesobject3 fields
visibilityobject1 field
clientVeSpecobject2 fields
videosarray1 item · schema from #0 1 item
richItemRendererobject2 fields
contentobject1 field
reelItemRendererobject10 fields
headlineobject1 field
thumbnailobject2 fields
thumbnailsarray1 item · schema from #0 1 item
viewCountTextobject2 fields
accessibilityobject1 field
accessibilityDataobject1 field
navigationEndpointobject3 fields
commandMetadataobject1 field
webCommandMetadataobject3 fields
reelWatchEndpointobject9 fields
thumbnailobject2 fields
thumbnailsarray1 item · schema from #0 1 item
overlayobject1 field
reelPlayerOverlayRendererobject3 fields
loggingContextobject2 fields
vssLoggingContextobject1 field
qoeLoggingContextobject1 field
accessibilityobject1 field
accessibilityDataobject1 field
loggingDirectivesobject3 fields
visibilityobject1 field
Response Codes
Status codes this endpoint can return, so you can handle errors before they surprise you in production.
API Pricing
Fetch Youtube Data at Scale
Crawl YouTube hashtag data at scale including associated videos, view counts, and engagement and turn it into actionable campaign insights.
Hashtag Videos
Get every public video associated with a YouTube hashtag.
Reach Metrics
See aggregate view and engagement data to measure hashtag reach.
Campaign Data
Track branded hashtag campaigns with real engagement numbers.