videoIdstring必填
The unique identifier for the video.
https://api.sandbase.ai/v1/api/youku/video-detailGet details for a Youku video identified by video ID. Use it to look up a known video for content review, cataloging, or subsequent video analysis.
您的输出将显示在这里
完成输入,然后点击运行。
Returns the details of one Youku video as the platform's page data. The response includes the title, description, rating, uploader, duration and playback flags. It needs one input, the videoId.
ownerUid to find who published a video.isShort, allowDownload or allowComment before further analysis.curl -X POST "https://api.sandbase.ai/v1/api/youku/video-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"videoId": "XNjU1ODM3MjI4NA=="}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
videoId | string | Yes | The unique identifier for the video. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"componentList": [
{
"componentId": "h5-detail-vip-guide",
"componentName": "播放页会员引导组件",
"dataNode": [
{
"data": {
"action": {
"callback": null,
"contentType": null,
"contentValue": null,
"extra": null,
"report": {
"arg1": "h5_detail_vip_guide",
"index": 1,
"pageName": "page_playpage",
"reportDataOpt": null,
"scmAB": "20140719.manual",
"scmC": "102330",
"scmD": "crm_20140732-manual-263001_336001_1352001_207-102944_100140_0_1_21429_781_179369…",
"spmAB": "a2h0j.10182321"
},
"reportConfig": null,
"reportDisabled": false,
"type": "JUMP_TO_NEWPAY"
},
"bgPic": "https://gw.alicdn.com/imgextra/i4/O1CN01Y8nnrH1L6Y7EbSbBU_!!6000000001250-2-tps-…",
"content": {
"bgPic": "https://gw.alicdn.com/imgextra/i4/O1CN01Y8nnrH1L6Y7EbSbBU_!!6000000001250-2-tps-…",
"bgPicNew": "https://img.alicdn.com/imgextra/i3/O1CN01KO4sixAik7I2AooQ_!!6000000006165-1-tps-…",
"btnText": "",
"buttonText": null,
"cornText": "",
"id": null,
"jumpType": "JUMP_TO_NEWPAY",
"jumpUrl": "https://activity.youku.com/app/visp/cashier_5/index?en_sid=927201&en_vid=1639593…"
},
"mark": {
"data": {
"color": "RED"
},
"type": "SIMPLE"
}
},
"id": null,
"type": 10066
}
],
"id": 102527,
"props": {},
"title": "",
"type": 10066
}
],
"drawerList": [
{
"componentList": [
102527
],
"id": 13679,
"type": 10001
}
],
"headers": {
"manufacturingDate": "20261103 15:48:07",
"nobelTrackInfo": "1148:[email protected]@0@,100075:[email protected]@0@"
},
"nobelInfo": {
"a2h04.8165646": {
"0": [
{
"nobelId": "1148:2646"
}
]
},
"abTestId": "100075:100120",
"atest.10010010": {
"0": [
{
"nobelId": "100075:100120"
}
]
}
},
"nobelTrackHeader": "",
"playPageData": {
"PopCallApp": {
"btnTitle": "打开",
"expires": 1,
"jumpUrl": "",
"logo": "https://gw.alicdn.com/imgextra/i3/O1CN01CO6s7L1qQvicY255E_!!6000000005491-2-tps-…",
"subtitle": "为好内容全力以赴",
"title": "优酷",
"type": "JUMP_TO_NATIVE",
"unit": "hour"
},
"bottomCallApp": {
"btnTitle": "打开优酷APP更流畅",
"jumpUrl": "",
"type": "JUMP_TO_NATIVE"
},
"callSwitch": true,
"headerCallApp": {
"btnTitle": "下载APP",
"jumpUrl": "",
"type": "JUMP_TO_NATIVE"
}
},
"pushInfo": {},
"videoMap": {
"adRestricted": 0,
"albumId": null,
"allowComment": true,
"allowDownload": true,
"allowLike": true,
"allowShare": true,
"allowUnionRefresh": 1,
"animeEdition": null,
"audiolang": [],
"autoPay": false,
"completed": false,
"downloadStatus": []
}
}
| Field | Meaning |
|---|---|
componentList[].dataNode[].data.introTitle | Title shown on the video's play page. |
componentList[].dataNode[].data.desc | Text description of the video. |
componentList[].dataNode[].data.area[] / componentList[].dataNode[].data.doubanRate | area lists the regions tied to the video. doubanRate is a rating string, here 6.0. |
componentList[].dataNode[].data.img | Cover image URL. The uploader node uses the same key for the uploader's avatar. |
componentList[].dataNode[].data.title / componentList[].dataNode[].data.ownerUid | In the uploader node, title is the uploader's channel name and ownerUid is the uploader's ID. |
componentList[].dataNode[].data.subtitles[].subtitle | Short uploader stat text, such as the follower count (7.9万粉丝). The subtitleType key gives its type, for example FOLLOW. |
componentList[].dataNode[].data.reservation.reservationPeopleNum / componentList[].dataNode[].data.reservation.reservationPeopleNumDesc | Number of people who reserved the video, as a number and as display text. |
videoMap.duration | Video length. The sample value is 15.13. |
videoMap.pageTitle / videoMap.showCategory | Page title of the video and its category, here 电影 (movie). |
videoMap.isShort / videoMap.episodeTotal | isShort marks a short video. episodeTotal is the number of episodes. |
videoMap.allowComment / videoMap.allowDownload / videoMap.allowLike / videoMap.allowShare | Boolean flags for which actions the video allows. |
videoId is a base64-style string that ends in ==, for example XNjU1ODM3MjI4NA==. To find IDs, use Youku Video Search.componentList holds page components. Each has a componentId, such as h5-detail-info, and some entries can be empty objects. Look up the component by componentId instead of by position.ownerUid.$0.014286 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
开始构建
具备统一身份验证和使用情况跟踪的平台 API 端点。
curl -X POST "https://api.sandbase.ai/v1/api/youku/video-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"videoId": "XNjU1ODM3MjI4NA=="
}'将您的 SandBase API 密钥设置到服务器环境中。请求使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它。
videoIdstring必填The unique identifier for the video.
这是该 API 保存的示例响应;查看时不会发起实时请求。
尚未发布已保存的响应。请在 Playground 中运行 API 以查看其响应。
探索更多
| API | 价格 | 响应 |
|---|---|---|
Youku Video Details此 API Youku | $0.014286 每次调用 | JSON |
Youku | $0.014286 每次调用 | JSON |
Youku | $0.014286 每次调用 | JSON |
问题
向 https://api.sandbase.ai/v1/api/youku/video-detail 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
每次调用 $0.014286,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。
必填:videoId (string)。 Parameters 表和本页的 Playground 列出了每个字段。
在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。
不需要。Youku Video Details 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Youku API 访问权限。