bilibili-API-collect/docs/video/status_number.md
Session小胡 1e24c6b188
调整部分接口描述与错误修复 (#1088)
* fix(search/search_request.md): cookie buvid3

* feat(login/login_action/password.md): more sms desc

* fix: typo

* feat(live/info.md): add ps for getRoomBaseInfo

* fix(danmaku/action.md): broken form

* chore: Browserslist: caniuse-lite is outdated

* feat(comment/list.md): reply/wbi/main param next

* feat(misc/buvid3_4.md): get buvid3 only

* fix: broken links & wrong code type

* feat: close all img & br tags

* feat(login/cookie_refresh.md): missing demo links

* feat(dynamic/detail.md): /lottery_svr/v1/lottery_svr/lottery_notice

* fix(video/action.md): share cookie buvid3

* feat: deprecated stat & attribute

* feat(dynamic/detail.md): reaction

* feat(misc/sign/v_voucher.md): header

* feat(dynamic/detail.md): update detail params & example

* feat(APP_widget/ver.md): /x/v2/version

* feat(video/info.md): update view

* feat(docs/user.md): remove channel

* feat(search/search_request.md): search/type -1200

* feat(user/space.md): audio

* feat(video/player.md): /x/player/wbi/v2

* feat(audio/musicstream_url.md): update web/url

* feat(comment/readme.md): state

* fix(user/medal.md): wrong guard_level desc

* feat(live/message_stream.md): DANMU_MSG

* fix(user/medals): wrong guard_level & guard_icon desc

* feat(live/message_stream.md): format & add more 'cmd'

* feat(live/message_stream.md): add more 'cmd'

* feat(live/message_stream.md): add tips for non-login users

* feat(video/player.md): need_login_subtitle

---------

Co-authored-by: 社会易姐QwQ <45892418+SocialSisterYi@users.noreply.github.com>
2024-09-19 23:17:33 +08:00

211 lines
7.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 视频状态数
本页接口均已失效
## 视频状态数仅avid
<details>
<summary>该接口已弃用 (HTTP 403)</summary>
> https://api.bilibili.com/archive_stat/stat
*请求方式GET*
**url参数**
| 参数名 | 类型 | 内容 | 必要性 | 备注 |
| ------ | ---- | -------- | ------ | ---- |
| aid | num | 稿件avid | 必要 | |
**json回复**
根对象:
| 字段 | 类型 | 内容 | 备注 |
| ------- | ---- | -------- | ----------------------------------------------- |
| code | num | 返回值 | 0成功<br />40001请求错误<br />40003无视频 |
| message | str | 错误信息 | 默认为0 |
| ttl | num | 1 | |
| data | obj | 信息本体 | |
`data`对象:
| 字段 | 类型 | 内容 | 备注 |
| ---------- | ------------------------ | ------------------------------ | -------------------- |
| aid | num | 稿件avid | |
| view | 正常num<br />屏蔽str | 正常:播放次数<br />屏蔽:"--" | |
| danmaku | num | 弹幕条数 | |
| reply | num | 评论条数 | |
| favorite | num | 收藏人数 | |
| coin | num | 投币枚数 | |
| share | num | 分享次数 | |
| now_rank | num | 0 | 作用尚不明确 |
| his_rank | num | 历史最高排行 | |
| like | num | 获赞次数 | |
| dislike | num | 0 | 作用尚不明确 |
| no_reprint | num | 禁止转载标志 | 0<br />1禁止 |
| copyright | num | 版权标志 | 1自制<br />2转载 |
**示例:**
查询视频`av91572143`的状态数
avid方式
```shell
curl -G 'https://api.bilibili.com/archive_stat/stat' \
--data-urlencode 'aid=91572143'
```
<details>
<summary>查看响应示例:</summary>
```json
{
"code": 0,
"message": "0",
"ttl": 1,
"data": {
"aid": 91572143,
"view": 2236510,
"danmaku": 37856,
"reply": 5723,
"favorite": 131317,
"coin": 143389,
"share": 44598,
"now_rank": 0,
"his_rank": 4,
"like": 264314,
"dislike": 0,
"no_reprint": 1,
"copyright": 1
}
}
```
</details>
</details>
## 视频状态数bvid/avid
<details>
<summary>该接口已失效 (HTTP 404)</summary>
> https://api.bilibili.com/x/web-interface/archive/stat
*请求方式GET*
此接口请求头中UA值存在`python`字串,会返回-412错误
**url参数**
| 参数名 | 类型 | 内容 | 必要性 | 备注 |
| ------ | ---- | -------- | ------------ | ------------------ |
| aid | num | 稿件avid | 必要(可选) | avid与bvid任选一个 |
| bvid | str | 稿件bvid | 必要(可选) | avid与bvid任选一个 |
**json回复**
根对象:
| 字段 | 类型 | 内容 | 备注 |
| ------- | ---- | -------- | ------------------------------------------------------------ |
| code | num | 返回值 | 0成功 <br />-400请求错误<br />-412请求被拦截<br />40003无视频 |
| message | str | 错误信息 | 默认为0 |
| ttl | num | 1 | |
| data | obj | 信息本体 | |
`data`对象:
| 字段 | 类型 | 内容 | 备注 |
| ---------- | ------------------------ | ------------------------------ | -------------------- |
| aid | num | 稿件avid | |
| bvid | str | 稿件bvid | |
| view | 正常num<br />屏蔽str | 正常:播放次数<br />屏蔽:"--" | |
| danmaku | num | 弹幕条数 | |
| reply | num | 评论条数 | |
| favorite | num | 收藏人数 | |
| coin | num | 投币枚数 | |
| share | num | 分享次数 | |
| now_rank | num | 0 | 作用尚不明确 |
| his_rank | num | 历史最高排行 | |
| like | num | 获赞次数 | |
| dislike | num | 0 | 作用尚不明确 |
| no_reprint | num | 禁止转载标志 | 0<br />1禁止 |
| copyright | num | 版权标志 | 1自制<br />2转载 |
| argue_msg | str | 警告信息 | 默认为空 |
| evaluation | str | 视频评分 | 默认为空 |
**示例:**
查询视频`av2271112`/`BV1es411D7sW`的状态数
avid方式
```shell
curl -G 'https://api.bilibili.com/x/web-interface/archive/stat' \
--data-urlencode 'aid=2271112'
```
bvid方式
```shell
curl -G 'https://api.bilibili.com/x/web-interface/archive/stat' \
--data-urlencode 'bvid=BV1es411D7sW'
```
<details>
<summary>查看响应示例:</summary>
```json
{
"code": 0,
"message": "0",
"ttl": 1,
"data": {
"aid": 2271112,
"bvid": "BV1es411D7sW",
"view": 26408224,
"danmaku": 161919,
"reply": 52825,
"favorite": 892560,
"coin": 599649,
"share": 240573,
"like": 628592,
"now_rank": 0,
"his_rank": 4,
"no_reprint": 0,
"copyright": 1,
"argue_msg": "",
"evaluation": ""
}
}
```
</details>
当UA为`2333python2333`时,则无法访问此接口:
```shell
curl -G 'https://api.bilibili.com/x/web-interface/archive/stat' \
--data-urlencode 'aid=2271112' \
-A '2333python2333'
```
<details>
<summary>查看响应示例:</summary>
```json
{
"code":-412,
"message":"请求被拦截",
"ttl":1,
"data":null
}
```
</details>
</details>