API DocsyoutubeContentGet download URLs with your fixed-exit proxy
Get download URLs with your fixed-exit proxy
What this API is for
- 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
POST
/openapi/api/v1/youtube/web_v2/get_video_streams_v3Price:Price unavailable · Actual charges depend on free quota and account discounts
Authentication
All API requests require a Bearer project token in the Authorization header
Authorization header
Authorization: Bearer YOUR_API_TOKENRequest 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.
| Name | Location / type | Required | Notes | Example |
|---|---|---|---|---|
| video_id | body / string | Yes |
| |
| proxy_url | body / string | Yes |
| |
| itags | body / array | No |
| |
| verify_download | body / boolean | No |
|
Request examples
curl -X POST "https://api.trmesh.com/openapi/api/v1/youtube/web_v2/get_video_streams_v3" \ -H "Authorization: Bearer sdc_your_project_token"
Response fields
- streams contains selected formats, URLs, headers and expiry values.
- same_proxy_required is true. proxy_exit_verified describes checks for this request,
- not a guarantee that the exit will remain unchanged.
- download_verification_requested indicates whether small-byte verification was requested.
- Each verification includes status, bytes_read, ok and duration_ms when enabled.
- verified and all_selected_streams_verified are null when verification is disabled.
- **HTTP 200 means URL extraction succeeded and is charged**, even if optional verification
- reports false. It does not guarantee a successful full-file download.
- HTTP 400 is not charged. Proxy credentials are not echoed, and no public response-cache
- link is provided. The JSON example above applies to both language sections.
| Field | Type | Notes | Example |
|---|---|---|---|
| streams | unknown |
| |
| proxy_exit_ip | unknown |
| |
| proxy_exit_verified | unknown |
| |
| download_verification_requested | unknown |
| |
| streams[].verification | unknown |
|
Common response envelope
Common fields for response status, request identifiers and data
| Field | Type | Notes | Example |
|---|---|---|---|
| code | integer |
| |
| request_id | string | null |
| |
| message | string |
| |
| message_zh | string |
| |
| support | string |
| |
| time | string |
| |
| time_stamp | integer |
| |
| time_zone | string |
| |
| docs | string | null |
| |
| cache_message | string | null |
| |
| cache_message_zh | string | null |
| |
| cache_url | string | null |
| |
| router | string |
| |
| params | unknown |
| |
| data | unknown | null |
|
Errors and limits
The docs cover not only success responses, but also auth failures, rate limits, and data-service errors
| Code | Meaning | Notes |
|---|---|---|
| 200 | Success | The request completed and returned the standard response envelope. |
| 401 | Unauthorized | The token is missing, invalid, or no longer active. |
| 429 | Rate limited | The request exceeded token, user, or plan-level throughput limits. |
| 502 | Service unavailable | The gateway could not obtain a healthy result. Retry in a moment. |
Next steps
New to the API? Read the guide or explore examples