# YouTube video streams info

✅ Features: Automatically returns decrypted playback URLs for all formats. Takes video id and video url, all optional. Served by TikHub.

✅ Features:
- **Automatically returns decrypted playback URLs for all formats**
- No need to call get_signed_stream_url endpoint separately
- Get all quality URLs in one request

Purpose:
- Get all quality format information and playback URLs for YouTube video
- Returns standard formats (merged audio/video) and adaptive formats (separate audio/video)
- Suitable for scenarios that need to display all quality options

Parameters:
- video_id: Video ID (recommended)
- video_url: Full video URL (optional, ignored if video_id is provided)

Returns:
- Basic video info (title, author, duration, view count, etc.)
- formats: Standard format streams (audio and video combined)
- adaptive_formats: Adaptive format streams (video-only or audio-only)
  - Each format contains: itag, mime_type, quality label, resolution, bitrate, etc.
  - ✅ **url field contains decrypted playback URL, ready to use**
  - has_signature=false means URL is decrypted and ready to play
- hls_manifest_url: HLS manifest URL (if available)
- dash_manifest_url: DASH manifest URL (if available)
- available_qualities: List of all available quality levels
- expires_in_seconds: URL expiration time (about 6 hours = 21600 seconds)

Difference from get_video_streams:
- **get_video_streams**: URLs are null, need to use get_signed_stream_url (two-step method)
- **get_video_streams_v2 (this endpoint)**: Automatically returns all decrypted URLs (one-step solution)

Notes:
- Playback URLs expire after ~6 hours, use them promptly
- High-quality videos (720p+) usually require separate download and merge of audio/video streams
- Lon

- Tool ID: `tikhub/youtube-web-v2-get-video-streams-v2`
- Name in the catalog: Youtube, Get video streams info V2
- Provider: [TikHub](/providers/tikhub.md)
- Capability: [YouTube videos](/tools/youtube/videos.md)
- Price: $0.004 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.004
}
```

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.004; 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"
    }
  },
  "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-streams-v2",
  "input": {
    "video_id": "dQw4w9WgXcQ",
    "video_url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  }
}
```

## 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_streams_v2_api_v1_youtube_web_v2_get_video_streams_v2_get)

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

---

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