feat: 添加“获取视频超详细信息”与“获取多用户详细信息”API (#428)

* Update videostream_url.md

* Update videostream_url.md

* Update info.md

* Update info.md

* Update info.md

* Update videostream_url.md

* feat: Replace tab with 4 spaces

* Update videostream_url.md

* Update videostream_url.md
This commit is contained in:
wuziqian211 2022-07-26 19:58:01 +08:00 committed by GitHub
parent 69b7a3e590
commit fd4de21feb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 2855 additions and 78 deletions

View File

@ -27,10 +27,10 @@ B站的番剧视频为http流媒体需要对应的api以视频id获取取流u
| 80 | 1080P 高清 | TV端与APP端默认值<br />需要认证登录账号 |
| 112 | 1080P+ 高码率 | 大多情况需求认证大会员账号 |
| 116 | 1080P60 高帧率 | 大多情况需求认证大会员账号 |
| 120 | 4K 超清 | 需要`fnver&128=128`且`fourk=1`<br />大多情况需求认证大会员账号 |
| 125 | HDR 真彩色 | 仅支持dash方式<br />需要`fnver&64=64`<br />大多情况需求认证大会员账号 |
| 126 | 杜比视界 | 仅支持dash方式<br />需要`fnver&512=512`<br />大多情况需求认证大会员账号 |
| 127 | 8K 超高清 | 仅支持dash方式<br />需要`fnver&1024=1024`<br />大多情况需求认证大会员账号 |
| 120 | 4K 超清 | 需要`fnval&128=128`且`fourk=1`<br />大多情况需求认证大会员账号 |
| 125 | HDR 真彩色 | 仅支持dash方式<br />需要`fnval&64=64`<br />大多情况需求认证大会员账号 |
| 126 | 杜比视界 | 仅支持dash方式<br />需要`fnval&512=512`<br />大多情况需求认证大会员账号 |
| 127 | 8K 超高清 | 仅支持dash方式<br />需要`fnval&1024=1024`<br />大多情况需求认证大会员账号 |
例如请求1080P+的视频,则`qn=112`
@ -66,7 +66,7 @@ B站的番剧视频为http流媒体需要对应的api以视频id获取取流u
## 获取番剧视频流URL
> https://api.bilibili.com/pgc/player/web/playurl
> http://api.bilibili.com/pgc/player/web/playurl
*请求方式GET*
@ -94,10 +94,10 @@ B站的番剧视频为http流媒体需要对应的api以视频id获取取流u
| 参数名 | 类型 | 内容 | 必要性 | 备注 |
| ------ | ---- | ---------------- | ------------ | ------------------------------------------------------------ |
| avid | num | 稿件avid | 必要(可选) | avid与bvid任选一个 |
| bvid | str | 稿件bvid | 必要(可选) | avid与bvid任选一个 |
| epid | str | | 稿件epid | 必要 |
| cid | num | 视频cid | 必要 | |
| avid | num | 稿件avid | 非必要 | |
| bvid | str | 稿件bvid | 非必要 | |
| ep_id | num | 稿件epid | 必要(可选) | ep_id与cid任选一个 |
| cid | num | 视频cid | 必要(可选) | ep_id与cid任选一个 |
| qn | num | 视频清晰度选择 | 非必要 | 未登录默认32480P<br />登录默认64720P<br />**值含义见上表**<br />dash方式无效 |
| fnval | num | 视频获取方式选择 | 非必要 | 默认为0<br />0 2flv方式可能会有分段<br />1低清mp4方式仅240P与360P且限速65K/s<br />16 80dash方式音视频分流支持H.265 |
| fnver | num | 0 | 非必要 | 固定为0 |

View File

@ -2,9 +2,10 @@
<img src="/imgs/akari.jpg" width="200" height="200"/>
- [用户空间详细信息 ](#用户空间详细信息)
- [用户空间详细信息](#用户空间详细信息)
- [用户名片信息](#用户名片信息)
- [登录用户空间详细信息](#登录用户空间详细信息)
- [多用户详细信息](#多用户详细信息)
---
@ -855,3 +856,262 @@ curl -G 'api.bilibili.com/x/space/myinfo' \
```
</details>
## 多用户详细信息
> http://api.vc.bilibili.com/account/v1/user/cards
*请求方式GET*
认证方式Cookie(SESSDATA)
**url参数**
| 参数名 | 类型 | 内容 | 必要性 | 备注 |
| ------ | ---- | ----------------- | ------ | --------------------------------- |
| uids | nums | 目标用户的UID列表 | 必要 | 每个成员间用`,`分隔最多50个成员 |
**json回复**
根对象:
| 字段 | 类型 | 内容 | 备注 |
| ------- | ----- | -------- | ----------------------------------------------------------------- |
| code | num | 返回值 | 0成功<br />-400请求错误<br />600007超出批量获取用户信息限制 |
| msg | str | 错误信息 | 默认为空 |
| message | str | 错误信息 | 默认为空 |
| data | array | 信息本体 | |
`data`数组:
| 项 | 类型 | 内容 | 备注 |
| ---- | ---- | --------- | ---- |
| 0 | obj | 用户1 | |
| n | obj | 用户(n+1) | |
| …… | obj | …… | …… |
`data`数组中的对象:
基本同「[用户空间详细信息](#用户空间详细信息)」中的data对象
**示例:**
查询用户`uids=1,2,3`的详细信息
```shell
curl -G 'http://api.vc.bilibili.com/account/v1/user/cards' \
--data-urlencode 'uids=1,2,3' \
-b 'SESSDATA=xxx'
```
<details>
<summary>查看响应示例:</summary>
```json
{
"code": 0,
"msg": "",
"message": "",
"data": [{
"mid": 1,
"name": "bishi",
"sex": "男",
"face": "https://i1.hdslb.com/bfs/face/34c5b30a990c7ce4a809626d8153fa7895ec7b63.gif",
"sign": "",
"rank": 10000,
"level": 4,
"silence": 0,
"vip": {
"type": 2,
"status": 1,
"due_date": 1754496000000,
"vip_pay_type": 1,
"theme_type": 0,
"label": {
"path": "",
"text": "年度大会员",
"label_theme": "annual_vip",
"text_color": "#FFFFFF",
"bg_style": 1,
"bg_color": "#FB7299",
"border_color": "",
"use_img_label": true,
"img_label_uri_hans": "",
"img_label_uri_hant": "",
"img_label_uri_hans_static": "https://i0.hdslb.com/bfs/vip/8d4f8bfc713826a5412a0a27eaaac4d6b9ede1d9.png",
"img_label_uri_hant_static": "https://i0.hdslb.com/bfs/activity-plat/static/20220614/e369244d0b14644f5e1a06431e22a4d5/VEW8fCC0hg.png"
},
"avatar_subscript": 1,
"nickname_color": "#FB7299",
"role": 3,
"avatar_subscript_url": "",
"tv_vip_status": 0,
"tv_vip_pay_type": 0,
"tv_due_date": 1633622400
},
"pendant": {
"pid": 0,
"name": "",
"image": "",
"expire": 0,
"image_enhance": "",
"image_enhance_frame": ""
},
"nameplate": {
"nid": 0,
"name": "",
"image": "",
"image_small": "",
"level": "",
"condition": ""
},
"official": {
"role": 0,
"title": "",
"desc": "",
"type": -1
},
"birthday": 622137600,
"is_fake_account": 0,
"is_deleted": 0,
"in_reg_audit": 0,
"face_nft": 0,
"face_nft_new": 0,
"is_senior_member": 0
}, {
"mid": 2,
"name": "碧诗",
"sex": "男",
"face": "https://i2.hdslb.com/bfs/face/ef0457addb24141e15dfac6fbf45293ccf1e32ab.jpg",
"sign": "https://kami.im 直男过气网红 # av362830 “We Are Star Dust”",
"rank": 20000,
"level": 6,
"silence": 0,
"vip": {
"type": 2,
"status": 1,
"due_date": 3901881600000,
"vip_pay_type": 0,
"theme_type": 0,
"label": {
"path": "",
"text": "十年大会员",
"label_theme": "ten_annual_vip",
"text_color": "#FFFFFF",
"bg_style": 1,
"bg_color": "#FB7299",
"border_color": "",
"use_img_label": true,
"img_label_uri_hans": "",
"img_label_uri_hant": "",
"img_label_uri_hans_static": "https://i0.hdslb.com/bfs/vip/adb599797dd171e2d3d6d012f448b49679258344.png",
"img_label_uri_hant_static": "https://i0.hdslb.com/bfs/activity-plat/static/20220614/e369244d0b14644f5e1a06431e22a4d5/sGu57N6pgK.png"
},
"avatar_subscript": 1,
"nickname_color": "#FB7299",
"role": 7,
"avatar_subscript_url": "",
"tv_vip_status": 0,
"tv_vip_pay_type": 0,
"tv_due_date": 1655481600
},
"pendant": {
"pid": 32257,
"name": "EveOneCat2",
"image": "https://i2.hdslb.com/bfs/garb/item/488870931b1bba66da36d22848f0720480d3d79a.png",
"expire": 0,
"image_enhance": "https://i2.hdslb.com/bfs/garb/item/5974f17f9d96a88bafba2f6d18d647a486e88312.webp",
"image_enhance_frame": "https://i2.hdslb.com/bfs/garb/item/4316a3910bb0bd6f2f1c267a3e9187f0b9fe5bd0.png"
},
"nameplate": {
"nid": 10,
"name": "见习偶像",
"image": "https://i0.hdslb.com/bfs/face/e93dd9edfa7b9e18bf46fd8d71862327a2350923.png",
"image_small": "https://i1.hdslb.com/bfs/face/275b468b043ec246737ab8580a2075bee0b1263b.png",
"level": "普通勋章",
"condition": "所有自制视频总播放数>=10万"
},
"official": {
"role": 2,
"title": "bilibili创始人站长",
"desc": "",
"type": 0
},
"birthday": 622137600,
"is_fake_account": 0,
"is_deleted": 0,
"in_reg_audit": 0,
"face_nft": 0,
"face_nft_new": 0,
"is_senior_member": 1
}, {
"mid": 3,
"name": "囧囧倉",
"sex": "男",
"face": "https://i0.hdslb.com/bfs/face/d4de6a84557eea8f18510a3f61115d96832aa071.jpg",
"sign": "富强、民主、文明、和谐、自由、平等、公正、法治、爱国、敬业、诚信、友善。",
"rank": 10000,
"level": 5,
"silence": 0,
"vip": {
"type": 0,
"status": 0,
"due_date": 0,
"vip_pay_type": 0,
"theme_type": 0,
"label": {
"path": "",
"text": "",
"label_theme": "",
"text_color": "",
"bg_style": 0,
"bg_color": "",
"border_color": "",
"use_img_label": true,
"img_label_uri_hans": "",
"img_label_uri_hant": "",
"img_label_uri_hans_static": "https://i0.hdslb.com/bfs/vip/d7b702ef65a976b20ed854cbd04cb9e27341bb79.png",
"img_label_uri_hant_static": "https://i0.hdslb.com/bfs/activity-plat/static/20220614/e369244d0b14644f5e1a06431e22a4d5/KJunwh19T5.png"
},
"avatar_subscript": 0,
"nickname_color": "",
"role": 0,
"avatar_subscript_url": "",
"tv_vip_status": 0,
"tv_vip_pay_type": 0,
"tv_due_date": 0
},
"pendant": {
"pid": 0,
"name": "",
"image": "",
"expire": 0,
"image_enhance": "",
"image_enhance_frame": ""
},
"nameplate": {
"nid": 0,
"name": "",
"image": "",
"image_small": "",
"level": "",
"condition": ""
},
"official": {
"role": 0,
"title": "",
"desc": "",
"type": -1
},
"birthday": 1262275200,
"is_fake_account": 0,
"is_deleted": 0,
"in_reg_audit": 0,
"face_nft": 0,
"face_nft_new": 0,
"is_senior_member": 0
}]
}
```
</details>

File diff suppressed because it is too large Load Diff

View File

@ -27,10 +27,10 @@ B站的视频为http流媒体需要对应的api以视频id获取取流url
| 80 | 1080P 高清 | TV端与APP端默认值<br />需要认证登录账号 |
| 112 | 1080P+ 高码率 | 大多情况需求认证大会员账号 |
| 116 | 1080P60 高帧率 | 大多情况需求认证大会员账号 |
| 120 | 4K 超清 | 需要`fnver&128=128`且`fourk=1`<br />大多情况需求认证大会员账号 |
| 125 | HDR 真彩色 | 仅支持dash方式<br />需要`fnver&64=64`<br />大多情况需求认证大会员账号 |
| 126 | 杜比视界 | 仅支持dash方式<br />需要`fnver&512=512`<br />大多情况需求认证大会员账号 |
| 127 | 8K 超高清 | 仅支持dash方式<br />需要`fnver&1024=1024`<br />大多情况需求认证大会员账号 |
| 120 | 4K 超清 | 需要`fnval&128=128`且`fourk=1`<br />大多情况需求认证大会员账号 |
| 125 | HDR 真彩色 | 仅支持dash方式<br />需要`fnval&64=64`<br />大多情况需求认证大会员账号 |
| 126 | 杜比视界 | 仅支持dash方式<br />需要`fnval&512=512`<br />大多情况需求认证大会员账号 |
| 127 | 8K 超高清 | 仅支持dash方式<br />需要`fnval&1024=1024`<br />大多情况需求认证大会员账号 |
例如请求1080P+的视频,则`qn=112`