# YouTube related videos

Get YouTube video's related content recommendations (recommended videos list). Takes video id, video url and need format, all optional. Served by TikHub.

Purpose:
- Get YouTube video's related content recommendations (recommended videos list)
- Similar to the related videos shown on the right side of video playback page
- Returns all recommended videos at once (typically 20-30 videos)

Parameters:
- video_id: Video ID (recommended)
- video_url: Full video URL (optional, ignored if video_id is provided)
- need_format: Whether to format data (default true)
  - true: Return formatted structured data (recommended)
  - false: Return raw YouTube API structure (for debugging or custom parsing)

Returns:
When need_format=true:
- video_id: Current video ID
- related_videos: Related videos list
  - video_id: Related video's ID
  - title: Video title
  - author: Author name
  - author_id: Author channel ID
  - author_url: Author channel URL
  - length_text: Video duration text (e.g., "3:45")
  - length_seconds: Video duration in seconds
  - view_count_text: View count text (e.g., "1.2M views")
  - short_view_count_text: Short view count text (e.g., "1.2M")
  - published_time_text: Published time text (e.g., "2 days ago")
  - thumbnails: All resolution thumbnails
  - rich_thumbnail: Moving thumbnail (if available)
  - badges: Video badges (e.g., NEW, LIVE)
  - owner_badges: Channel verification badges
  - video_url: Video URL
  - navigation_endpoint: Navigation endpoint
- total_count: Total number of recommended videos

When need_format=false:
- video_id: Current video ID
- related_videos: Raw lockupViewModel object list
- total_count: Total number of recommended videos

Notes:
- Each video's recommendations are generated by YouTube's a

- Tool ID: `tikhub/youtube-web-v2-get-related-videos`
- Name in the catalog: Youtube, Get related videos
- Provider: [TikHub](/providers/tikhub.md)
- Capability: [YouTube videos](/tools/youtube/videos.md)
- Price: $0.001 per call
- Authentication: an authorised Agentik workspace is required for execution, including zero-price tools.

## Pricing contract

The provider’s price, with no markup. Billed for measured usage.


```json
{
  "model": "per_call",
  "amountUsd": 0.001
}
```

Pricing source: [https://api.tikhub.io/api/v1/tikhub/user/get_all_endpoints_info](https://api.tikhub.io/api/v1/tikhub/user/get_all_endpoints_info). Official per-success route price USD 0.001; daily upstream discounts may reduce provider cost. No discount invented for the customer. 10/second.

Price verification date: 2026-10-05.

## Complete input schema


```json
{
  "type": "object",
  "properties": {
    "video_id": {
      "type": "string",
      "description": "视频ID/Video ID",
      "title": "Video Id"
    },
    "video_url": {
      "type": "string",
      "description": "视频URL/Video URL (如果提供video_id则忽略此参数/Ignored if video_id is provided)",
      "title": "Video Url"
    },
    "need_format": {
      "type": "boolean",
      "description": "是否格式化数据。true: 返回格式化的结构化数据，false: 返回原始API结构/Whether to format data. true: return formatted structured data, false: return raw API structure",
      "default": true,
      "title": "Need Format"
    }
  },
  "additionalProperties": false
}
```

## Published example

This is the provider tool’s published example. Replace example values with the user’s requested inputs, respecting the schema; do not execute an example merely to test a connection.


```json
{
  "tool_id": "tikhub/youtube-web-v2-get-related-videos",
  "input": {
    "video_id": "dQw4w9WgXcQ",
    "video_url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "need_format": true
  }
}
```

## Execute and retrieve

Inspect again before execution, explain the price and obtain the required authority. Use MCP run_tool or POST /v1/run with this tool ID, valid input and an idempotency key. Save the returned run ID and follow the actual state. If Agentik answers that the tool is temporarily unavailable, do not retry it blindly; use discovery to propose an alternative.

A partial or uncertain result can still have consumed provider resources. Consult [billing](/docs/billing.md), [idempotency](/docs/idempotency.md) and [asynchronous results](/docs/async.md).

[Provider documentation](https://api.tikhub.io/#/YouTube-Web-V2-API/get_related_videos_api_v1_youtube_web_v2_get_related_videos_get)

[REST inspection](https://api.agentik.cc/v1/tools/tikhub/youtube-web-v2-get-related-videos) · [OpenAPI](/openapi.json) · [Connection guide](/connect.md)

---

[HTML page](/providers/tikhub/youtube-web-v2-get-related-videos) · [Agent index](/llms.txt)
