Introducing the Instagram APIRead more →

YouTube Related Videos API. Videos YouTube recommends next, page by page.

Videos YouTube recommends next, with views. We handle the proxies, blocks and platform changes.

In your agent: YouTube MCP server →

YouTube Related Videos API at a glance

Returns the videos YouTube recommends beside a video, short or live stream, from its link or ID, a page at a time. Each has its title, view count, upload time, length, channel and whether it is live now, and with fill=true its likes, comments, description and exact counts. A deleted video returns not_found, a private or age-restricted one private_or_unavailable.

GET /v1/youtube/post_related_posts

Read the API reference
  • 1 credit per page, +1 per started group of 15 videos filled in (with fill=true), up to 5 credits, $0.75–$1.97 per 1,000 pages
  • 25 typed fields null when unknown
  • 50 videos YouTube recommends next per page, YouTube's up-next order for a signed-out viewer, which changes between requests
  • url is all it needs, e.g. https://www.youtube.com/watch?v=dQw4w9WgXcQ

Send one request. Get up to 50 videos YouTube recommends next back.

Copy the request in your language, or hand it to your agent. Sign up for an API key and your first 100 credits are free.

$ npm install socialtap
url = https://www.youtube.com/watch?v=dQw4w9WgXcQ
GET /v1/youtube/post_related_postsTry in
// Node 18+: save this as app.mjs (an ES module) and run: node app.mjs
const params = new URLSearchParams({
  url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
});
const res = await fetch(`https://socialtap.dev/v1/youtube/post_related_posts?${params}`, {
  headers: { "x-api-key": process.env.SOCIALTAP_API_KEY ?? "" },
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
const { data, page, meta } = body;
console.log(data, meta.credits_charged);
200 OK · GET https://socialtap.dev/v1/youtube/post_related_postsLong arrays and strings are shortened here. Real responses are complete.Docs

One schema on 24 platforms.

The response reference lists every field, its type and when it is null. See the full schema.

  • Null means unknown

    A field YouTube doesn't show is null, never zero or an empty string, so a real zero always means zero.

  • What it accepts

    A YouTube video, short or live link (youtube.com/watch?v=<id>, youtu.be/<id>, /shorts/<id>, /live/<id>, /embed/<id>; m., music. or youtube-nocookie.com hosts) or an 11-character video ID.

  • Write one parser

    YouTube, TikTok, Instagram and 21 more platforms answer in these fields, so the code that reads one reads them all.

platformstring
Platform ID (tiktok, youtube, …).
In the example "youtube"
idstring
Platform-native post ID (string; Instagram shortcode, Reddit with its t3_ prefix).
In the example "MYZbda3PO-g"
urlstring
Canonical post URL.
In the example "https://www.youtube.com/watch?v=MYZbda3PO-g"
typestring
Normalized content shape. New values may be added; treat unknown values as other.
In the example "video"
platform_typestring
The platform's own product label, lowercase (reel, short, story, live, tweet, …).
In the example "video"
titlestring
Headline (YouTube title, Reddit title); null on caption-only platforms.
In the example "Timecop1983 - Into the Light"
textstring
Caption, description or body as plain text.
In the example null
link_urlstring
The page the post links to: a link post's target, a pin's destination, or the page its link card or link sticker opens; null when it links to none.
In the example null

What teams build with the YouTube Related Videos API.

  • Map which channels YouTube recommends beside yours

    Send your own video links and count the channels in each author, to see whose videos YouTube places next to yours for a signed-out viewer.

  • Find videos competing for your viewers

    Read the recommendations beside a rival's video, with their view counts and upload times, to find the uploads that take attention in your niche.

  • Build recommendation datasets for research

    Walk the pages from a set of seed videos and store each recommended video's ID, channel and views to study how YouTube links videos together.

  • Discover similar creators to partner with

    The channels YouTube recommends beside a video share its audience: their handles and verification badges are a starting list for outreach.

Good to know before you build.

  • The list is YouTube's up-next column for a signed-out viewer: it changes from one request to the next, and the same video can appear on two pages.
  • Without fill, view counts are rounded and published_at is the latest time YouTube's relative label allows (both in approximate_fields), and text and like counts are null.
  • Playlists, mixes and YouTube's own films and TV episodes in the column are left out; Shorts YouTube shows on a shelf are included.

From 1 credit per page. Failed requests are free.

Buy credits once and spend them on any endpoint, on any platform.

SourcePrice per successful pagePer 1,000 pages
Platform API api1 credit + 1 per started group of 15 videos filled in (with fill=true)
up to 5 credits (4 started groups of 15 videos filled in)
$0.75–$1.97 + $0.75–$1.97 per started group of 15 videos filled in
  • Cache hits are free.
  • Credits from packs and top-ups never expire.
  • A monthly plan's credits are spent first, and what is left of them ends at each renewal.
  • Prices exclude tax: sales tax is added at checkout where it applies.
  • Outside the US, plans and packs are sold to businesses: checkout asks for your VAT, GST or other business tax ID.

Questions about the YouTube Related Videos API.

More in the API reference.

Are the recommendations the same on every request?
No. It is YouTube's up-next column for a signed-out viewer, which changes from one request to the next, and the same video can appear on two pages.
Are the view counts exact?
Not by default. They are YouTube's rounded counts, listed in approximate_fields with published_at. With fill set to true, each video is read on its own for its exact counts, likes, comments, upload time and description, at a higher price.
How much does the YouTube Related Videos API cost?
A page of up to 50 videos YouTube recommends next costs 1 credit + 1 per started group of 15 videos filled in (with fill=true), up to 5 credits (4 started groups of 15 videos filled in). Every successful page is charged, empty pages included. SocialTap credits cost $0.75–$1.97 per 1,000, depending on the plan or pack.
How do I get the next page?
Repeat the same request with cursor set to page.next_cursor from the previous response, keeping the other parameters. When page.has_more is false there are no more pages. Cursors expire after 1 hour.

Try it on a link you already have.

Paste it in the playground, or copy the request into your code.

100free credits
  • No credit card
  • Failed requests are free
  • Works on all 310 endpoints
Start for free Read the docs