[Integrations](https://spiral.ai/integrations) › [n8n](https://spiral.ai/integrations/n8n) › [YouTube related videos](https://spiral.ai/integrations/n8n/youtube-related-videos)

# How to Use YouTube related videos in n8n

Returns recommendations associated with a video, including titles, channels, durations, and displayed view counts. Use it to explore adjacent content; the list typically contains 20–30 videos and has no pagination.

|  |  |
| --- | --- |
| Model | YouTube related videos |
| Available through | TikHub |
| Category | Social Media |
| Price | $0.0013 per request. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, with a Spiral API key |

## Prompts to try with YouTube related videos in n8n

- Every Friday, use YouTube related videos for https://www.youtube.com/watch?v=aqz-KE-bpKQ and report video links added to or removed from the returned recommendation list.
- Every Monday at 9am: use YouTube related videos to look this up and give me the result as a table.
- Pull the latest numbers from YouTube related videos and tell me what changed since last week.
- Check YouTube related videos and summarize what you find in three bullet points.
- Pull the newest data from YouTube related videos and give me the result as a table.

## How to set up YouTube related videos in n8n

Pick the way that suits you. Each takes about two minutes.

### Use the Spiral skill

1. **Send n8n this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use Spiral's MCP server

1. **Create a key**: Create a key under API keys in the console.

2. **Add an MCP Client node**: In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

```text
https://api.spiral.ai/mcp
```

3. **Pick a tool**: The node lists Spiral's tools. In an MCP Client node pick one, such as `run`, and give it its arguments:

```json
{
  "provider": "fal",
  "model": "fal-ai/flux/schnell",
  "input": { "prompt": "a lighthouse at dawn" },
  "wait": true
}
```

4. **Run YouTube related videos in a workflow step**: Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds YouTube related videos, prices it and runs it each time the step fires.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run YouTube related videos**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "tikhub",
    "model": "tikhub/youtube-web-v2-get-related-videos",
    "input": {
      "video_id": "dQw4w9WgXcQ"
    }
  }'
