Get download URLs with your fixed-exit proxy

Browse registered social-data routes across platforms, then dive into detailed reference docs

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_v3

Price: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 headerAuthorization: Bearer YOUR_API_TOKEN

Request 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.
NameLocation / typeRequiredNotesExample
video_idbody / stringYes
  • 11 位 YouTube 视频 ID / 11-character YouTube video ID
proxy_urlbody / stringYes
  • 固定公网出口的 HTTP 代理,必须包含端口 / HTTP proxy with a fixed public exit and explicit port
itagsbody / arrayNo
  • 所需格式编号,1–4 个不重复的数字字符串 / 1–4 unique numeric format IDs
verify_downloadbody / booleanNo
  • 是否尝试读取各流前 1 KiB;不代表完整下载验证 / Probe up to 1 KiB per stream, not the full file

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.
FieldTypeNotesExample
streamsunknown
  • 按所选格式返回 itag、url、媒体信息、请求头和有效期。
proxy_exit_ipunknown
  • 本次请求的代理公网出口;same_proxy_required 为 true。
proxy_exit_verifiedunknown
  • 本次请求的出口检查是否通过,不代表未来不会变更。
download_verification_requestedunknown
  • 本次是否请求小字节验证。
streams[].verificationunknown
  • 开启验证时包含 status、bytes_read、ok 和 duration_ms。

Common response envelope

Common fields for response status, request identifiers and data

FieldTypeNotesExample
codeinteger
  • HTTP status code | HTTP状态码
request_idstring | null
  • Unique request identifier | 唯一请求标识符
messagestring
  • Response message (EN-US) | 响应消息 (English)
message_zhstring
  • Response message (ZH-CN) | 响应消息 (中文)
supportstring
  • Support message | 支持消息
timestring
  • The time the response was generated | 生成响应的时间
time_stampinteger
  • The timestamp the response was generated | 生成响应的时间戳
time_zonestring
  • The timezone of the response time | 响应时间的时区
docsstring | null
  • Link to the API Swagger documentation for this endpoint | 此端点的 API Swagger 文档链接
cache_messagestring | null
  • Cache message (EN-US) | 缓存消息 (English)
cache_message_zhstring | null
  • Cache message (ZH-CN) | 缓存消息 (中文)
cache_urlstring | null
  • The URL to access the cached result | 访问缓存结果的 URL
routerstring
  • The endpoint that generated this response | 生成此响应的端点
paramsunknown
  • The parameters used in the request | 请求中使用的参数
dataunknown | null
  • The response data | 响应数据

Errors and limits

The docs cover not only success responses, but also auth failures, rate limits, and data-service errors

CodeMeaningNotes
200SuccessThe request completed and returned the standard response envelope.
401UnauthorizedThe token is missing, invalid, or no longer active.
429Rate limitedThe request exceeded token, user, or plan-level throughput limits.
502Service unavailableThe gateway could not obtain a healthy result. Retry in a moment.
Next steps

New to the API? Read the guide or explore examples