Explore our Marketplace to buy and sell APIs, services, and social media solutions. Connect with a vibrant community of developers, businesses, and creators!
https://www.youtube.com/watch?v=oaSNBz4qMQY,video_id 就是 oaSNBz4qMQY"oaSNBz4qMQY""zh-CN""zh-CN", "en-US", "ja-JP", "ko-KR" 等{
"playerResponse": {
"videoDetails": {},
"streamingData": {
"formats": [],
"adaptiveFormats": []
},
"microformat": {},
...
},
"initialData": {
"contents": {
"twoColumnWatchNextResults": {
"results": {
"results": {
"contents": [
{
"videoPrimaryInfoRenderer": {...},
"videoSecondaryInfoRenderer": {...}
}
]
}
}
}
},
...
}
}playerResponse: YouTube 播放器响应数据videoDetails: 视频基本信息(可能为空,取决于YouTube的返回)streamingData: 视频流数据(包含 formats 和 adaptiveFormats,包含 googlevideo.com 的URL)microformat: 元数据信息initialData: YouTube 页面初始化数据videoPrimaryInfoRenderer: 主要信息(标题、观看次数、点赞数等)videoSecondaryInfoRenderer: 次要信息(频道信息、描述等)https://www.youtube.com/watch?v=oaSNBz4qMQY, video_id is oaSNBz4qMQY"oaSNBz4qMQY""zh-CN""zh-CN", "en-US", "ja-JP", "ko-KR", etc.{
"playerResponse": {
"videoDetails": {},
"streamingData": {
"formats": [],
"adaptiveFormats": []
},
"microformat": {},
...
},
"initialData": {
"contents": {
"twoColumnWatchNextResults": {
"results": {
"results": {
"contents": [
{
"videoPrimaryInfoRenderer": {...},
"videoSecondaryInfoRenderer": {...}
}
]
}
}
}
},
...
}
}playerResponse: YouTube player response datavideoDetails: Basic video info (may be empty depending on YouTube's response)streamingData: Video stream data (includes formats and adaptiveFormats with googlevideo.com URLs)microformat: Metadata informationinitialData: YouTube page initialization datavideoPrimaryInfoRenderer: Primary info (title, view count, like count, etc.)videoSecondaryInfoRenderer: Secondary info (channel info, description, etc.)Authorization: Bearer ********************curl --location --request GET 'https://api.tikhub.io/api/v1/youtube/web_v2/get_video_info?video_id=oaSNBz4qMQY&language_code=zh-CN&need_format' \
--header 'Authorization: Bearer <token>'{
"code": 200,
"request_id": "string",
"message": "Request successful. This request will incur a charge.",
"message_zh": "请求成功,本次请求将被计费。",
"support": "Discord: https://discord.gg/aMEAS8Xsvz",
"time": "string",
"time_stamp": 0,
"time_zone": "America/Los_Angeles",
"docs": "string",
"cache_message": "string",
"cache_message_zh": "string",
"cache_url": "string",
"router": "",
"params": {},
"data": null
}