YOUTUBE TRANSCRIPT API

YouTube Search API

Search YouTube by keyword and get videos, Shorts, channels and playlists in YouTube's order, each tagged with its `type`. Narrow the results to one kind, sort by relevance or view count, and filter videos by upload date, length and features such as 4K, live or Creative Commons. Page through results with the `cursor` from the previous response's `nextCursor`.

Endpoint
POST /youtube/search
Price
1 credit per request
SDK
client.youtube.search()
MCP tool
youtube_search
Terminal
curl -X POST "https://api.bridgly.app/youtube/search" \
-H "Authorization: Bearer $BRIDGLY_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "lofi hip hop",
"type": "video",
"count": 10
}'
[ REQUEST AND RESPONSE ]

What does the YouTube Search API return?

YouTube search API: search YouTube by keyword for videos, Shorts, channels and playlists, filtered by type, upload date, length and features such as 4K or live, 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.
querystringrequired
Search keywords, e.g. "lofi hip hop".
typeenum
Which kind of result to return: "all" (the mixed results YouTube shows by default), "video", "short", "channel" or "playlist". Defaults to "all".
all | video | short | channel | playlist
sortByenum
Result order: "relevance" (YouTube's default) or "viewCount" (most viewed first). Defaults to "relevance".
relevance | viewCount
uploadDateenum
Only return videos uploaded in the last day, week, month or year. Applies to videos and Shorts, so channels and playlists are left out when it is set.
today | week | month | year
durationenum
Only return videos of this length: under 3 minutes, 3 to 20 minutes, or over 20 minutes. Applies to videos and Shorts, so channels and playlists are left out when it is set.
under3Minutes | 3to20Minutes | over20Minutes
featuresenum[]
Only return videos that have all of these features, as in YouTube's search filters: "live" (live now), "4k", "hd", "subtitles" (subtitles or closed captions), "creativeCommons" (Creative Commons license), "360" (360°), "vr180", "3d", "hdr", "location" (tagged with a place) or "purchased" (bought by the viewer, which signed-out searches never match). Applies to videos and Shorts, so channels and playlists are left out when it is set.
countinteger · 1–20 · default 20
Number of results to return (1–20). Defaults to 20.
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

200 OK · application/json
{
"timeMs": 1840,
"creditsCost": 1,
"cachedAt": "2026-01-15T09:30:00.000Z",
"data": {
"nextCursor": "string",
"results": [
{
"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"
],
"type": "video"
}
],
"warning": "string"
}
}
[ USE CASES ]

What can you build with the YouTube Search API?

Research topics

See which videos and channels YouTube shows for a keyword.

Monitor mentions

Find new videos that mention your brand or product each day.

Find creators

Discover channels making videos about a subject.

[ FAQ ]

YouTube Search API questions

Can I search only Shorts, channels or playlists?

Yes. Set type to "video", "short", "channel" or "playlist". Leave it at "all" for the mixed results YouTube shows by default.

Can I search only 4K, live or Creative Commons videos?

Yes. Set features to any of YouTube’s feature filters: live, 4k, hd, subtitles, creativeCommons, 360, vr180, 3d, hdr, location or purchased. Results have all of the features you set.

Can I sort YouTube search results by upload date?

YouTube no longer sorts its search by upload date. Set uploadDate to keep only videos from the last day, week, month or year, or set sortBy to "viewCount" for the most viewed first.

How do I use the YouTube Search API?

Send a POST request to https://api.bridgly.app/youtube/search with query in the JSON body and your API key in the Authorization header. In the TypeScript SDK, call client.youtube.search(). AI agents connected to Bridgly over MCP can call the youtube_search tool.

How much does the YouTube Search 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.

Try the YouTube Search API

100 free credits on business email, no card. Your first call takes a minute.

APIMCPSDKCLI
free credits

On business email signup. No credit card required.

Start free with 100 credits