接口
URL https://api.youku.com/videos/show.json HTTP方法 GET 返回格式 json 授权/登录 false
参数
参数 类型 必选 默认值 说明 示例 client_id string true 应用Key video_id string true 视频ID
3.1 字段说明
video 视频
| 参数 | 类型 | 允许为空 | 说明 | 示例 |
|---|---|---|---|---|
| id | string | false | 视频唯一ID | |
| title | string | false | 视频标题 | |
| link | string | false | 视频播放链接 | |
| thumbnail | string | false | 视频截图(小) | |
| bigThumbnail | string | false | 视频截图(大) | |
| duration | int | false | 视频时长,单位:秒 | |
| category | string | false | 视频分类 | |
| state | string | false | 视频状态 normal: 正常 encoding: 转码中 fail: 转码失败 in_review:审核中 limited:分级 | |
| created | string | false | 创建时间 | |
| published | string | false | 发布时间 | |
| description | string | true | 视频描述 | |
| player | string | false | 播放器 | |
| public_type | string | false | 公开类型 all: 公开 friend: 仅好友观看 password: 输入密码观看 private: 私有 | |
| copyright_type | string | false | 版权所有 original: 原创 reproduced: 转载 | |
| user | object | false | 上传用户对象 | |
| tags | string | false | 视频标签, 多个标签用逗号分隔 | |
| view_count | int | false | 总播放数 | |
| operation_limit | array | true | 操作限制 COMMENT_DISABLED: 禁评论 DOWNLOAD_DISABLED: 禁下载 | |
| streamtypes | array | true | 视频格式 flvhd flv 3gphd 3gp hd hd2 | |
| show | object | true | 所属节目对象(默认不返回) |
user 上传用户
| 参数 | 类型 | 允许为空 | 说明 | 示例 |
|---|---|---|---|---|
| id | string | false | 用户ID | |
| name | string | false | 用户名 | |
| link | string | false | 用户个人空间地址 |
3.2 JSON
{ "id" : "XNDY5Njc0MTA4", "title" : "康熙来了 121101", "link" : "http://v.youku.com/v_show/id_XNDY5Njc0MTA4.html", "thumbnail" : "http://g2.ykimg.com/01270F1F46509251F539D10123193CD2CB70CC-5896-F53E-B869-61E819861E71", "duration" : "2675.36", "category" : "综艺", "state" : "normal", "created" : "2011-07-15 09:00:42", "published" : "2011-07-15 09:00:42", "description" : "康熙来了", "player" : "http://player.youku.com/player.php/sid/XNDY5Njc0MTA4/v.swf", "public_type" : "all", "copyright_type" : "reproduced", "user" : { "id" : 58011986, "name" : "康熙来了2010", "link" : "http://i.youku.com/u/UMjMyMDQ3OTQ0" }, "tags": "康熙来了", "view_count" : 646437, "operation_limit": [ ], "streamtypes": [ "hd2", "flvhd", "mp4", "3gp", "3gphd" ] }