YouTube Related Videos (Web)
https://api.sandbase.ai/v1/api/youtube/web/relate-videoReturns a list of related videos for a given YouTube video ID. Supports pagination using a continuation token to retrieve additional recommendations.
- Price
- $0.0015USD / callFirst 100 calls per day free (shared per organization)
- Method
- POST
- Response
- JSON
- Parameters
- 1 required · 1 optional
Try the model
Playground
[
{
"data": {
"continuation_token": "CBQSKRILTHVJTDVKQVRac2PAAQDIAQDgAQGiAg0o____________AUAA-AIAGAAqnwZNZ3NJemN6bHdMR3p4OEdKQWRyT2ktc013d1FLd0FRS0FfSS1BQW9Od2o0S0NLNmU2OWUzeTVqc0JBb0Q4ajRBQ2c3Q1Bnc0lsSlhOc01iTnBvWDlBUW9EOGo0QUNnN0NQZ3NJNlBHSTFQT2J6N2VQQVFvRDhqNEFDZzNDUGdvSWtkSDc1bzdSOHNnSUNnUHlQZ0FLRHNJLUN3aW5vb2lPeHRPaDdZd0JDZ1B5UGdBS0RjSS1DZ2pEeFBhcm9aZWo1ME1LQV9JLUFBb093ajRMQ01XbV81VDdwTHp3eGdFS0FfSS1BQW9Pd2o0TENJejQ4WnZ0bGZqLWhBRUtBX0ktQUFvT3dqNExDTF9rdHB6YmhvbVhfUUVLQV9JLUFBb053ajRLQ0pMTDN0cWV6X3YwTmdvRDhqNEFDZzNDUGdvSWlacnV1NDZCc0pRS0NnUHlQZ0FLRHNJLUN3amM4WS1Xal8ydnNJb0JDZ1B5UGdBS0RjSS1DZ2lGcHQ2SnlMYVZ6M1FLQV9JLUFBb053ajRLQ0txQjJZWFUwOTJXTWdvRDhqNEFDZzdDUGdzSTNKR0xyZV9HeS1HMEFRb0Q4ajRBQ2c3Q1Bnc0kxb3JLdmNYNDdZdWRBUW9EOGo0QUNnN0NQZ3NJM2NuNzFMYmQzTGlhQVFvRDhqNEFDZzNDUGdvSWlxaVMyOW43N2E1ZkNnUHlQZ0FLRHNJLUN3ajhnOGJYa09LT2o5VUJDZ1B5UGdBS0RzSS1Dd2pOek9YQXNiUEh3WWtCRWhRQUFnUUdDQW9NRGhBU0ZCWVlHaHdlSUNJa0pob0VDQUFRQVJvRUNBSVFBeG9FQ0FRUUJSb0VDQVlRQnhvRUNBZ1FDUm9FQ0FvUUN4b0VDQXdRRFJvRUNBNFFEeG9FQ0JBUUVSb0VDQklRRXhvRUNCUVFGUm9FQ0JZUUZ4b0VDQmdRR1JvRUNCb1FHeG9FQ0J3UUhSb0VDQjRRSHhvRUNDQVFJUm9FQ0NJUUl4b0VDQ1FRSlJvRUNDWVFKeW9VQUFJRUJnZ0tEQTRRRWhRV0dCb2NIaUFpSkNZag93YXRjaC1uZXh0LWZlZWQ%3D",
"number_of_videos": 20,
"videos": [
{
"author": "CozyCraft",
"category": null,
"channel_id": "UCeu6U67OzJhV1KwBansH3Dg",
"description": "",
"is_live_content": null,
"keywords": [],
"number_of_views": 525000,
"published_time": "9 months ago",
"thumbnails": [
{
"height": 94,
"url": "https://i.ytimg.com/vi/BNhiW3r6zy4/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLBgILLgwTXfFLQu976RwlbLa-UrBA",
"width": 168
},
{
"height": 188,
"url": "https://i.ytimg.com/vi/BNhiW3r6zy4/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLBHrP5fLfb3Rg_Fk-fdvd6j3Yz3EQ",
"width": 336
}
],
"title": "🍃 slow down and simply be… (minecraft music w/ ambience)",
"type": "NORMAL",
"video_id": "BNhiW3r6zy4",
"video_length": "8:00:00"
},
{
"author": "Olde World Melodies",
"category": null,
"channel_id": "UCZ33CxqWeIjrFQaXrbA1_aQ",
"description": "",
"is_live_content": null,
"keywords": [],
"number_of_views": 19000000,
"published_time": "1 year ago",
"thumbnails": [
{
"height": 94,
"url": "https://i.ytimg.com/vi/_QqabGYTSpQ/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLBErFvqh7G0sVV8HRU6tb39keqflQ",
"width": 168
},
{
"height": 188,
"url": "https://i.ytimg.com/vi/_QqabGYTSpQ/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLAo-VvH7jlYhAqDKcPOOC6Q_Nr6gA",
"width": 336
}
],
"title": "Midnight Vale - Peaceful Fantasy Ambience & Music | 10,000 Special",
"type": "NORMAL",
"video_id": "_QqabGYTSpQ",
"video_length": "1:50:58"
},
{
"author": "CozyCraft",
"category": null,
"channel_id": "UCeu6U67OzJhV1KwBansH3Dg",
"description": "",
"is_live_content": null,
"keywords": [],
"number_of_views": 26000,
"published_time": "1 year ago",
"thumbnails": [
{
"height": 94,
"url": "https://i.ytimg.com/vi/j2883zqCOOg/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLCVVAGxwR2TIyfzDduJq0eV6_NlLQ",
"width": 168
},
{
"height": 188,
"url": "https://i.ytimg.com/vi/j2883zqCOOg/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLA2gXO0Q8aTOzFvXnRBPa2MyI-qwg",
"width": 336
}
],
"title": "the air is warm, the breeze is light... (minecraft music & ambience)",
"type": "NORMAL",
"video_id": "j2883zqCOOg",
"video_length": "8:00:00"
},
{
"author": "bits & hits",
"category": null,
"channel_id": "UCOxtz12SJHLzY2Ylo5O9jpA",
"description": "",
"is_live_content": null,
"keywords": [],
"number_of_views": 320000,
"published_time": "1 year ago",
"thumbnails": [
{
"height": 94,
"url": "https://i.ytimg.com/vi/CJHKiOze6JE/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLBhoDgCMGYTLJam09ym-oH5e9Pgog",
"width": 168
},
{
"height": 188,
"url": "https://i.ytimg.com/vi/CJHKiOze6JE/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLB1Denfpkwf-zYd7eBpwneJi7pLQw",
"width": 336
}
],
"title": "The Elder Scrolls but it's lofi beats | No AI",
"type": "NORMAL",
"video_id": "CJHKiOze6JE",
"video_length": "2:00:00"
},
{
"author": "Nexa Crafts Ambience",
"category": null,
"channel_id": "UCY7M2YtUs5U3uaK5HnsOmkQ",
"description": "",
"is_live_content": null,
"keywords": [],
"number_of_views": 118,
"published_time": "2 weeks ago",
"thumbnails": [
{
"height": 94,
"url": "https://i.ytimg.com/vi/jNqGnGHCESc/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLDwwm569cSu-Yr0OyJmuazMSjuq_Q",
"width": 168
},
{
"height": 188,
"url": "https://i.ytimg.com/vi/jNqGnGHCESc/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLCpoHbCyMNW38cqjB-iPyQjBWdyAw",
"width": 336
}
],
"title": "slow down, you're doing just fine 🌿(minecraft relaxing music & water ambience)",
"type": "NORMAL",
"video_id": "jNqGnGHCESc",
"video_length": "8:00:00"
},
{
"author": "Cozy Bed",
"category": null,
"channel_id": "UCGXU4pM_I0JdUakMgNNrdcA",
"description": "",
"is_live_content": null,
"keywords": [],
"number_of_views": 26000000,
"published_time": "1 year ago",
"thumbnails": [
{
"height": 94,
"url": "https://i.ytimg.com/vi/Q86MuhV9okM/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLDO_8amyShemd3KU9kMs-s-bqvqaw",
"width": 168
},
{
"height": 188,
"url": "https://i.ytimg.com/vi/Q86MuhV9okM/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLDPG-o1vm94L_aa4a1gs4mICfrLrA",
"width": 336
}
],
"title": "everyone is asleep but you...(minecraft c418 + soft rain ambience)",
"type": "NORMAL",
"video_id": "Q86MuhV9okM",
"video_length": "8:00:01"
},
{
"author": "CozyCraft",
"category": null,
"channel_id": "UCeu6U67OzJhV1KwBansH3Dg",
"description": "",
"is_live_content": null,
"keywords": [],
"number_of_views": 60000,
"published_time": "2 years ago",
"thumbnails": [
{
"height": 94,
"url": "https://i.ytimg.com/vi/xuDxJ7Kf00U/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLAmX2bI-ep5dg6C1ULUcuv_yN54pA",
"width": 168
},
{
"height": 188,
"url": "https://i.ytimg.com/vi/xuDxJ7Kf00U/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLBJHrKlWnxVIvDt7oeibZ97_EC2gA",
"width": 336
}
],
"title": "We don’t remember days, we remember moments.",
"type": "NORMAL",
"video_id": "xuDxJ7Kf00U",
"video_length": "8:00:01"
},
{
"author": "Coffee & Build",
"category": null,
"channel_id": "UCkLFeopJc1MrnQwQnlu7-gA",
"description": "",
"is_live_content": null,
"keywords": [],
"number_of_views": 757000,
"published_time": "2 years ago",
"thumbnails": [
{
"height": 94,
"url": "https://i.ytimg.com/vi/hP3grtN8fAw/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLBDtJqlYJhUCpQVLL82PxtP9maaKQ",
"width": 168
},
{
"height": 188,
"url": "https://i.ytimg.com/vi/hP3grtN8fAw/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLAzR3G3fGuXQaucKact_WZDB43dsA",
"width": 336
}
],
"title": "🍄 2023 𝘸𝘢𝘴 𝘢 𝘤𝘳𝘢𝘻𝘺 𝘺𝘦𝘢𝘳? 𝘢𝘯𝘺𝘸𝘢𝘺𝘴, 𝘪𝘵'𝘴 2015, 𝘭𝘦𝘵'𝘴 𝘩𝘰𝘱 𝘰𝘯 𝘔𝘪𝘯𝘦𝘤𝘳𝘢𝘧𝘵...",
"type": "NORMAL",
"video_id": "hP3grtN8fAw",
"video_length": "2:55:23"
},
{
"author": "Retrosteve",
"category": null,
"channel_id": "UCujpPnt1JSrhBqJbrdjfT0w",
"description": "",
"is_live_content": null,
"keywords": [],
"number_of_views": 272000,
"published_time": "2 months ago",
"thumbnails": [
{
"height": 94,
"url": "https://i.ytimg.com/vi/_S4kNbONsj8/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLBsEjgdr2GCgCdPE2FmFGdC2azQdQ",
"width": 168
},
{
"height": 188,
"url": "https://i.ytimg.com/vi/_S4kNbONsj8/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLCVfPsybQaR9lQ7pbajRw_D9sGh8g",
"width": 336
}
],
"title": "Rainy Cave Hideout | Minecraft Music with Soft Rain for Sleeping & Studying (10 Hours)",
"type": "NORMAL",
"video_id": "_S4kNbONsj8",
"video_length": "10:00:01"
},
{
"author": "CozyCraft",
"category": null,
"channel_id": "UCeu6U67OzJhV1KwBansH3Dg",
"description": "",
"is_live_content": null,
"keywords": [],
"number_of_views": 140000,
"published_time": "1 year ago",
"thumbnails": [
{
"height": 94,
"url": "https://i.ytimg.com/vi/NunueetXpZI/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLA8Qdjo0pU3EHacVQdqF5b546ODqQ",
"width": 168
},
{
"height": 188,
"url": "https://i.ytimg.com/vi/NunueetXpZI/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLDW80-HPb7ljzKsbk4beU5gzIwmmQ",
"width": 336
}
],
"title": "🌧️ Let the rain quiet your mind... (minecraft music box & ambience)",
"type": "NORMAL",
"video_id": "NunueetXpZI",
"video_length": "8:00:01"
},
{
"author": "CozyCraft",
"category": null,
"channel_id": "UCeu6U67OzJhV1KwBansH3Dg",
"description": "",
"is_live_content": null,
"keywords": [],
"number_of_views": 578000,
"published_time": "4 months ago",
"thumbnails": [
{
"height": 94,
"url": "https://i.ytimg.com/vi/CijACOd7jQk/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLDxNdB_6hJMQXVw8XT3HvXk8JeAfw",
"width": 168
},
{
"height": 188,
"url": "https://i.ytimg.com/vi/CijACOd7jQk/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLCLjdp2VIvrvjL8TDnKjUiRvMVCOQ",
"width": 336
}
],
"title": "just relax, everything can wait… (minecraft music & ambience)",
"type": "NORMAL",
"video_id": "CijACOd7jQk",
"video_length": "11:00:00"
},
{
"author": "CozyCraft",
"category": null,
"channel_id": "UCeu6U67OzJhV1KwBansH3Dg",
"description": "",
"is_live_content": null,
"keywords": [],
"number_of_views": 40000,Examples
Select an example to load its inputs and result into the playground.
Model card
Specifications
Pricing
- Base price
- $0.0015 / run
- Daily free calls
- First 100 calls per day free (shared per organization)
Request & response
- Method
- POST
- Request body
- application/json
- Response
- application/json
- Execution
- sync
Parameters
- video_id
- string · required
- continuation_token
- string · optional
Access
- Provider
- YouTube
- API
- Platform API
- Base URL
- https://api.sandbase.ai
- Endpoint
- /v1/api/youtube/web/relate-video
- Authentication
- Bearer API key
API README
YouTube Related Videos (Web) API
Retrieve recommended and related videos for a specific video using video_id. Pass continuation_token to load additional pages of related content.
Use cases
- Build video recommendation feeds based on a currently playing item.
- Discover related content and channels in specific topic clusters.
- Extract recommended video metadata for audience interest analysis.
Request
curl -X POST "https://api.sandbase.ai/v1/api/youtube/web/relate-video" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"video_id": "LuIL5JATZsc"}'
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
video_id | string | Yes | Video ID, get it from the URL, for example: https://www.youtube.com/watch?v=LuIL5JATZsc, the id is LuIL5JATZsc. |
continuation_token | string | No | Token to continue fetching related videos. |
Example response
Real response for the request above, trimmed to the main fields. User names and long IDs are masked.
{
"videos": [
{
"author": "CozyCraft",
"channel_id": "UCeu6U67OzJhV1KwBansH3Dg",
"number_of_views": 0,
"published_time": "5mo ago",
"title": "just relax, everything can wait… (minecraft music & ambience)",
"type": "NORMAL",
"video_id": "CijACOd7jQk"
}
]
}
Notes
- Obtain
video_iddirectly from the YouTube video URL. - Use
continuation_tokento paginate through subsequent related videos.
Related APIs
- YouTube Channel ID Lookup: Retrieves the unique YouTube channel ID associated with a specific channel name.
- YouTube Channel ID from URL (V2): Resolves a YouTube channel URL into its unique channel ID and standardized channel URL.
- YouTube Channel Information: Returns profile details and external links for a specified YouTube channel.
Start building
Send your first request
Platform API endpoint with unified authentication and usage tracking.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/api/youtube/web/relate-video" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"video_id": "LuIL5JATZsc"
}
SANDBASE_JSON
)
printf '%s\n' "$result"Explore more
Related APIs
| API | Price | Response | Released |
|---|---|---|---|
YouTube Related Videos (Web)This API YouTube | $0.0015 per call | JSON | Jul 31, 2026 |
YouTube | $0.0015 per call | JSON | Jul 31, 2026 |
YouTube | $0.0015 per call | JSON | Jul 31, 2026 |
YouTube | $0.0015 per call | JSON | Jul 31, 2026 |
YouTube | $0.0015 per call | JSON | Jul 31, 2026 |
YouTube | $0.0015 per call | JSON | Jul 31, 2026 |
Questions
FAQ
How do I use the YouTube Related Videos (Web) API?
Send a POST request to https://api.sandbase.ai/v1/api/youtube/web/relate-video with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.
How much does the YouTube Related Videos (Web) API cost?
$0.0015 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.
What parameters does the YouTube Related Videos (Web) API accept?
Required: video_id (string). Optional: continuation_token (string). The Parameters table and the Playground on this page list every field.
What does the YouTube Related Videos (Web) API return?
A JSON response returned in the same HTTP request (synchronous). The README on this page includes a sample response.
Do I need a YouTube developer account or API key?
No. YouTube Related Videos (Web) runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for YouTube API access separately.
