YouTube Hashtag API
List the videos or Shorts on a hashtag's YouTube page, in YouTube's order, with how many videos and channels use the hashtag. Accepts the hashtag with or without "#", or its link. Page through results with the `cursor` from the previous response's `nextCursor`. For some hashtags YouTube shows only one page of videos, so `nextCursor` is null after the first page.
- Endpoint
- POST /youtube/get-hashtag-videos
- Price
- 1 credit per request
- SDK
- client.youtube.getHashtagVideos()
- MCP tool
- youtube_get_hashtag_videos
curl -X POST "https://api.bridgly.app/youtube/get-hashtag-videos" \ -H "Authorization: Bearer $BRIDGLY_KEY" \ -H "Content-Type: application/json" \ -d '{ "hashtag": "#cooking", "type": "videos", "count": 10}'import osimport requestsresponse = requests.post( "https://api.bridgly.app/youtube/get-hashtag-videos", headers={"Authorization": f"Bearer {os.environ['BRIDGLY_KEY']}"}, json={ "hashtag": "#cooking", "type": "videos", "count": 10, },)data = response.json()const response = await fetch("https://api.bridgly.app/youtube/get-hashtag-videos", { method: "POST", headers: { Authorization: `Bearer ${process.env.BRIDGLY_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ "hashtag": "#cooking", "type": "videos", "count": 10 }),});const data = await response.json();import { Bridgly } from "@bridgly/sdk";const client = new Bridgly({ apiKey: "bgly_YOUR_KEY" });const res = await client.youtube.getHashtagVideos({ hashtag: "#cooking", type: "videos", count: 10});if (res.type === "success") { console.log(res.data);}What does the YouTube Hashtag API return?
YouTube hashtag API: list the videos or Shorts on any hashtag’s YouTube page, with how many videos and channels use it, as JSON. Every response has the same envelope: the result in data, plus timeMs and the creditsCost of the call.
Request body
cursorstring- The previous response's `nextCursor`, to fetch the next page. Omit it for the first page.
hashtagstringrequired- The hashtag, with or without "#", or its YouTube link, e.g. "#minecraft", "minecraft" or "https://www.youtube.com/hashtag/minecraft".
typeenum · default videos- Which tab of the hashtag page to list: "videos" (the default) or "shorts".
- videos | shorts
countinteger · 1–30 · default 30- Number of results to return (1–30). Defaults to 30.
cacheMaxAgeHoursinteger- Accept a cached result up to this many hours old, at no cost; its `cachedAt` says when it was fetched. Without one that recent, fresh data is fetched at the normal price. Leave it out to always get fresh data, e.g. 24.
cacheOnlyboolean- Return only a cached result, never fresh data. With `cacheMaxAgeHours`, only one that recent; without it, the latest of any age. Responds 404, at no cost, when there is none, e.g. true.
Example response
{ "timeMs": 1840, "creditsCost": 1, "cachedAt": "2026-01-15T09:30:00.000Z", "data": { "nextCursor": "string", "hashtag": "string", "videoCount": 0, "channelCount": 0, "videos": [ { "id": "string", "url": "string", "title": "string", "descriptionSnippet": "string", "thumbnails": [ { "url": "string", "width": 0, "height": 0 } ], "durationSeconds": 0, "viewCount": 0, "publishedText": "string", "channel": { "id": "string", "name": "string", "url": "string", "handle": "string" }, "isShort": true, "isLive": true, "isUpcoming": true, "badges": [ "string" ] } ], "warning": "string" }}What can you build with the YouTube Hashtag API?
Track campaigns
Follow the videos posted under a brand or event hashtag.
Spot trends
See which videos and Shorts lead a popular hashtag.
Size a niche
Compare how many videos and channels use related hashtags.
YouTube Hashtag API questions
Can I get only Shorts for a hashtag?
Yes. Set type to "shorts" to list the hashtag’s Shorts tab. Shorts come with their title, thumbnail and view count.
What if nobody uses the hashtag?
You get an empty list with a warning saying no videos were found.
How do I use the YouTube Hashtag API?
Send a POST request to https://api.bridgly.app/youtube/get-hashtag-videos with hashtag in the JSON body and your API key in the Authorization header. In the TypeScript SDK, call client.youtube.getHashtagVideos(). AI agents connected to Bridgly over MCP can call the youtube_get_hashtag_videos tool.
How much does the YouTube Hashtag API cost?
Costs 1 credit per request. Credits cost $2.00 per 1,000 on pay-as-you-go and as low as $1.67 per 1,000 at volume. New accounts on a business email start with 100 free credits, and failed requests are never charged.
More YouTube endpoints
The same API key works on every endpoint. See all YouTube Transcript API endpoints.
- YouTube Playlist API→YouTube playlist API: get a playlist’s title, description, owner, video and view counts, plus its videos in order with duration and views, as JSON.
- YouTube Comments API→YouTube comments API: list the comments on any video or Short from its link, top or newest first, with text, author, likes, reply count and pinned and hearted status, as JSON.
- YouTube Comment Replies API→YouTube comment replies API: list the replies to any YouTube comment from the video link and comment ID, with text, author, likes and the comment each reply answers, as JSON.
- YouTube Related Videos API→YouTube related videos API: list the videos and Shorts YouTube recommends next to any video, with title, channel, duration, views and publish time, as JSON.
Try the YouTube Hashtag API
100 free credits on business email, no card. Your first call takes a minute.