YouTube Related Videos API
List the videos and Shorts YouTube recommends next to a video, from its link, with each one's title, channel, duration, view count and publish time. Page through results with the `cursor` from the previous response's `nextCursor`. Recommendations change between requests.
- Endpoint
- POST /youtube/get-related-videos
- Price
- 1 credit per request
- SDK
- client.youtube.getRelatedVideos()
- MCP tool
- youtube_get_related_videos
curl -X POST "https://api.bridgly.app/youtube/get-related-videos" \ -H "Authorization: Bearer $BRIDGLY_KEY" \ -H "Content-Type: application/json" \ -d '{ "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ", "count": 10}'import osimport requestsresponse = requests.post( "https://api.bridgly.app/youtube/get-related-videos", headers={"Authorization": f"Bearer {os.environ['BRIDGLY_KEY']}"}, json={ "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ", "count": 10, },)data = response.json()const response = await fetch("https://api.bridgly.app/youtube/get-related-videos", { method: "POST", headers: { Authorization: `Bearer ${process.env.BRIDGLY_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ", "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.getRelatedVideos({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ", count: 10});if (res.type === "success") { console.log(res.data);}What does the YouTube Related Videos API return?
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. 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.
urlstringrequired- The video to find related videos for. Accepts any YouTube video link — watch, youtu.be, Shorts, embed, or live — or a bare 11-character video ID.
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
{ "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", "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 Related Videos API?
Map competitors
See which channels YouTube puts next to your videos.
Find content ideas
Discover videos viewers of a topic are shown next.
Study recommendations
Track how YouTube’s suggestions for a video change over time.
YouTube Related Videos API questions
Are the recommendations the same for every request?
No. YouTube changes its suggestions between requests, so two calls for the same video can return different videos. They are the suggestions a signed-out viewer sees, not those for a particular account.
How do I use the YouTube Related Videos API?
Send a POST request to https://api.bridgly.app/youtube/get-related-videos with url in the JSON body and your API key in the Authorization header. In the TypeScript SDK, call client.youtube.getRelatedVideos(). AI agents connected to Bridgly over MCP can call the youtube_get_related_videos tool.
How much does the YouTube Related Videos 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 Channel Videos API→YouTube 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.
- YouTube Channel API→YouTube 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.
- YouTube Channel Shorts API→YouTube 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.
- YouTube Channel Live Streams API→YouTube 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.
Try the YouTube Related Videos API
100 free credits on business email, no card. Your first call takes a minute.