```

Then paste one of the prompts above: n8n finds YouTube related videos on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/n8n

## YouTube related videos tools and prices

- [YouTube Web V2 · Get related videos](https://spiral.ai/tools/tikhub/tikhub/youtube-web-v2-get-related-videos) (TikHub): $0.0013 per request.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| video_id |  | — | Video ID |
| video_url |  | — | Ignored if video_id is provided) |
| need_format |  | true | Whether to format data. true: return formatted structured data, false: return raw API structure |

## What can you do with YouTube related videos in n8n?

Maintain a recurring YouTube briefing that highlights changes in the content and public responses you select. A scheduled agent can compare successive retrievals and report specific additions or changes with source links.

### Plan a tutorial from audience questions

Combine autocomplete phrases, Shorts examples, community announcements, related videos, and comment discussions to choose a tutorial topic and outline the questions it should answer.

### Review a public product launch

Compare a brand's community announcement, launch-video captions, audience questions, Shorts coverage, related videos, and autocomplete phrases. Separate what the brand announced from what viewers asked about.

### Build a course viewing list

Find lesson candidates through Shorts searches, autocomplete, and related videos. Review available captions and educators' community posts to write a viewing list with a clear purpose for each selection.

### Test playback across an owned video series

Review related-video results for links to your organization's videos, then obtain signed playback links for the selected formats. Use the selected videos as a playback regression checklist.

## Overview

- [TikHub](https://spiral.ai/providers/tikhub)
- [All n8n guides](https://spiral.ai/integrations/n8n)

## YouTube related videos in other agents

- [Amp](https://spiral.ai/integrations/amp/youtube-related-videos)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/youtube-related-videos)
- [Claude](https://spiral.ai/integrations/claude-desktop/youtube-related-videos)
- [Claude Code](https://spiral.ai/integrations/claude-code/youtube-related-videos)
- [Cline](https://spiral.ai/integrations/cline/youtube-related-videos)
- [Codex](https://spiral.ai/integrations/codex/youtube-related-videos)
- [Cursor](https://spiral.ai/integrations/cursor/youtube-related-videos)
- [Devin](https://spiral.ai/integrations/devin/youtube-related-videos)
- [dots](https://spiral.ai/integrations/dots/youtube-related-videos)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/youtube-related-videos)
- [Gemini](https://spiral.ai/integrations/gemini/youtube-related-videos)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/youtube-related-videos)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/youtube-related-videos)
- [goose](https://spiral.ai/integrations/goose/youtube-related-videos)
- [Grok](https://spiral.ai/integrations/grok/youtube-related-videos)
- [Grok Build](https://spiral.ai/integrations/grok-build/youtube-related-videos)
- [Hermes](https://spiral.ai/integrations/hermes/youtube-related-videos)
- [Instinct](https://spiral.ai/integrations/instinct/youtube-related-videos)
- [Manus](https://spiral.ai/integrations/manus/youtube-related-videos)
- [Muse](https://spiral.ai/integrations/muse/youtube-related-videos)
- [Muse Code](https://spiral.ai/integrations/muse-code/youtube-related-videos)
- [Notion](https://spiral.ai/integrations/notion/youtube-related-videos)
- [OpenClaw](https://spiral.ai/integrations/openclaw/youtube-related-videos)
- [opencode](https://spiral.ai/integrations/opencode/youtube-related-videos)
- [Perplexity](https://spiral.ai/integrations/perplexity/youtube-related-videos)
- [Raycast](https://spiral.ai/integrations/raycast/youtube-related-videos)
- [VS Code](https://spiral.ai/integrations/vscode/youtube-related-videos)
- [Windsurf](https://spiral.ai/integrations/windsurf/youtube-related-videos)
- [Zapier](https://spiral.ai/integrations/zapier/youtube-related-videos)

## More n8n guides

- [YouTube raw search results](https://spiral.ai/integrations/n8n/youtube-raw-search-results)
- [YouTube search suggestions](https://spiral.ai/integrations/n8n/youtube-search-suggestions)
- [YouTube raw Shorts search results](https://spiral.ai/integrations/n8n/youtube-raw-shorts-search-results)
- [YouTube selected video download links](https://spiral.ai/integrations/n8n/youtube-selected-video-download-links)
- [YouTube playlist videos](https://spiral.ai/integrations/n8n/youtube-playlist-videos)
- [YouTube signed playback URL](https://spiral.ai/integrations/n8n/youtube-signed-playback-url)

## Questions about YouTube related videos in n8n

**Can n8n use YouTube related videos?**

Yes. Add Spiral to n8n as an MCP server, and n8n can find and run YouTube related videos like any built-in tool.

**How much does YouTube related videos cost in n8n?**

$0.0013 per request. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your n8n plan is separate.

**Do I need a TikHub account to use YouTube related videos in n8n?**

You need no TikHub account. n8n uses one Spiral API key for every tool, and Spiral runs YouTube related videos on its own TikHub account.

**How long does it take to set up YouTube related videos in n8n?**

About two minutes: create a key, then add an MCP Client node, then pick a tool.

**Does n8n wait while YouTube related videos runs?**

YouTube related videos runs in the background. n8n starts the run, checks on it and gives you the json when it's ready.

**Can public YouTube search reveal private videos?**

Private videos do not appear in YouTube search results. Unlisted videos generally stay out of search, with an exception when someone adds one to a public playlist.

**How fresh are YouTube engagement counts?**

YouTube says metrics may take time to appear during the first few hours after publication. Counts can also slow down, freeze, or change while YouTube verifies engagement.

**Why can YouTube recommendations differ between viewers?**

YouTube uses viewing habits and other signals to personalize recommendations. For Up Next, the video currently being watched is the main recommendation signal.

**Does language or region affect YouTube's suggested search terms?**

Yes. TikHub documents different autocomplete suggestions by language and region, typically returning 10–20 phrases for a query.

**Are YouTube's automatic captions accurate enough to quote?**

YouTube warns that automatic captions can misrepresent speech because of accents, mispronunciations, dialects, or background noise. Check the relevant passage before using it as a direct quote.

