YouTube Related Videos API
YouTube related videos API — discover recommended videos for any video ID. Content suggestion and competitor video research from $0.01/call.
Retrieve the list of related/recommended videos that appear alongside a given video. Includes full video metadata and pagination support.
Try it live
Fill in the fields and hit Run to see a real response.
{
"ok": true,
"data": {
"meta": {
"videoId": "dQw4w9WgXcQ",
"title": "Rick Astley - Never Gonna Give You Up",
"viewCount": "1756095483"
},
"data": [
{
"type": "video",
"videoId": "abc123",
"title": "Related Video Title",
"channelTitle": "Channel Name",
"viewCount": "5000000"
}
]
}
}Features
Send a video ID to /v1/youtube/related and get the recommendation sidebar YouTube shows next to it — the related-video graph as JSON.
Each related entry carries type, videoId, title, channelTitle, and viewCount, so recommendations arrive display-ready without a follow-up lookup.
Use the continuation token to fetch deeper into the related list, building long recommendation chains from a single seed video.
Results use the identical schema as the Search endpoint, so code that consumes search hits handles related videos with no changes.
Use cases
Recommendation Engine
Build your own video recommendation system using YouTube's related video graph.
Content Discovery
Explore the content landscape around any topic by following chains of related videos.
Competitor Mapping
Discover which channels and videos YouTube associates with your content.
Playlist Curation
Automatically suggest related videos when building curated playlists for your platform.
Quick start
Copy this snippet and start making calls.
const res = await fetch('https://api.yepapi.com/v1/youtube/related', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"id": "dQw4w9WgXcQ"
}),
});
const data = await res.json();
console.log(data);The YouTube Related Videos API — tap the recommendation graph
The YouTube Related Videos API exposes the videos YouTube recommends alongside any given video. Send a seed video ID to /v1/youtube/related and get back a meta block describing the source video plus a data array of recommended videos, each with videoId, title, channelTitle, and viewCount. It's a direct window into YouTube's association graph.
Because results share the exact schema of the Search endpoint, you can reuse the same parsing code. At $0.01 per call, walking the related graph from video to video is cheap enough to map an entire content neighborhood.
What is a YouTube Related Videos API?
A YouTube Related Videos API returns the recommended videos that YouTube surfaces next to a given video — the "up next" and sidebar suggestions — as structured JSON. You pass one seed video ID and receive a meta object identifying that video plus an array of related videos, each with videoId, title, channelTitle, and viewCount. It is fundamentally a graph endpoint: it reveals which videos YouTube's algorithm considers adjacent to your seed, which is different from a keyword search (intent-based) or trending (popularity-based). It's the raw material for recommendation engines and content-discovery crawlers.
Build your own recommendation engine
Seed with a video your user just watched, fetch its related list, and present those as "watch next" — instant YouTube-style recommendations without training a model. Go further and crawl the graph: take each related videoId, fetch its related list, and you map a whole content cluster around a topic, revealing which channels YouTube keeps associating together. That same crawl powers competitor mapping — find out who YouTube places next to your videos. Feed discovered IDs into Playlist Curation by handing them to your playlist builder.
YouTube Related Videos API pricing — $0.01/call
Each related-videos lookup costs $0.01 and returns a full page plus a continuation token for more. There's no daily quota, which matters here because graph crawls multiply quickly — following relations two or three hops deep from a single seed can mean dozens of calls. At a flat cent each, mapping a content neighborhood stays inexpensive and predictable.
Related videos vs. search-based discovery
Search finds videos that match words; Related finds videos that match a video. If a user has already engaged with something specific, Related gives more relevant next-steps than re-searching keywords, because it leans on YouTube's behavioral signals rather than text matching. Many discovery tools use both: Search to enter a topic cold, then Related to drill into the neighborhood around the best result. All three live on one YepAPI key alongside the wider YouTube, TikTok, and Instagram endpoints.
Try the YouTube Related Videos API free
Claim $5 of free credit at signup — no card needed. That's 500 related-video lookups, enough to crawl several content clusters and see how YouTube's recommendation graph maps your niche.
Start making API calls in 30 seconds
$5 free credit on signup. No credit card required. Pay per call.
What developers say
“Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.”
“One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.”
“The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.”
Frequently asked questions
Retrieve the list of related/recommended videos that appear alongside a given video. Includes full video metadata and pagination support.
Each API call costs $0.01. No monthly minimums or subscriptions — you only pay for what you use.
Sign up for a free API key, then send a POST request to /v1/youtube/related. Check the code example above for a ready-to-use snippet in JavaScript, cURL, or Python.
YepAPI bundles SEO, AI, and web scraping APIs under one key with no monthly minimums. You get lower per-call pricing, a unified dashboard, and one billing account instead of managing multiple providers.
Ready to integrate?
Get your API key and start making calls in 30 seconds. $5 free credit on signup — no credit card required.
More youtube api endpoints
Search
$0.01YouTube search API — find videos, channels, and playlists with filters for date, duration, and type. Structured JSON results from $0.01/call.
Video Details
$0.02Full YouTube video metadata — title, views, likes, description, keywords, thumbnails, and available formats. Video intelligence from $0.02/call.
Comments
$0.01YouTube comments API — fetch top-level comments and replies with author info, likes, and timestamps. Sentiment analysis and engagement research from $0.01/call.