视频列表接口
接口名称:获取影片列表
接口地址:/openapi/template/vod
请求方式:GET
请求参数:
字段名 | 字段类型 | 字段说明 | 是否必填 | 默认值 |
---|---|---|---|---|
limit | int | 请求条数 | 非必填 | 无 |
banner | bool | 轮播 | 非必填 | 无 |
hots | bool | 热榜 | 非必填 | 无 |
random | bool | 随机 | 非必填 | 无 |
categoryId | int | 分类id | 必填 | 无 |
categoryPid | int | 类型id | 必填 | 无 |
tagId | int | 类别 | 非必填 | 无 |
videoId | int64 | 视频id | 非必填 | 无 |
keyword | string | 关键字 | 非必填 | 无 |
region | string | 地区 | 非必填 | 无 |
language | string | 语言 | 非必填 | 无 |
label | string | 标签 | 非必填 | 无 |
year | string | 年份 | 非必填 | 无 |
page | int | 页码 | 非必填 | 无 |
specialId | int | 专题id | 非必填 | 无 |
starId | int64 | 影人id | 非必填 | 无 |
offset | int | 偏移量与page二选一 | 非必填 | 无 |
tpl | string | 使用模板名称 | 非必填 | 无 |
order | string | 排序 | 非必填 | 无 |
regionFilterId | int64 | 地区筛选Id | 非必填 | 无 |
languageFilterId | int64 | 语言筛选Id | 非必填 | 无 |
labelFilterId | int64 | 标签(题材)筛选Id | 非必填 | 无 |
yearFilterId | int64 | 年份筛选Id | 非必填 | 无 |
chargeFilterId | int64 | 收费模式筛选Id | 非必填 | 无 |
chargingMode | int | 收费模式 1免费 2vip免费 3金币点播 | 非必填 | 无 |
响应结果:
200 成功
{
"total": 0,
"list": [
{
"id": 0,
"name": "",
"horizontalPoster": "",
"verticalPoster": "",
"screenshot": "",
"date": 0,
"category": null,
"watchNums": 0,
"popularity": 0,
"title": "",
"surfacePlot": "",
"recommend": 0,
"cycle": 0,
"chargingMode": 0,
"note": "",
"introduce": "",
"cycleImg": "",
"duration": 0,
"number": 0,
"categoryPid": 0,
"categoryChildId": 0,
"buyMode": 0,
"gold": 0,
"currency": 0,
"ScoreFormat": "",
"DbScore": 0,
"total": 0,
"num": 0,
"end": false,
"directors": null,
"actors": null,
"areas": null,
"year": "",
"tag": null,
"shelfDate": 0,
"releaseDate": 0,
"isVertical": 0
}
],
"update": 0,
"count": 0
}
400 失败
{
"module": "",
"statusCode": 0,
"message": ""
}
401 没有权限
{
"module": "",
"statusCode": 0,
"message": ""
}
403 token失效
{
"module": "",
"statusCode": 0,
"message": ""
}