From b328af71048d7697307aecab84e424146188a4a5 Mon Sep 17 00:00:00 2001 From: xh286286 Date: Sat, 10 Aug 2024 18:33:00 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E7=9B=B4=E6=92=AD=E9=97=B4=E4=B8=BB=E6=92=AD=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=20(#1077)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update README.md * Update info.md --- README.md | 2 +- docs/live/info.md | 168 +++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 168 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2364b21..7afb5ae 100644 --- a/README.md +++ b/README.md @@ -240,7 +240,7 @@ B站 API 采用 C/S 结构,大多数接口为 REST API 和 gRPC,少部分接 - [ ] [直播红包](docs/live/redpocket.md) - [ ] [直播间用户实用 API](docs/live/user.md) - [x] [直播间禁言相关](docs/live/silent_user_manage.md) - - [ ] [关注UP直播情况](docs/live/follow_up_live) + - [ ] [关注UP直播情况](docs/live/follow_up_live.md) - [ ] [转正答题](docs/newbie_exam) - [x] [查询信息](docs/newbie_exam/info.md) - [x] [拉取题目](docs/newbie_exam/fetch.md) diff --git a/docs/live/info.md b/docs/live/info.md index db3f03a..dc7d7aa 100644 --- a/docs/live/info.md +++ b/docs/live/info.md @@ -958,4 +958,170 @@ curl -L -X GET 'https://api.live.bilibili.com/xlive/web-room/v2/index/getRoomPla } ``` - \ No newline at end of file + + + + + + +## 获取直播间主播信息 + +> https://api.live.bilibili.com/live_user/v1/UserInfo/get_anchor_in_room + +*请求方式: GET* + +**URL参数:** + +| 参数名 | 类型 | 内容 | 必要性 | 备注 | +|---------|-----|------|-----|-------| +| roomid | num | 直播间号 | 必要 | 可以为短号 | + + +**json回复:** + + +根对象: + +| 字段 | 类型 | 内容 | 备注 | +|---------|-----|------|-----------------| +| code | num | 返回值 | 0:成功 (直播间不存在也为0) | +| message | str | 错误信息 | | +| msg | str | 错误信息 | | +| data | obj | 信息本体 | | + + + +`data`对象: + +| 字段 | 类型 | 内容 | 备注 | +|-------------------------|-----------|--------|-----------------------------| +| info | obj | 主播信息 | | +| level | obj | 直播等级 | | +| san | num | 主播san值 | 12满分 | + + +`info`对象: + + +| 字段 | 类型 | 内容 | 备注 | +|-------------------|------|------------------|----------| +| uid | num | 主播mid | | +| uname | str | 主播用户名 | | +| face | str | 主播头像URL | | +| rank | str | 主播排名 | | +| platform_user_level | num | 平台用户等级 | | +| mobile_verify | num | 手机验证状态 | | +| identification | num | 身份认证状态 | | +| official_verify | obj | 认证信息 | | +| vip_type | num | VIP类型 | | +| gender | num | 主播性别 | -1:保密
0:女
1:男 | + + +`info`中的`official_verify`对象: + +| 字段 | 类型 | 内容 | 备注 | +|------|------|----------|-----| +| type | num | 主播认证类型 | -1:无
0:个人认证
1:机构认证 | +| desc | str | 主播认证信息 | | +| role | num | 未知 | | + +`level`对象: + + + +| 字段 | 类型 | 内容 | 备注 | +|--------------|------|------------------|----------| +| uid | num | 用户ID | | +| cost | num | 消费金额 | | +| rcost | num | 充值金额 | | +| user_score | str | 用户积分 | | +| vip | num | VIP状态 | | +| vip_time | str | VIP到期时间 | | +| svip | num | SVIP状态 | | +| svip_time | str | SVIP到期时间 | | +| update_time | str | 更新时间 | | +| master_level | obj | 主播等级 | | +| user_level | num | 用户等级 | | +| color | num | 颜色值 | | +| anchor_score | num | 主播积分 | | + + + +`level` 中的 `master_level`对象: + +| 字段 | 类型 | 内容 | 备注 | +|-------------------|------|------------------|----------| +| level | num | 主播等级 | | +| color | num | 颜色值 | | +| current | list | 当前积分 | | +| next | list | 下一等级积分 | | +| anchor_score | num | 主播积分 | | +| upgrade_score | num | 升级积分 | | +| master_level_color | num | 主播等级颜色值 | | +| sort | str | 排名 | | + + +**示例:** + +查询`roomid=1`的直播间主播信息 + +```shell +curl -G 'https://api.live.bilibili.com/live_user/v1/UserInfo/get_anchor_in_room' \ +--data-urlencode 'roomid=1' +``` + +
+查看响应示例: + +```json +{ + "code": 0, + "msg": "success", + "message": "success", + "data": { + "info": { + "uid": 9617619, + "uname": "哔哩哔哩直播", + "face": "https://i0.hdslb.com/bfs/face/8f6a614a48a3813d90da7a11894ae56a59396fcd.jpg", + "rank": "10000", + "platform_user_level": 6, + "mobile_verify": 1, + "identification": 1, + "official_verify": { + "type": 1, + "desc": "哔哩哔哩直播官方账号", + "role": 3 + }, + "vip_type": 2, + "gender": -1 + }, + "level": { + "uid": 9617619, + "cost": 7782673656, + "rcost": 20199200291, + "user_score": "0", + "vip": 0, + "vip_time": "0000-00-00 00:00:00", + "svip": 0, + "svip_time": "0000-00-00 00:00:00", + "update_time": "2024-08-08 17:13:12", + "master_level": { + "level": 40, + "color": 16746162, + "current": [0, 147013810], + "next": [0, 147013810], + "anchor_score": 201992002, + "upgrade_score": 0, + "master_level_color": 16746162, + "sort": "\u003E10000" + }, + "user_level": 60, + "color": 16752445, + "anchor_score": 201992002 + }, + "san": 12 + } +} +``` + +
From 5cb9df427eccf3992661c3ab2a7f9d255dd89c72 Mon Sep 17 00:00:00 2001 From: SocialSisterYi <1440239038@qq.com> Date: Mon, 12 Aug 2024 16:41:07 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E3=80=90=E5=90=88?= =?UTF-8?q?=E9=9B=86=E5=92=8C=E8=A7=86=E9=A2=91=E5=88=97=E8=A1=A8=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E3=80=91=20
=E6=A0=87=E7=AD=BE=E7=BC=BA?= =?UTF-8?q?=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/video/collection.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/video/collection.md b/docs/video/collection.md index 44e03f0..d527819 100644 --- a/docs/video/collection.md +++ b/docs/video/collection.md @@ -907,6 +907,8 @@ curl -G "https://api.bilibili.com/x/polymer/web-space/home/seasons_series" \ } ``` +
+ ## 获取系列和合集视频 > https://api.bilibili.com/x/polymer/web-space/seasons_series_list @@ -1559,3 +1561,5 @@ curl -G "https://api.bilibili.com/x/series/archives" \ } } ``` + + From f7599fb69329f6b4ee4f7e142739ddcc8fe904cc Mon Sep 17 00:00:00 2001 From: Zhang San Date: Tue, 13 Aug 2024 17:50:44 +0800 Subject: [PATCH 3/4] Update info.md (#1081) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 郝给力,冰糖,Overidea_China的账号被叔叔放出来了 --- docs/user/info.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/user/info.md b/docs/user/info.md index 18f12b4..33f5dbd 100644 --- a/docs/user/info.md +++ b/docs/user/info.md @@ -228,7 +228,7 @@ | id | content | notice_type | 示例用户 | |-----|-------------------------------------------------|-------------|-------------------------------------------------------------------------------------------------| -| 5 | 该用户存在争议行为,已冻结其帐号功能的使用 | 1 | [82385070](https://space.bilibili.com/82385070) | +| 5 | 该用户存在争议行为,已冻结其帐号功能的使用 | 1 || | 8 | 该用户存在较大争议,请谨慎甄别其内容 | 1 | [28062215](https://space.bilibili.com/28062215) | | 11 | 该账号涉及合约争议,暂冻结其账号功能使用。详见公告-> | 1 || | 16 | 该UP主内容存在争议,请注意甄别视频内信息 | 1 | [382534165](https://space.bilibili.com/382534165) | @@ -238,7 +238,7 @@ | 25 | 该用户涉及严重指控,暂冻结其账号功能使用 | 1 | [81447581](https://space.bilibili.com/81447581) | | 31 | 该用户涉及严重指控,暂冻结其账号功能使用 | 1 | [22439273](https://space.bilibili.com/22439273) | | 34 | 该用户涉及严重指控,暂冻结其账号功能使用 | 1 | [1640486775](https://space.bilibili.com/1640486775) | -| 36 | 该账户存在争议,请谨慎甄别 | 1 | [198297](https://space.bilibili.com/198297)
[18149131](https://space.bilibili.com/18149131) | +| 36 | 该账户存在争议,请谨慎甄别 | 1 || `data`中的`live_room`对象: From 60a0c5d1a2f44fe61335da04571305fa7727a968 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Session=E5=B0=8F=E8=83=A1?= <102411014+SessionHu@users.noreply.github.com> Date: Wed, 21 Aug 2024 19:02:39 +0800 Subject: [PATCH 4/4] =?UTF-8?q?feat:=20=E5=90=84=E7=A7=8D=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E8=A1=A5=E5=85=85=E4=B8=8E=E9=94=99=E8=AF=AF=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3=20(#1066)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- .vuepress/theme/layouts/Layout.vue | 2 +- README.md | 42 +- docs/APP_widget/ver.md | 91 + docs/activity/info.md | 93 + docs/activity/list.md | 213 + docs/clientinfo/ip.md | 10 +- docs/comment/list.md | 3206 ++----- docs/creativecenter/season.md | 730 ++ docs/creativecenter/upload.md | 1087 +++ docs/creativecenter/videos.md | 555 ++ docs/customerservice/msg.md | 115 + docs/danmaku/action.md | 89 +- docs/dynamic/all.md | 11370 ++++++++++++++++-------- docs/dynamic/dynamic_enum.md | 60 +- docs/dynamic/topic.md | 202 + docs/fav/info.md | 459 +- docs/garb/lottery.md | 742 ++ docs/live/info.md | 1432 ++- docs/live/report.md | 66 + docs/login/login_action/password.md | 309 +- docs/login/login_action/readme.md | 71 +- docs/login/login_notice.md | 191 + docs/login/member_center.md | 193 + docs/message/private_msg.md | 2 + docs/misc/b23tv.md | 127 + docs/misc/buvid3_4.md | 2 +- docs/misc/picture.md | 4 +- docs/misc/sign/bili_ticket.md | 129 + docs/misc/sign/v_voucher.md | 177 + docs/misc/sign/wbi.md | 3 +- docs/misc/time_stamp.md | 55 +- docs/search/hot.md | 125 +- docs/search/search_request.md | 6 +- docs/search/suggest.md | 242 +- docs/user/medals.md | 822 ++ docs/user/space.md | 290 +- docs/user/status_number.md | 71 +- docs/video/collection.md | 423 +- docs/video/player.md | 73 +- docs/video/report.md | 83 +- docs/video/status_number.md | 6 + docs/video/videostream_url.md | 4 +- docs/video_ranking/popular.md | 2296 ++--- docs/video_ranking/precious_videos.md | 212 +- docs/wallet/info.md | 83 + docs/web_widget/header.md | 133 + 46 files changed, 18489 insertions(+), 8207 deletions(-) create mode 100644 docs/APP_widget/ver.md create mode 100644 docs/activity/info.md create mode 100644 docs/activity/list.md create mode 100644 docs/creativecenter/season.md create mode 100644 docs/creativecenter/upload.md create mode 100644 docs/creativecenter/videos.md create mode 100644 docs/customerservice/msg.md create mode 100644 docs/dynamic/topic.md create mode 100644 docs/garb/lottery.md create mode 100644 docs/live/report.md create mode 100644 docs/misc/b23tv.md create mode 100644 docs/misc/sign/v_voucher.md create mode 100644 docs/user/medals.md create mode 100644 docs/wallet/info.md create mode 100644 docs/web_widget/header.md diff --git a/.vuepress/theme/layouts/Layout.vue b/.vuepress/theme/layouts/Layout.vue index 8e1f791..42ed824 100644 --- a/.vuepress/theme/layouts/Layout.vue +++ b/.vuepress/theme/layouts/Layout.vue @@ -2,7 +2,7 @@