feat: 各种接口补充与错误修正 (#1066)
* fix(video/collection.md): unclosed xml tags * feat(video/report.md): uuid not really random * feat: b23.tv short link * feat: login/moral/exp log * feat: v_voucher * feat: upload video cover & post * feat(creativecenter/upload.md): upload octet-stream * feat(creativecenter/upload.md): update some notes * feat(clientinfo/ip.md): another from live * feat: live web heartbeat * feat: update popular series & precious * fix(creativecenter/upload.md): mistakes in example * feat: merge duplicate fav info * feat(README.md): missing link to webmask * feat(search/hot.md): word_type * feat(login/login_action): recovery old api * feat(video/collection.md): series operation * feat: video season operation * feat: add & mod some links * feat(search/suggest.md): up to date * feat: web home header image * feat(misc/sign/bili_ticket.md): demo for nodejs * feat(creativecenter/upload.md): x-upos-auth validity period * feat: add referer & buvid3 to request header * feat: customer service message heartbeat & upload * feat(customerservice/msg.md): upload code 1200201 * feat(video/report.md): click/web/h5 * feat(video/report.md): view count desc * feat: laser2 * feat: wbi_key in bili_ticket * fix: typo & unclosed XML tags * feat(misc/sign/v_voucher): cookie x-bili-gaia-vtoken * feat(search/hot.md): square * feat(video/status_number.md): fold archive_stat/stat * feat(fav/info.md): resource/infos invalid type 21 * feat: /x/activity/subject/info * feat: lottery * feat(docs/misc/b23.tv): remove some unnecessary fields * feat(creativecenter/upload.md): types/predict * fix(video/collection.md): invalid end tag * feat: app version upgrade * feat(creativecenter/upload.md): tag/recommend #528 * feat(user/status_number.md): navnum * feat: /x/activity/page/list * feat(comment/list.md): desc about pagination_str * feat(comment/list.md): update example * feat(dynamic/all.md): #1082 * fix(comment/list.md): -352 not -412 * feat: #700 * feat(video/video_stream.md): #606 & cv949156 * feat(message/private_msg.md): single_unread freq * feat: getUserWallet * fix: broken form * feat(Layout.vue): copyright to 2024 * feat: /x/topic/pub/rcmd/search * feat: #425 * feat(misc/time_stamp.md): rtc/getTimestamp * fix(misc/time_stamp.md): missing end tag * feat: #745 * feat(dynamic/all.md): update feed/all * feat(danmaku/action.md): #220 * feat(live/info.md): gethistory from cv8186413 * fix(danmaku/action.md): missing end tag
This commit is contained in:
11370
docs/dynamic/all.md
11370
docs/dynamic/all.md
File diff suppressed because it is too large
Load Diff
@@ -1,31 +1,33 @@
|
||||
# 动态类型
|
||||
# 动态类型对照
|
||||
|
||||
| 类型 | 说明 | 示例 |
|
||||
|-------------------------------|----------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| DYNAMIC_TYPE_NONE | 无效动态 | [716510857084796964](https://t.bilibili.com/716510857084796964) |
|
||||
| DYNAMIC_TYPE_FORWARD | 动态转发 | |
|
||||
| DYNAMIC_TYPE_AV | 投稿视频 | |
|
||||
| DYNAMIC_TYPE_PGC | 剧集(番剧、电影、纪录片) | |
|
||||
| DYNAMIC_TYPE_COURSES | | |
|
||||
| DYNAMIC_TYPE_WORD | 纯文字动态 | [718377531474968613](https://t.bilibili.com/718377531474968613) |
|
||||
| DYNAMIC_TYPE_DRAW | 带图动态 | [718384798557536290](https://t.bilibili.com/718384798557536290) |
|
||||
| DYNAMIC_TYPE_ARTICLE | 投稿专栏 | [718372214316990512](https://t.bilibili.com/718372214316990512) |
|
||||
| DYNAMIC_TYPE_MUSIC | 音乐 | |
|
||||
| DYNAMIC_TYPE_COMMON_SQUARE | 装扮<br/>剧集点评<br/>普通分享 | [551309621391003098](https://t.bilibili.com/551309621391003098)<br/>[716503778995470375](https://t.bilibili.com/716503778995470375)<br/>[716481612656672789](https://t.bilibili.com/716481612656672789) |
|
||||
| DYNAMIC_TYPE_COMMON_VERTICAL | | |
|
||||
| DYNAMIC_TYPE_LIVE | 直播间分享 | [216042859353895488](https://t.bilibili.com/216042859353895488) |
|
||||
| DYNAMIC_TYPE_MEDIALIST | 收藏夹 | [534428265320147158](https://t.bilibili.com/534428265320147158) |
|
||||
| DYNAMIC_TYPE_COURSES_SEASON | 课程 | [717906712866062340](https://t.bilibili.com/717906712866062340) |
|
||||
| DYNAMIC_TYPE_COURSES_BATCH | | |
|
||||
| DYNAMIC_TYPE_AD | | |
|
||||
| DYNAMIC_TYPE_APPLET | | |
|
||||
| DYNAMIC_TYPE_SUBSCRIPTION | | |
|
||||
| DYNAMIC_TYPE_LIVE_RCMD | 直播开播 | [718371505648435205](https://t.bilibili.com/718371505648435205) |
|
||||
| DYNAMIC_TYPE_BANNER | | |
|
||||
| DYNAMIC_TYPE_UGC_SEASON | 合集更新 | [718390979031203873](https://t.bilibili.com/718390979031203873) |
|
||||
| DYNAMIC_TYPE_SUBSCRIPTION_NEW | | |
|
||||
## 动态类型
|
||||
|
||||
# 富文本节点类型
|
||||
| 类型 | 说明 | comment_id_str | comment_type |rid_str| 示例 |
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| DYNAMIC_TYPE_NONE | 无效动态 |||| [716510857084796964](https://t.bilibili.com/716510857084796964) |
|
||||
| DYNAMIC_TYPE_FORWARD | 动态转发 |动态本身id|17|||
|
||||
| DYNAMIC_TYPE_AV | 投稿视频 |视频AV号| 1 |视频AV号||
|
||||
| DYNAMIC_TYPE_PGC | 剧集(番剧、电影、纪录片) |剧集分集AV号| 1 |剧集分集EP号||
|
||||
| DYNAMIC_TYPE_COURSES | ||| ||
|
||||
| DYNAMIC_TYPE_WORD | 纯文字动态 |动态本身id|17|| [718377531474968613](https://t.bilibili.com/718377531474968613) |
|
||||
| DYNAMIC_TYPE_DRAW | 带图动态 |相簿id|11|相簿id| [718384798557536290](https://t.bilibili.com/718384798557536290) |
|
||||
| DYNAMIC_TYPE_ARTICLE | 投稿专栏 |专栏cv号|12|专栏cv号| [718372214316990512](https://t.bilibili.com/718372214316990512) |
|
||||
| DYNAMIC_TYPE_MUSIC | 音乐 ||| ||
|
||||
| DYNAMIC_TYPE_COMMON_SQUARE | 装扮<br/>剧集点评<br/>普通分享 ||17|| [551309621391003098](https://t.bilibili.com/551309621391003098)<br/>[716503778995470375](https://t.bilibili.com/716503778995470375)<br/>[716481612656672789](https://t.bilibili.com/716481612656672789) |
|
||||
| DYNAMIC_TYPE_COMMON_VERTICAL | ||| ||
|
||||
| DYNAMIC_TYPE_LIVE | 直播间分享 |动态本身id||直播间id| [216042859353895488](https://t.bilibili.com/216042859353895488) |
|
||||
| DYNAMIC_TYPE_MEDIALIST | 收藏夹 |收藏夹ml号|19|收藏夹ml号| [534428265320147158](https://t.bilibili.com/534428265320147158) |
|
||||
| DYNAMIC_TYPE_COURSES_SEASON | 课程 |||| [717906712866062340](https://t.bilibili.com/717906712866062340) |
|
||||
| DYNAMIC_TYPE_COURSES_BATCH | |||| |
|
||||
| DYNAMIC_TYPE_AD | ||| ||
|
||||
| DYNAMIC_TYPE_APPLET | ||| ||
|
||||
| DYNAMIC_TYPE_SUBSCRIPTION | ||| ||
|
||||
| DYNAMIC_TYPE_LIVE_RCMD | 直播开播 |动态本身id|17|live_id| [718371505648435205](https://t.bilibili.com/718371505648435205) |
|
||||
| DYNAMIC_TYPE_BANNER | ||| ||
|
||||
| DYNAMIC_TYPE_UGC_SEASON | 合集更新 |视频AV号|1|视频AV号| [718390979031203873](https://t.bilibili.com/718390979031203873) |
|
||||
| DYNAMIC_TYPE_SUBSCRIPTION_NEW | ||| ||
|
||||
|
||||
## 富文本节点类型
|
||||
|
||||
| 类型 | 说明 | 示例 |
|
||||
|---------------------------------|------|-----------------------------------------------------------------|
|
||||
@@ -49,7 +51,7 @@
|
||||
| RICH_TEXT_NODE_TYPE_OGV_EP | | |
|
||||
| RICH_TEXT_NODE_TYPE_SEARCH_WORD | | |
|
||||
|
||||
# 作者类型
|
||||
## 作者类型
|
||||
|
||||
| 类型 | 说明 | 示例 |
|
||||
|------------------------|------|-----|
|
||||
@@ -65,7 +67,7 @@
|
||||
| EMOJI_TYPE_NEW | | |
|
||||
| EMOJI_TYPE_VIP | | |
|
||||
|
||||
# 相关内容卡片类型
|
||||
## 相关内容卡片类型
|
||||
|
||||
| 类型 | 说明 | 示例 |
|
||||
|-------------------------|------|--------------------------------------------------------------------------|
|
||||
@@ -112,7 +114,7 @@
|
||||
| HIGHLIGHT_TEXT_STYLE_TYPE_NONE | | |
|
||||
| HIGHLIGHT_TEXT_STYLE_TYPE_ACTIVE | | |
|
||||
|
||||
# 动态主体类型
|
||||
## 动态主体类型
|
||||
|
||||
| 类型 | 说明 | 示例 |
|
||||
|-----------------------------|-------|-----------------------------------------------------------------|
|
||||
|
||||
202
docs/dynamic/topic.md
Normal file
202
docs/dynamic/topic.md
Normal file
@@ -0,0 +1,202 @@
|
||||
# 话题搜索
|
||||
|
||||
## 搜索发布话题
|
||||
|
||||
> https://app.bilibili.com/x/topic/pub/search
|
||||
> https://api.bilibili.com/x/topic/pub/search
|
||||
|
||||
*请求方法: GET*
|
||||
|
||||
注: 该接口可能存在传入页面大小与返回数量不匹配的问题, 可能与访问权限有关
|
||||
|
||||
<!--{
|
||||
"from": {
|
||||
"url": "https://t.bilibili.com/"
|
||||
"selector": ".bili-topic-search__input__inner"
|
||||
}
|
||||
}-->
|
||||
|
||||
**URL参数:**
|
||||
|
||||
| 参数名 | 类型 | 内容 | 必要性 | 备注 |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| keywords | str | 关键词 | 不必要 | |
|
||||
| content | str | 空 | 不必要 | |
|
||||
| upload_id | str | 上传 id? | 不必要 | 页面刷新第一次请求时为空, 后均非空<br />似乎为固定值, 格式: `${your_mid}_${login_or_last_refresh_or_cookie_ts}_${dig4}`, 如 `616368979_1722652786_2534` |
|
||||
| page_size | int | 页大小 | 不必要 | 默认为 20 |
|
||||
| page_num | int | 1 | 不必要 | 不用于翻页 |
|
||||
| offset | int | 偏移 | 不必要 | 可从响应 `data.page_info.offset` 中获取 |
|
||||
| web_location | str | 333.1365 | 不必要 | |
|
||||
|
||||
**JSON回复:**
|
||||
|
||||
根对象:
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| --- | --- | --- | --- |
|
||||
| code | num | 返回值 | 0: 成功<br />-400: 请求错误 |
|
||||
| message | str | 错误信息 | 默认为 0 |
|
||||
| ttl | num | 1 | |
|
||||
| data | obj | 信息本体 | |
|
||||
|
||||
`data` 对象:
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| --- | --- | --- | --- |
|
||||
| new_topic | obj | 新建话题? | |
|
||||
| has_create_jurisdiction | bool | false | 是否有创建权限? |
|
||||
| topic_items | array | 话题列表 | |
|
||||
| request_id | str | 请求 id | |
|
||||
| page_info | obj | 页信息 | |
|
||||
|
||||
`data` 中的 `new_topic` 对象:
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| --- | --- | --- | --- |
|
||||
| name | str | 请求参数中的 `keywords` | |
|
||||
|
||||
`data` 中的 `topic_items` 数组中的对象:
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| --- | --- | --- | --- |
|
||||
| id | num | 话题 id | |
|
||||
| name | str | 话题名 | |
|
||||
| view | num | 观看数 | |
|
||||
| discuss | num | 讨论数 | |
|
||||
| stat_desc | str | 状态描述 | |
|
||||
| description | str | 话题描述 | |
|
||||
| show_interact_data | bool | false | 是否显示互动数据? |
|
||||
|
||||
`data` 中的 `page_info` 对象:
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| --- | --- | --- | --- |
|
||||
| offset | num | 下次请求可用的偏移 | 请求参数中的 `offset` + `page_size` |
|
||||
| has_more | bool | 是否有更多数据 | 当没有更多时可能不存在该字段 |
|
||||
|
||||
**示例:**
|
||||
|
||||
注: 该示例就是解释开头所注的问题的一个示例
|
||||
|
||||
```shell
|
||||
curl -G 'https://app.bilibili.com/x/topic/pub/search' \
|
||||
--url-query 'keywords=2233'
|
||||
```
|
||||
|
||||
<details>
|
||||
<summary>查看响应示例:</summary>
|
||||
|
||||
```json
|
||||
{
|
||||
"code": 0,
|
||||
"message": "0",
|
||||
"ttl": 1,
|
||||
"data": {
|
||||
"new_topic": {
|
||||
"name": "2233"
|
||||
},
|
||||
"has_create_jurisdiction": false,
|
||||
"topic_items": [
|
||||
{
|
||||
"id": 1101122,
|
||||
"name": "2233异世集",
|
||||
"view": 2502,
|
||||
"discuss": 11,
|
||||
"stat_desc": "2502浏览·11讨论",
|
||||
"description": "分享数字周边",
|
||||
"show_interact_data": false
|
||||
},
|
||||
{
|
||||
"id": 1050671,
|
||||
"name": "2233生日倒计时",
|
||||
"view": 21149,
|
||||
"discuss": 130,
|
||||
"stat_desc": "2.1万浏览·130讨论",
|
||||
"description": "2233生日倒计时",
|
||||
"show_interact_data": false
|
||||
},
|
||||
{
|
||||
"id": 1057129,
|
||||
"name": "2233手办可可爱爱",
|
||||
"view": 836,
|
||||
"discuss": 14,
|
||||
"stat_desc": "836浏览·14讨论",
|
||||
"description": "喜欢2233,",
|
||||
"show_interact_data": false
|
||||
}
|
||||
],
|
||||
"request_id": "1$0$1723796266$7f515d4e26b7bd5007fb8ca4b066bf0b",
|
||||
"page_info": {
|
||||
"offset": 4,
|
||||
"has_more": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
## 推荐搜索话题?
|
||||
|
||||
> https://app.bilibili.com/x/topic/pub/rcmd/search
|
||||
> https://api.bilibili.com/x/topic/pub/rcmd/search
|
||||
|
||||
*请求方法: GET*
|
||||
|
||||
注: 该接口啥也不返回, 但是网页端会请求该接口
|
||||
|
||||
<!--{
|
||||
"from": {
|
||||
"url": "https://t.bilibili.com/"
|
||||
},
|
||||
"gh": [1083]
|
||||
}-->
|
||||
|
||||
**URL参数:**
|
||||
|
||||
| 参数名 | 类型 | 内容 | 必要性 | 备注 |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| keywords | str | 空 | 不必要 | |
|
||||
| upload_id | str | 上传 id? | 不必要 | 同上 |
|
||||
| web_location | str | 333.1365 | 不必要 | 有时请求不带该参数 |
|
||||
|
||||
**JSON回复:**
|
||||
|
||||
根对象:
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| --- | --- | --- | --- |
|
||||
| code | num | 返回值 | 0: 成功 |
|
||||
| message | str | 错误信息 | 默认为 0 |
|
||||
| ttl | num | 1 | |
|
||||
| data | str | 数据本体 | |
|
||||
|
||||
`data` 对象:
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| --- | --- | -- | --- |
|
||||
| topic_items | array | 空 | |
|
||||
| request_id | str | 请求 id | 当传入 `keywords` 时不为空|
|
||||
|
||||
**示例:**
|
||||
|
||||
```shell
|
||||
curl -G 'https://app.bilibili.com/x/topic/pub/rcmd/search'
|
||||
```
|
||||
|
||||
<details>
|
||||
<summary>查看响应示例:</summary>
|
||||
|
||||
```json
|
||||
{
|
||||
"code": 0,
|
||||
"message": "0",
|
||||
"ttl": 1,
|
||||
"data": {
|
||||
"topic_items": [],
|
||||
"request_id": ""
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
</details>
|
||||
Reference in New Issue
Block a user