搜索用户字幕信息
请求地址
https://spark.bokecc.com/api/subtitle/search/user
请求参数
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
userid | String | 是 | 用户 id |
q | String | 是 | 查询的关键词 |
page | Integer | 否 | 从第几页开始,默认值:1 |
num_per_page | Integer | 否 | 每页多少个, 默认值:100 |
format | String | 否 | 返回格式,xml或json,默认xml |
返回数据
名称 | 类型 | 说明 |
---|---|---|
subtitles | Object | 字幕信息 |
subtiles说明
名称 | 类型 | 说明 |
---|---|---|
total | Integer | 返回字幕信息条数 |
subtitle | Array | 字幕信息 |
subtile说明
名称 | 类型 | 说明 |
---|---|---|
videoid | String | 视频id |
bg | Integer | 开始位置,单位:毫秒 |
ed | Integer | 结束位置,单位:毫秒 |
content | String | 字幕内容 |
XML示例
<?xmlversion="1.0"encoding="UTF-8"?>
<subtitles>
<total>20</total>
<subtitle>
<videoid>BFDED32DA30CEFAEFC9558351D509E7C</videoid>
<bg>3000</bg>
<ed>4000</ed>
<content>abc</content>
</subtitle>
<subtitle>
<videoid>33A6CAAD29A1B4CF7E6C9CEE8B422289</videoid>
<bg>5000</bg>
<ed>6000</ed>
<content>acd</content>
</subtitle>
</subtitles>
JSON示例
{
"subtitles": {
"total": 20,
"subtitle": [
{
"videoid": "BFDED32DA30CEFAEFC9558351D509E7C",
"bg": 3000,
"ed": 4000,
"content": "abc"
},
{
"videoid": "33A6CAAD29A1B4CF7E6C9CEE8B422289",
"bg": 5000,
"ed": 6000,
"content": "acd"
}
]
}
}