# YouTube video information

Fetch YouTube video details via an alternative extraction path (more stable field extraction). Takes video id, video url and need format, all optional. Served by TikHub.

Purpose:
- Fetch YouTube video details via an alternative extraction path (more stable field extraction)
- Use when v1 `/get_video_info` returns empty title/author (age-gated, unlisted, music videos, etc.)

Parameters:

📌 Required (one of):
**video_id** (string) - Video ID, e.g. `"dQw4w9WgXcQ"`

**video_url** (string) - Full video URL (ignored if video_id provided)

⚙️ Optional:
**need_format** (bool) - Whether to return cleaned payload. Default `True`

Difference from get_video_info:
- **get_video_info**: Richer field set (like_count_text / merchandise / endscreen /
  super_title / subscriber_count_text / is_verified, etc.), but less stable extraction
  in some scenarios
- **get_video_info_v2 (this)**: More stable core fields, drops v1-only ancillary fields

Return fields (`need_format=True`):
Video identity, channel details, publish and duration values, availability and live status,
engagement counts, categories, thumbnails, captions, and chapters.

- Tool ID: `tikhub/youtube-web-v2-get-video-info-v2`
- Name in the catalog: Youtube, Get video information V2
- 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 则忽略此参数)",
      "title": "Video Url"
    },
    "need_format": {
      "type": "boolean",
      "description": "是否需要清洗数据，提取关键字段/Whether to return cleaned payload",
      "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-video-info-v2",
  "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_video_info_v2_api_v1_youtube_web_v2_get_video_info_v2_get)

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

---

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