YouTube scraper and transcript API for videos, channels and search
Send any YouTube link and get the title, description, counts, channel and the full transcript with a timestamp on every line.
import { Bridgly } from "@bridgly/sdk";const client = new Bridgly({ apiKey: "bgly_YOUR_KEY" });const res = await client.youtube.getVideo({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ", transcriptLanguage: "en"});if (res.type === "success") { console.log(res.data);}npm install @bridgly/sdk
All 17 YouTube endpoints
The video endpoint does two jobs. The first is video details: title, full description, duration, view count, like count when the uploader shows it, publish time, category, tags, thumbnails in every size, and the channel’s ID, name, handle and URL.
The second is the transcript. You get it twice in the same response: once as a single block of text that is ready to hand to a model, and once as segments with a start time and duration in milliseconds, for anything that needs to point back into the video.
The response also lists every caption track the video has, with its language and whether it was written by a person or auto-generated, so you can see what is available before asking for a specific language.
The transcript endpoints go further. Ask for any caption language the video has, or get the same captions as an SRT or WebVTT subtitle file.
Search and playlists cover discovery. Search YouTube by keyword for videos, Shorts, channels and playlists, narrowed by type, upload date, length and features such as 4K, live or Creative Commons, or sorted by views. Get the searches YouTube suggests as a query is typed, list the videos or Shorts on a hashtag’s page, and list any public playlist’s videos in order along with its title, description, owner and counts.
Comments cover the conversation under a video. List a video’s comments, most popular or newest first, with each author, like and reply counts and whether the channel pinned or hearted it, then open any comment’s replies. Related videos list what YouTube recommends next to a video.
Channels cover the creator side. Get any channel’s profile from its link, handle or ID, with its full description, subscriber, video and view counts, joined date, country and the links it lists, then page through its videos, Shorts, live streams, playlists and community posts, or open a single post from its link.
YouTube Video and Transcript API
POST/youtube/get-videoYouTube transcript API: get any video’s timed transcript plus title, description, channel, duration, views, likes and keywords from its link, as JSON.1 credit per requestDetails →
Request body
urlstringrequired- The video to fetch. Accepts any YouTube video link — watch, youtu.be, Shorts, embed, or live — or a bare 11-character video ID.
includeTranscriptboolean · default true- Whether to also fetch the timed transcript in the same call. Defaults to true.
transcriptLanguagestring- Preferred transcript language as a BCP-47 code, e.g. "en" or "pt-BR". Defaults to the video's own default caption track.
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.
Response
{ "timeMs": 1840, "creditsCost": 1, "cachedAt": "2026-01-15T09:30:00.000Z", "data": { "id": "string", "url": "string", "title": "string", "description": "string", "durationSeconds": 0, "viewCount": 0, "likeCount": 0, "publishedAt": "string", "category": "string", "keywords": [ "string" ], "thumbnails": [ { "url": "string", "width": 0, "height": 0 } ], "channel": { "id": "string", "name": "string", "url": "string", "handle": "string" }, "isShort": true, "isLive": true, "isLiveNow": true, "isUpcoming": true, "liveStartAt": "string", "liveEndAt": "string", "isPrivate": true, "isUnlisted": true, "isFamilySafe": true, "isAgeRestricted": true, "isEmbeddable": true, "availableCountries": [ "string" ], "captionTracks": [ { "languageCode": "string", "languageName": "string", "isAutoGenerated": true } ], "transcript": { "languageCode": "string", "isAutoGenerated": true, "text": "string", "segments": [ { "startMs": 0, "durationMs": 0, "text": "string" } ] } }}YouTube Transcript API
POST/youtube/get-video-transcriptYouTube transcript API: get any video’s timed transcript in any of its caption languages, with every caption track it has, as JSON.1 credit per requestDetails →
Request body
urlstringrequired- The video whose transcript to fetch. Accepts any YouTube video link — watch, youtu.be, Shorts, embed, or live — or a bare 11-character video ID.
languagestring- Caption language to read, as a language code such as "en" or "pt-BR"; "en" also matches "en-US". Defaults to the caption track YouTube shows first. The languages a video has are listed in `captionTracks`.
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.
Response
{ "timeMs": 1840, "creditsCost": 1, "cachedAt": "2026-01-15T09:30:00.000Z", "data": { "languageCode": "string", "isAutoGenerated": true, "text": "string", "segments": [ { "startMs": 0, "durationMs": 0, "text": "string" } ], "videoId": "string", "captionTracks": [ { "languageCode": "string", "languageName": "string", "isAutoGenerated": true } ] }}YouTube Subtitles API
POST/youtube/get-video-subtitlesYouTube subtitles API: download any video’s captions as an SRT or WebVTT subtitle file, in any of its caption languages.1 credit per requestDetails →
Request body
urlstringrequired- The video whose transcript to fetch. Accepts any YouTube video link — watch, youtu.be, Shorts, embed, or live — or a bare 11-character video ID.
languagestring- Caption language to read, as a language code such as "en" or "pt-BR"; "en" also matches "en-US". Defaults to the caption track YouTube shows first. The languages a video has are listed in `captionTracks`.
formatenum · default srt- Subtitle file format: "srt" (SubRip) or "vtt" (WebVTT). Defaults to "srt".
- srt | vtt
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.
Response
{ "timeMs": 1840, "creditsCost": 1, "cachedAt": "2026-01-15T09:30:00.000Z", "data": { "languageCode": "string", "isAutoGenerated": true, "videoId": "string", "captionTracks": [ { "languageCode": "string", "languageName": "string", "isAutoGenerated": true } ], "format": "srt", "content": "string" }}YouTube Search API
POST/youtube/searchYouTube 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.1 credit per requestDetails →
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.
Response
{ "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" }}YouTube Search Suggestions API
POST/youtube/get-search-suggestionsYouTube search suggestions API: get the searches YouTube suggests as a query is typed, for any language and country, as JSON.1 credit per requestDetails →
Request body
querystringrequired- The start of a search, e.g. "how to bake".
languagestring- Language of the suggestions, as a language code such as "en" or "pt-BR". Defaults to "en".
countrystring- Country whose searches the suggestions come from, as a two-letter code such as "US" or "IN". Defaults to "US".
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.
Response
{ "timeMs": 1840, "creditsCost": 1, "cachedAt": "2026-01-15T09:30:00.000Z", "data": { "query": "string", "suggestions": [ "string" ] }}YouTube Hashtag API
POST/youtube/get-hashtag-videosYouTube hashtag API: list the videos or Shorts on any hashtag’s YouTube page, with how many videos and channels use it, as JSON.1 credit per requestDetails →
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.
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" }}YouTube Playlist API
POST/youtube/get-playlistYouTube playlist API: get a playlist’s title, description, owner, video and view counts, plus its videos in order with duration and views, as JSON.1 credit per requestDetails →
Request body
cursorstring- The previous response's `nextCursor`, to fetch the next page. Omit it for the first page.
urlstringrequired- The playlist to fetch. Accepts any YouTube link with a `list=` parameter, such as "https://www.youtube.com/playlist?list=PLFgquLnL59alCl_2TQvOiD5Vgm1hCaGSI" or a watch link playing the playlist, or a bare playlist ID.
countinteger · 1–100 · default 100- Number of results to return (1–100). Defaults to 100.
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.
Response
{ "timeMs": 1840, "creditsCost": 1, "cachedAt": "2026-01-15T09:30:00.000Z", "data": { "nextCursor": "string", "playlist": { "id": "string", "url": "string", "title": "string", "description": "string", "thumbnails": [ { "url": "string", "width": 0, "height": 0 } ], "channel": { "id": "string", "name": "string", "url": "string", "handle": "string" }, "videoCount": 0, "viewCount": 0, "updatedText": "string" }, "videos": [ { "id": "string", "url": "string", "title": "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" ], "position": 0 } ] }}YouTube Comments API
POST/youtube/get-video-commentsYouTube 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.1 credit per requestDetails →
Request body
cursorstring- The previous response's `nextCursor`, to fetch the next page. Omit it for the first page.
urlstringrequired- The video whose comments to list. Accepts any YouTube video link — watch, youtu.be, Shorts, embed, or live — or a bare 11-character video ID.
sortenum · default top- Comment order: "top" (the most popular first, as YouTube shows by default) or "newest" (most recent first). Defaults to "top".
- top | newest
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.
Response
{ "timeMs": 1840, "creditsCost": 1, "cachedAt": "2026-01-15T09:30:00.000Z", "data": { "nextCursor": "string", "comments": [ { "id": "string", "url": "string", "text": "string", "image": { "url": "string", "width": 0, "height": 0 }, "author": { "id": "string", "url": "string", "handle": "string", "name": "string", "avatars": [ { "url": "string", "width": 0, "height": 0 } ], "isVerified": true }, "likeCount": 0, "hasMoreReplies": true, "publishedText": "string", "isEdited": true, "isPinned": true, "isHeartedByCreator": true, "isAuthorChannelOwner": true, "replyCount": 0 } ], "totalCount": 0, "warning": "string" }}YouTube Comment Replies API
POST/youtube/get-comment-repliesYouTube 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.1 credit per requestDetails →
Request body
cursorstring- The previous response's `nextCursor`, to fetch the next page. Omit it for the first page.
urlstringrequired- The video the comment is on. Accepts any YouTube video link — watch, youtu.be, Shorts, embed, or live — or a bare 11-character video ID.
commentIdstringrequired- ID of the comment whose replies to list, as returned in a comment's `id`, e.g. "UgwPwTibxdgqCHZxktd4AaABAg".
countinteger · 1–10 · default 10- Number of results to return (1–10). Defaults to 10.
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.
Response
{ "timeMs": 1840, "creditsCost": 1, "cachedAt": "2026-01-15T09:30:00.000Z", "data": { "nextCursor": "string", "replies": [ { "id": "string", "url": "string", "text": "string", "image": { "url": "string", "width": 0, "height": 0 }, "author": { "id": "string", "url": "string", "handle": "string", "name": "string", "avatars": [ { "url": "string", "width": 0, "height": 0 } ], "isVerified": true }, "likeCount": 0, "hasMoreReplies": true, "publishedText": "string", "isEdited": true, "isPinned": true, "isHeartedByCreator": true, "isAuthorChannelOwner": true, "parentCommentId": "string" } ], "warning": "string" }}YouTube Channel API
POST/youtube/get-channelYouTube channel API: get any channel’s name, handle, description, subscriber, video and view counts, joined date, country and links from its link or ID, as JSON.1 credit per requestDetails →
Request body
channelstringrequired- The channel: its link, its handle, or its channel ID, e.g. "https://www.youtube.com/@RickAstleyYT", "@RickAstleyYT" or "UCuAXFkgsw1L7xaCfnd5JJOw".
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.
Response
{ "timeMs": 1840, "creditsCost": 1, "cachedAt": "2026-01-15T09:30:00.000Z", "data": { "id": "string", "url": "string", "handle": "string", "name": "string", "description": "string", "artistBio": "string", "avatars": [ { "url": "string", "width": 0, "height": 0 } ], "banners": [ { "url": "string", "width": 0, "height": 0 } ], "isVerified": true, "subscriberCount": 0, "videoCount": 0, "viewCount": 0, "joinedDate": "string", "country": "string", "links": [ { "title": "string", "url": "string" } ], "keywords": [ "string" ], "isFamilySafe": true, "hasBusinessEmail": true }}YouTube Channel Videos API
POST/youtube/get-channel-videosYouTube channel videos API: list every video a channel uploaded, newest first, with title, duration, views and publish time, from its link, handle or ID, as JSON.1 credit per requestDetails →
Request body
cursorstring- The previous response's `nextCursor`, to fetch the next page. Omit it for the first page.
channelstringrequired- The channel: its link, its handle, or its channel ID, e.g. "https://www.youtube.com/@RickAstleyYT", "@RickAstleyYT" or "UCuAXFkgsw1L7xaCfnd5JJOw".
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.
Response
{ "timeMs": 1840, "creditsCost": 1, "cachedAt": "2026-01-15T09:30:00.000Z", "data": { "nextCursor": "string", "videos": [ { "id": "string", "url": "string", "title": "string", "thumbnails": [ { "url": "string", "width": 0, "height": 0 } ], "durationSeconds": 0, "viewCount": 0, "publishedText": "string", "isShort": true, "isLive": true, "isUpcoming": true, "badges": [ "string" ] } ], "warning": "string" }}YouTube Channel Shorts API
POST/youtube/get-channel-shortsYouTube Shorts API: list every Short a channel posted, newest first, with title, view count and thumbnail, from the channel link, handle or ID, as JSON.1 credit per requestDetails →
Request body
cursorstring- The previous response's `nextCursor`, to fetch the next page. Omit it for the first page.
channelstringrequired- The channel: its link, its handle, or its channel ID, e.g. "https://www.youtube.com/@RickAstleyYT", "@RickAstleyYT" or "UCuAXFkgsw1L7xaCfnd5JJOw".
countinteger · 1–48 · default 48- Number of results to return (1–48). Defaults to 48.
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.
Response
{ "timeMs": 1840, "creditsCost": 1, "cachedAt": "2026-01-15T09:30:00.000Z", "data": { "nextCursor": "string", "videos": [ { "id": "string", "url": "string", "title": "string", "thumbnails": [ { "url": "string", "width": 0, "height": 0 } ], "viewCount": 0 } ], "warning": "string" }}YouTube Channel Live Streams API
POST/youtube/get-channel-streamsYouTube live streams API: list a channel’s live streams, those on air now and scheduled first, then past streams, with title, viewers or views and length, as JSON.1 credit per requestDetails →
Request body
cursorstring- The previous response's `nextCursor`, to fetch the next page. Omit it for the first page.
channelstringrequired- The channel: its link, its handle, or its channel ID, e.g. "https://www.youtube.com/@RickAstleyYT", "@RickAstleyYT" or "UCuAXFkgsw1L7xaCfnd5JJOw".
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.
Response
{ "timeMs": 1840, "creditsCost": 1, "cachedAt": "2026-01-15T09:30:00.000Z", "data": { "nextCursor": "string", "videos": [ { "id": "string", "url": "string", "title": "string", "thumbnails": [ { "url": "string", "width": 0, "height": 0 } ], "durationSeconds": 0, "viewCount": 0, "publishedText": "string", "isShort": true, "isLive": true, "isUpcoming": true, "badges": [ "string" ] } ], "warning": "string" }}YouTube Channel Playlists API
POST/youtube/get-channel-playlistsYouTube channel playlists API: list the playlists a channel shows on its Playlists tab, with title, video count and cover image, from its link, handle or ID, as JSON.1 credit per requestDetails →
Request body
cursorstring- The previous response's `nextCursor`, to fetch the next page. Omit it for the first page.
channelstringrequired- The channel: its link, its handle, or its channel ID, e.g. "https://www.youtube.com/@RickAstleyYT", "@RickAstleyYT" or "UCuAXFkgsw1L7xaCfnd5JJOw".
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.
Response
{ "timeMs": 1840, "creditsCost": 1, "cachedAt": "2026-01-15T09:30:00.000Z", "data": { "nextCursor": "string", "playlists": [ { "id": "string", "url": "string", "title": "string", "thumbnails": [ { "url": "string", "width": 0, "height": 0 } ], "videoCount": 0 } ], "warning": "string" }}YouTube Community Posts API
POST/youtube/get-channel-postsYouTube community posts API: list a channel’s posts with text, images, polls, attached videos, likes and comment counts, newest first, as JSON.1 credit per requestDetails →
Request body
cursorstring- The previous response's `nextCursor`, to fetch the next page. Omit it for the first page.
channelstringrequired- The channel: its link, its handle, or its channel ID, e.g. "https://www.youtube.com/@RickAstleyYT", "@RickAstleyYT" or "UCuAXFkgsw1L7xaCfnd5JJOw".
countinteger · 1–10 · default 10- Number of results to return (1–10). Defaults to 10.
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.
Response
{ "timeMs": 1840, "creditsCost": 1, "cachedAt": "2026-01-15T09:30:00.000Z", "data": { "nextCursor": "string", "posts": [ { "id": "string", "url": "string", "text": "string", "publishedText": "string", "likeCount": 0, "commentCount": 0, "author": { "id": "string", "name": "string", "url": "string", "handle": "string" }, "images": [ { "url": "string", "width": 0, "height": 0 } ], "video": { "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" ] }, "poll": { "choices": [ "string" ], "voteCount": 0 } } ], "warning": "string" }}YouTube Community Post API
POST/youtube/get-postYouTube community post API: get one post from its link or ID, with text, images, poll, attached video, like and comment counts and author, as JSON.1 credit per requestDetails →
Request body
urlstringrequired- The post: its link or its post ID, e.g. "https://www.youtube.com/post/Ugkx2lkCYp85jak0n5z7-bq_4ug2Rntk9iWT" or "Ugkx2lkCYp85jak0n5z7-bq_4ug2Rntk9iWT". Older links to a channel's Community tab with `lb=` work too.
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.
Response
{ "timeMs": 1840, "creditsCost": 1, "cachedAt": "2026-01-15T09:30:00.000Z", "data": { "id": "string", "url": "string", "text": "string", "publishedText": "string", "likeCount": 0, "commentCount": 0, "author": { "id": "string", "name": "string", "url": "string", "handle": "string" }, "images": [ { "url": "string", "width": 0, "height": 0 } ], "video": { "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" ] }, "poll": { "choices": [ "string" ], "voteCount": 0 } }}Why not the official YouTube API?
The YouTube Data API v3 is free, but it is quota-limited, and it does not give you transcripts of videos you do not own: downloading a caption track requires the video owner’s authorization.
Transcripts of any public video
Send any public video link and get its transcript, as plain text and as timed segments. No owner authorization involved.
No daily quota
Projects start with 10,000 quota units a day on the official API. Bridgly charges per video, with no daily allowance to plan around.
No Google Cloud project
There is no Cloud project, API key restriction or OAuth consent screen to set up. One Bridgly key covers YouTube and every other platform.
Your first YouTube call
curl -X POST "https://api.bridgly.app/youtube/get-video" \ -H "Authorization: Bearer $BRIDGLY_KEY" \ -H "Content-Type: application/json" \ -d '{ "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ", "transcriptLanguage": "en"}'With Bridgly connected to your AI agent, ask:
Get the transcript of youtube.com/watch?v=dQw4w9WgXcQ and summarize it in five bullet points with timestamps.
What people build with YouTube data
Summarize or question a video
Pass transcript.text to a model to get a summary, pull out action items, or answer a question about a two-hour talk without watching it.
Make video searchable
Index the timed segments so a search hit can link to the exact second something was said.
Turn talks into articles
Use the transcript and the description as source material for a write-up, show notes or a newsletter.
Give an agent a way to watch
Through MCP, a model can call this endpoint itself whenever a user pastes a YouTube link.
What the YouTube API does not do
- Each video, transcript and channel endpoint takes one video or channel per call.
- Channel subscriber counts are rounded as YouTube shows them (4.56M), and channels that hide theirs return null. A channel’s business email is not available.
- Search results come in YouTube’s own order and can’t be sorted by upload date, which YouTube’s search no longer offers. Mixes YouTube generates for each viewer can’t be fetched as playlists.
- Comment and reply like counts come back rounded as YouTube shows them (1.1M), and comment times as YouTube words them ("3 days ago"). A video with comments turned off returns an empty list, with a warning saying so.
- Related videos are the suggestions a signed-out viewer sees, and they change between requests.
- A transcript is only returned when the video has a caption track, written or auto-generated. Audio is not transcribed.
- YouTube removed its Trending page, so there is no trending feed. Hashtag Shorts show only their title, thumbnail, view count and channel ID.
- Private videos are not returned. Age-restricted and members-only videos may come back without a transcript.
YouTube API questions
What if a video has no captions?
You still get the video details. The transcript is only returned when the video has a caption track, and captionTracks will be empty when it has none.
Are auto-generated captions supported?
Yes. Both the caption track list and the returned transcript carry an isAutoGenerated flag, so you can tell speech-recognition captions from ones a person wrote.
Can I get the transcript in a specific language?
Yes, when the video has a caption track in that language. Send its code, such as "en" or "pt-BR", as transcriptLanguage. Without it you get the video’s default track.
Which link formats work?
Standard watch links, youtu.be short links, Shorts, embeds and live URLs are all accepted, as is a bare 11-character video ID.
Do I need a YouTube Data API key or quota?
No. You authenticate with your Bridgly API key only. There is no Google Cloud project to set up and no daily quota to manage on your side.
How much does a transcript cost?
One credit per video, with the video details included, however long the video is. What a credit costs in dollars depends on your pricing package, and goes as low as $1.67 per 1,000 credits at volume.
YouTubeAPI guides & comparisons
All guides →Try it with a free tool
Look up a public example in your browser before connecting the API. No account needed.
Your API key and credits work on every platform. See all platforms.
Start pulling YouTube data
100 free credits on business email, no card. Your first call takes a minute.