YouTube Related Videos Scraper avatar

YouTube Related Videos Scraper

Pricing

$0.39 / 1,000 results

Go to Apify Store
YouTube Related Videos Scraper

YouTube Related Videos Scraper

Get YouTube related videos and recommendation neighbors for seed watch URLs or IDs. Export adjacency maps (sourceVideoId → related IDs) for discovery pipelines. Metadata only — not a downloader.

Pricing

$0.39 / 1,000 results

Rating

0.0

(0)

Developer

Scrape Mamba

Scrape Mamba

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

0

Monthly active users

19 days ago

Last modified

Categories

Share

YouTube Related Videos Scraper — Recommendation Neighbors

Get YouTube related videos for seed watch URLs or IDs. Export adjacency-style rows (sourceVideoId → related videoId) for discovery graphs, content clustering, and expansion pipelines — metadata only, not a downloader.

Run YouTube Related Videos Scraper on Apify · Built by ScrapeMamba · Metadata only, not a downloader


Why this Actor?

Related rails are one of the best signals for “what YouTube thinks belongs together.” This Actor turns seed videos into neighbor lists you can warehouse, dedupe, and selectively enrich — without crawling recommendation graphs unboundedly.

  • One seed → many related rows with sourceVideoId
  • Cap neighbors with maxResults (default 40)
  • Seed itself is excluded from results
  • Fits after Search / Channel Videos in discovery workflows

Key features

  • Related / recommendation neighbors as Dataset rows
  • Clear parent link via sourceVideoId
  • Per-seed caps and error isolation
  • Works with watch URLs and bare IDs
  • Apify Console, schedules, and API support

What you can scrape

GroupFields
GraphsourceVideoId, videoId, page
Neighbor cardtitle, author, channelId, thumbnail, url
Metricsviews, length, publishedTime
Diagnosticstype (related / error), raw, error

Use cases

  • Content research — Map topical neighborhoods around a viral seed
  • Competitor adjacency — See what YouTube recommends next to rival videos
  • Influencer discovery — Expand from known hits into nearby creators
  • Dataset building — Build edge lists for graph or clustering analysis
  • Lead gen pipelines — Single-hop expansion before enrichment (keep caps low)

Example output

{
"type": "related",
"sourceVideoId": "dQw4w9WgXcQ",
"page": 1,
"videoId": "yPYZpwSpKmA",
"title": "Example related video",
"author": "Example Channel",
"channelId": "UCxxxxxxxxxxxxxxxxxxxxxx",
"views": 980000,
"length": 240,
"thumbnail": "https://i.ytimg.com/vi/yPYZpwSpKmA/hqdefault.jpg",
"url": "https://www.youtube.com/watch?v=yPYZpwSpKmA"
}

How to use

  1. Open YouTube Related Videos Scraper
  2. Paste videoIds and set maxResults
  3. Run → export Dataset; dedupe videoId before re-seeding

Input example

{
"videoIds": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"],
"maxResults": "40"
}

API (Node.js)

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('scrapemamba/youtube-related-videos-scraper').call({
videoIds: ['dQw4w9WgXcQ'],
maxResults: '20',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();

Local run

cd youtube-related-videos-scraper-js
cp .env.example .env
npm install
node src/main.js

Input parameters

ParameterRequiredDefaultDescription
videoIdsYes—Seed video URLs or 11-character IDs (deduped before fetch)
maxResultsNo"40"Max related videos per seed. Free users capped at 200; paying users uncapped.

Fan-out warning: Re-seeding every related ID without caps grows cost quickly. Prefer low maxResults, single-hop expansion, and global dedupe.


Output

Successful neighbors are type: "related" with sourceVideoId pointing at the seed. Failed seeds produce type: "error".


Why choose this Actor

  • Graph-ready rows — Parent/child IDs on every neighbor
  • Controlled expansion — Caps prevent runaway crawls
  • Suite-compatible — Same ID formats as Search and Video scrapers
  • Clear caps — Control neighbors per seed with maxResults

Pricing

$0.39 per 1,000 results on Apify. Free users: maxResults capped at 200 per seed. See the Store page.


FAQ

Up to your maxResults cap (default 40). Free users are capped at 200.

Suggested pipeline?

Search → pick top IDs → Related (modest maxResults) → global dedupe → Video Scraper (+ optional Subtitles).

No. The seed videoId is filtered out.

How do I avoid cost blowups?

Low maxResults, limit recursion depth, dedupe before re-seeding.


ActorUse it for
YouTube Search ScraperSeed discovery
YouTube Video ScraperEnrich neighbors
YouTube Subtitles ScraperCaption shortlisted IDs

Use only on public recommendation data per YouTube’s terms and applicable law.