mirror of
https://github.com/SocialSisterYi/bilibili-API-collect.git
synced 2025-01-13 21:30:06 +08:00
1e24c6b188
* 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>
94 lines
2.5 KiB
Markdown
94 lines
2.5 KiB
Markdown
# 活动主题信息
|
|
|
|
## 主题信息
|
|
|
|
> https://api.bilibili.com/x/activity/subject/info
|
|
|
|
*请求方式: GET*
|
|
|
|
**URL参数:**
|
|
|
|
| 参数名 | 类型 | 内容 | 必要性 | 备注 |
|
|
| - | - | - | - | - |
|
|
| sid | num | 活动 id | 必要 | |
|
|
| bvid | str | 来源视频 bvid | 非必要 | |
|
|
|
|
**JSON回复:**
|
|
|
|
根对象:
|
|
|
|
| 字段 | 类型 | 内容 | 备注 |
|
|
| - | - | - | - |
|
|
| code | num | 返回值 | 0: 成功<br />-400: 请求错误 |
|
|
| message | str | 错误信息 | 默认为 0 |
|
|
| ttl | num | 1 | |
|
|
| data | obj | 数据本体 | |
|
|
|
|
`data` 对象:
|
|
|
|
| 字段 | 类型 | 内容 | 备注 |
|
|
| - | - | - | - |
|
|
| id | num | 活动 id | |
|
|
| oid | num | 0 | |
|
|
| type | num | 13 | |
|
|
| state | num | 1 | |
|
|
| stime | num | 开始时间 | UNIX 秒级时间戳 |
|
|
| etime | num | 结束时间 | UNIX 秒级时间戳 |
|
|
| ctime | num | 创建时间 | UNIX 秒级时间戳 |
|
|
| mtime | num | 修改时间 | UNIX 秒级时间戳 |
|
|
| name | str | 活动名称 | |
|
|
| act_url | str | 活动链接 | |
|
|
| lstime | num | ? | 作用尚不明确 |
|
|
| letime | num | ? | 作用尚不明确 |
|
|
| cover | str | 封面图片 | |
|
|
| dic | str | 简介 | |
|
|
| h5_cover | str | H5 封面 | |
|
|
| android_url | str | Android 端活动链接 | |
|
|
| ios_url | str | iOS 端活动链接 | |
|
|
| child_sids | str | 子活动 id? | |
|
|
| calendar | str | 日历? | 空 或 `{}`? |
|
|
| lid | num | ? | 仅在传入 bvid 时存在 |
|
|
|
|
**示例:**
|
|
|
|
```shell
|
|
curl -G --url 'https://api.bilibili.com/x/activity/subject/info' \
|
|
--url-query 'sid=4017552' \
|
|
--url-query 'bvid=BV1mKY4e8ELy'
|
|
```
|
|
|
|
<details>
|
|
<summary>查看响应示例:</summary>
|
|
|
|
```json
|
|
{
|
|
"code": 0,
|
|
"message": "0",
|
|
"ttl": 1,
|
|
"data": {
|
|
"id": 4017552,
|
|
"oid": 0,
|
|
"type": 13,
|
|
"state": 1,
|
|
"stime": 1720540800,
|
|
"etime": 1728575999,
|
|
"ctime": 1720439769,
|
|
"mtime": 1720591285,
|
|
"name": "科技猎手2024第2季",
|
|
"act_url": "https://www.bilibili.com/blackboard/era/kejilieshou2PC.html",
|
|
"lstime": 1720540800,
|
|
"letime": 1728575999,
|
|
"cover": "https://i0.hdslb.com/bfs/activity-plat/static/98bc38873cc71e154019070975cd20a0/fLOEOStVUV.jpg",
|
|
"dic": "科技猎手召集中!投稿赢奖金>>",
|
|
"h5_cover": "https://i0.hdslb.com/bfs/activity-plat/static/98bc38873cc71e154019070975cd20a0/PTIFsXkV0o.jpg",
|
|
"android_url": "https://www.bilibili.com/blackboard/era/kejilieshou2H5.html",
|
|
"ios_url": "https://www.bilibili.com/blackboard/era/kejilieshou2H5.html",
|
|
"child_sids": "",
|
|
"calendar": "",
|
|
"lid": 294258214
|
|
}
|
|
}
|
|
```
|
|
|
|
</details>
|