YouTube Hashtag Search
YouTube hashtag feeds are public video collections associated with a topic tag, with titles, descriptions, channel identity, thumbnails, duration, publication details, and visible engagement. These records support topic mapping, campaign participation review, Shorts sampling, and comparative content analysis.
YouTube Hashtag Search API Features
- Hashtag-feed discoveryFind public videos associated with a hashtag through the YouTube Hashtag Search API without supplying video or channel URLs.
- All-content and Shorts modesSet content_type to all for the exposed hashtag feed or shorts for a Shorts-only sample.
- Video and channel contextReturn titles, descriptions, channel identity, thumbnails, duration, publication details, and visible view, like, and comment counts.
- Retained source hashtagEach saved record includes the normalized source hashtag retained for that video result.
YouTube Hashtag Search API Parameters
| Parameters | Required | Description |
|---|---|---|
hashtags | Required | One or more non-empty hashtags. A leading # is optional and removed before collection. |
results_limit | Optional | Maximum videos to collect per hashtag, from 20 to 2,000; defaults to 100. |
content_type | Optional | Content mode: all for the exposed hashtag feed or shorts for Shorts-only results; defaults to all. |
How to Use the YouTube Hashtag Search API
Choose tags that represent the topic boundaries you want to inspect, then keep the content mode and per-tag limit consistent when samples need to be compared.
- Prepare one or more non-empty hashtags, with or without the leading #, and select all or shorts.
- POST hashtags, results_limit, and content_type to /v1/youtube/hashtag-search.
- Save the returned task_id and poll /v1/tasks/{task_id} until the task succeeds or fails.
- Read normalized videos from data.results.items and continue with next_cursor while has_more is true.
curl -X POST "https://api.socq.ai/v1/youtube/hashtag-search" \
-H "Authorization: Bearer $SOCQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{"hashtags":["#technology"],"results_limit":20,"content_type":"shorts"}'
# Poll GET /v1/tasks/{task_id}
# Read data.results.items and follow next_cursor while has_more is trueYouTube Hashtag Search API Use Cases
- Campaign participation review: Use hashtag-feed samples, video descriptions, channel identity, and visible engagement to review public campaign participation.
- Shorts topic sampling: Select shorts in the YouTube Hashtag Search API to build a focused sample of short-form videos associated with a topic tag.
- Topic dataset preparation: Combine video IDs, URLs, publication details, channel context, metrics, and retained source tags into structured research datasets.
YouTube Hashtag Search API Pro Tips
- Normalize your input list before submission so #technology and technology do not trigger duplicate collection work.
- Use one hashtag per task when attribution across overlapping feeds matters, because duplicate video IDs are saved once and retain one source hashtag.
- Treat results_limit as a per-hashtag ceiling; collection can stop earlier when the feed ends or exposes fewer eligible videos.
- Keep all and shorts samples separate when comparing formats so a mixed feed does not distort the short-form subset.
- Store thumbnail and source URLs as references rather than assuming they are permanent media downloads.
Related APIs
Beyond the YouTube Hashtag Search API, use these APIs when you need a different type of public YouTube data.
- YouTube Comments API — Collect public comments, authors, engagement, source videos, and conversation context.
- YouTube Videos API — Retrieve metadata, thumbnails, duration, and engagement for known video or Short URLs.
- YouTube Shorts API — Collect public Shorts, thumbnails, duration, publication details, and engagement by channel.
- YouTube Search API — Search public regular videos by keyword with supported metadata filters.
- YouTube Channel Search API — Find channels by keyword, with names, subscriber counts, avatars, and description snippets.
- YouTube Shorts Search API — Search Shorts by keyword, with links, captions, view counts, and vertical thumbnails.
- YouTube Channel Videos API
- YouTube Transcripts API
- YouTube Channels API
- YouTube Channel Live Videos API
- YouTube Comment Replies API
- YouTube Community Posts API
- YouTube Playlist Videos API
- YouTube Trending Shorts API
- YouTube Community Post API
- YouTube Community Post Comments API
- YouTube Related Videos API
- YouTube Search Suggestions API
- YouTube Email Finder API
- YouTube Trending Videos API