2020-05-20 14:12:33 +08:00
|
|
|
|
# 音频状态数
|
|
|
|
|
|
2020-11-20 20:13:12 +08:00
|
|
|
|
- [歌曲状态数](#歌曲状态数)
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
2020-05-20 14:12:33 +08:00
|
|
|
|
## 歌曲状态数
|
|
|
|
|
|
|
|
|
|
>http://www.bilibili.com/audio/music-service-c/web/stat/song
|
|
|
|
|
|
2020-07-14 18:44:44 +08:00
|
|
|
|
*请求方式:GET*
|
2020-05-20 14:12:33 +08:00
|
|
|
|
|
|
|
|
|
唯缺投币数2333333
|
|
|
|
|
|
2020-06-08 22:44:46 +08:00
|
|
|
|
**url参数:**
|
2020-05-20 14:12:33 +08:00
|
|
|
|
|
|
|
|
|
| 参数名 | 类型 | 内容 | 必要性 | 备注 |
|
|
|
|
|
| ------ | ---- | -------- | ------ | ---- |
|
2021-07-12 21:31:27 +08:00
|
|
|
|
| sid | num | 音频auid | 必要 | |
|
2020-05-20 14:12:33 +08:00
|
|
|
|
|
|
|
|
|
**json回复:**
|
|
|
|
|
|
|
|
|
|
根对象:
|
|
|
|
|
|
|
|
|
|
| 字段 | 类型 | 内容 | 备注 |
|
|
|
|
|
| ---- | ---- | -------- | ------------------------------- |
|
|
|
|
|
| code | num | 返回值 | 0:成功<br />72000000:参数错误 |
|
|
|
|
|
| msg | str | 错误信息 | 默认为success |
|
|
|
|
|
| data | obj | 信息本体 | |
|
|
|
|
|
|
|
|
|
|
`data`对象:
|
|
|
|
|
|
|
|
|
|
| 字段 | 类型 | 内容 | 备注 |
|
|
|
|
|
| ------- | ---- | -------- | ---- |
|
2021-07-12 21:31:27 +08:00
|
|
|
|
| sid | num | 音频auid | |
|
2020-05-20 14:12:33 +08:00
|
|
|
|
| play | num | 播放次数 | |
|
|
|
|
|
| collect | num | 收藏数 | |
|
|
|
|
|
| comment | num | 评论数 | |
|
|
|
|
|
| share | num | 分享数 | |
|
|
|
|
|
|
|
|
|
|
**示例:**
|
|
|
|
|
|
|
|
|
|
查询歌曲`au15664`的状态数
|
|
|
|
|
|
2020-07-19 21:56:58 +08:00
|
|
|
|
```shell
|
2020-10-16 19:31:41 +08:00
|
|
|
|
curl -G 'http://www.bilibili.com/audio/music-service-c/web/stat/song' \
|
2020-07-19 21:56:58 +08:00
|
|
|
|
--data-urlencode 'sid=15664'
|
|
|
|
|
```
|
2020-05-20 14:12:33 +08:00
|
|
|
|
|
2020-08-31 16:37:38 +08:00
|
|
|
|
<details>
|
|
|
|
|
<summary>查看响应示例:</summary>
|
|
|
|
|
|
2020-05-20 14:12:33 +08:00
|
|
|
|
```json
|
|
|
|
|
{
|
|
|
|
|
"code": 0,
|
|
|
|
|
"msg": "success",
|
|
|
|
|
"data": {
|
|
|
|
|
"sid": 15664,
|
|
|
|
|
"play": 1377390,
|
|
|
|
|
"collect": 44340,
|
|
|
|
|
"comment": 2756,
|
|
|
|
|
"share": 4114
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
2020-08-31 16:37:38 +08:00
|
|
|
|
</details>
|