# YouTube video download URLs v3

Purpose and request. Needs video id. Served by TikHub.

Purpose and request
Get selected video/audio download URLs, format metadata and expiration times.
This endpoint does not return media files or merge audio and video.
Send a POST JSON body over HTTPS with `Authorization: Bearer <API_TOKEN>`.
Never put proxy credentials in URL query parameters.

Parameters
- `video_id`: required, an 11-character YouTube video ID.
- `proxy_url`: required, `http://USERNAME:PASSWORD@PUBLIC_HOST:PORT`.
  Only HTTP proxies are supported; media destinations use HTTPS.
  URL-encode reserved characters in credentials. Private, loopback and link-local
  destinations are not allowed. Supply a fixed public exit or a fully configured sticky session.
  Selecting a country alone does not keep the exit IP fixed.
- `itags`: 1–4 unique numeric strings, default `["137", "140"]`.
  Common formats: 137 is 1080p MP4 video-only; 140 is M4A audio-only.
  Availability varies by video. The request fails if any selected format is missing;
  formats are not silently substituted.
- `verify_download`: default `false`. If enabled, probe up to 1 KiB per stream.
  This adds latency and small proxy traffic, and does not verify an entire file.

Download requirements
Use the same proxy session **and actual public exit IP**, together with each stream's
`download_headers`. The same country or session name alone is insufficient.
A browser or downloader using a different exit may receive HTTP 403.
Before downloading, compare the proxy's current public IP with `proxy_exit_ip`.
`expires_at` is a Unix timestamp in seconds; `expires_in_seconds` is the remaining
URL lifetime at respons

- Tool ID: `tikhub/youtube-web-v2-get-video-streams-v3`
- Name in the catalog: Youtube, Get download URLs with your fixed-exit proxy
- Provider: [TikHub](/providers/tikhub.md)
- Capability: [YouTube videos](/tools/youtube/videos.md)
- Price: $0.003 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.003
}
```

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.003; 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",
      "pattern": "^[A-Za-z0-9_-]{11}$",
      "title": "Video Id",
      "description": "11 位 YouTube 视频 ID / 11-character YouTube video ID"
    },
    "itags": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "maxItems": 4,
      "minItems": 1,
      "title": "Itags",
      "description": "所需格式编号，1–4 个不重复的数字字符串 / 1–4 unique numeric format IDs"
    },
    "verify_download": {
      "type": "boolean",
      "title": "Verify Download",
      "description": "是否尝试读取各流前 1 KiB；不代表完整下载验证 / Probe up to 1 KiB per stream, not the full file",
      "default": false
    }
  },
  "required": [
    "video_id"
  ],
  "additionalProperties": false
}
```

## Published example

No example input is published for this tool. Ask for the inputs required by its schema.

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

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

---

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