获取已签名的视频流URL/Get signed video stream URL
YouTubeapi
About
获取已签名的视频流URL/Get signed video stream URL
Documentation
获取已签名的视频流URL/Get signed video stream URL
[中文]
用途:
- 获取指定 itag 的已签名播放地址(可直接播放)
- 配合 get_video_streams 接口使用,先获取所有格式,再选择 itag 获取播放地址
参数:
- video_id: 视频ID(推荐)
- video_url: 完整的视频URL(可选)
- itag: 格式标识符,从 get_video_streams 接口返回的格式列表中选择
返回数据:
- itag: 格式标识符
- url: 已签名的播放地址(可直接使用)
- expires_in_seconds: URL有效期(通常为6小时 = 21600秒)
注意事项:
- 播放地址有时效性(约6小时),过期后需重新获取
- URL 长度较长(约1000-2000字符)
- 某些视频可能受地区限制
[English]
Purpose:
- Get signed playback URL for specific itag (ready to play)
- Use with get_video_streams endpoint: first get all formats, then select itag to get playback URL
Parameters:
- video_id: Video ID (recommended)
- video_url: Full video URL (optional)
- itag: Format identifier, selected from formats list returned by get_video_streams
Returns:
- itag: Format identifier
- url: Signed playback URL (ready to use)
- expires_in_seconds: URL validity period (typically 6 hours = 21600 seconds)
Notes:
- Playback URLs expire after approximately 6 hours, need to regenerate after expiration
- URL length is long (approximately 1000-2000 characters)
- Some videos may have regional restrictions
[示例/Example]
video_id = "dQw4w9WgXcQ" itag = 18 # 360p mp4 with audio
Imported from a validated TikHub OpenAPI document. Pricing must be reviewed before enabling.
Try 获取已签名的视频流URL/Get signed video stream URL
Test this model in the Sandbase Playground with your own prompts.
Open in PlaygroundRelated Models
获取频道帖子列表/Get channel community postsYouTubeapi获取频道描述信息/Get channel descriptionYouTubeapi从频道URL获取频道ID /Get channel ID from URLYouTubeapi获取频道短视频列表/Get channel shortsYouTubeapi从频道ID获取频道URL/Get channel URL from channel IDYouTubeapi获取频道视频 /Get channel videosYouTubeapi综合搜索(原始数据,推荐使用V2)/General search (raw data, recommend V2)YouTubeapi综合搜索V2/General search V2YouTubeapi