forked from SocialSisterYi/bilibili-API-collect
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7242f32
commit 8913059
Showing
6 changed files
with
299 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ user/relation.md | |
user/space.md | ||
login/password&SMS.md | ||
B站API.txt | ||
login/msg.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,270 @@ | ||
# 登录基本信息 | ||
|
||
## 登录用户信息1(完整) | ||
|
||
需要登录(SESSDATA) | ||
|
||
api.bilibili.com/nav (使用转义) | ||
|
||
api.bilibili.com/x/web-interface/nav (原始数据) | ||
|
||
*方式:GET* | ||
|
||
**json回复:** | ||
|
||
| 字段 | 类型 | 内容 | 备注 | | ||
| ------- | ---- | -------- | -------------------- | | ||
| code | num | 返回值 | 0成功 -101账号未登录 | | ||
| message | str | 错误信息 | 默认为0 | | ||
| ttl | num | 1 | 作用尚不明确 | | ||
| data | obj | 信息本体 | | | ||
|
||
data 对象: | ||
|
||
| 字段 | 类型 | 内容 | 备注 | | ||
| --------------- | ---- | ---------------- | --------------- | | ||
| isLogin | bool | 是否已登录 | | | ||
| email_verified | num | 是否验证邮箱地址 | 0未验证 1已验证 | | ||
| face | str | 登录用户头像url | jpg gif | | ||
| level_info | obj | 等级信息 | | | ||
| mid | num | 登录UID | | | ||
| mobile_verified | num | 是否验证手机号 | 0未验证 1已验证 | | ||
| money | num | 拥有硬币数 | | | ||
| moral | num | 当前节操值 | 上限70 | | ||
| official | obj | 认证信息 | | | ||
| officialVerify | obj | 认证信息2 | | | ||
| pendant | obj | 挂件信息 | | | ||
| scores | num | 0 | 作用尚不明确 | | ||
| uname | str | 登录用户昵称 | | | ||
| vipDueDate | num | 大会员到期时间 | 毫秒 时间戳 | | ||
| vipStatus | num | 会员开通状态 | 0无 1有 | | ||
| vipType | num | 大会员类型 | 0无 1月度 2年度 | | ||
| vip_pay_type | num | 会员开通状态 | 0无 1有 | | ||
| vip_theme_type | num | 0 | 作用尚不明确 | | ||
| wallet | obj | B币信息 | | | ||
| has_shop | bool | false | 作用尚不明确 | | ||
| shop_url | str | 空 | 作用尚不明确 | | ||
| allowance_count | num | 0 | 作用尚不明确 | | ||
| answer_status | num | 0 | 作用尚不明确 | | ||
|
||
level_info 对象: | ||
|
||
| 字段 | 类型 | 内容 | 备注 | | ||
| ------------- | ---- | ------------------------ | ---- | | ||
| current_level | num | 当前等级 | | | ||
| current_min | num | 当前等级经验最低值 | | | ||
| current_exp | num | 当前经验 | | | ||
| next_exp | num | 升级下一等级需达到的经验 | | | ||
|
||
official 对象: | ||
|
||
| 字段 | 类型 | 内容 | 备注 | | ||
| ----- | ---- | -------- | ------------------------------- | | ||
| role | num | 认证类型 | 0无 1 2个人认证 3 4 5 6机构认证 | | ||
| title | str | 认证信息 | 无为空 | | ||
| desc | str | 认证备注 | 无为空 | | ||
| type | num | 是否认证 | -1无 0认证 | | ||
|
||
official_verify 对象: | ||
|
||
| 字段 | 类型 | 内容 | 备注 | | ||
| ---- | ---- | -------- | ---------- | | ||
| type | num | 是否认证 | -1无 0认证 | | ||
| desc | str | 认证信息 | 无为空 | | ||
|
||
pendant 对象: | ||
|
||
| 字段 | 类型 | 内容 | 备注 | | ||
| ------ | ---- | ----------- | ------------ | | ||
| pid | num | 挂件id | | | ||
| name | str | 挂件名称 | | | ||
| image | str | 挂件图片url | png | | ||
| expire | num | 0 | 作用尚不明确 | | ||
|
||
wallet 对象: | ||
|
||
| 字段 | 类型 | 内容 | 备注 | | ||
| --------------- | ---- | ------------- | ------------ | | ||
| mid | num | 登录用户UID | | | ||
| bcoin_balance | num | 拥有B币数 | | | ||
| coupon_balance | num | 每月奖励B币数 | | | ||
| coupon_due_time | num | 0 | 作用尚不明确 | | ||
|
||
示例: | ||
|
||
http://api.bilibili.com/x/web-interface/nav | ||
|
||
```json | ||
{ | ||
"code": 0, | ||
"message": "0", | ||
"ttl": 1, | ||
"data": { | ||
"isLogin": true, | ||
"email_verified": 1, | ||
"face": "http://i1.hdslb.com/bfs/face/480e2e98513aaeb65d2f2c76dbae750c4de722e9.jpg", | ||
"level_info": { | ||
"current_level": 5, | ||
"current_min": 10800, | ||
"current_exp": 14270, | ||
"next_exp": 28800 | ||
}, | ||
"mid": 293793435, | ||
"mobile_verified": 1, | ||
"money": 2.5, | ||
"moral": 70, | ||
"official": { | ||
"role": 0, | ||
"title": "", | ||
"desc": "", | ||
"type": -1 | ||
}, | ||
"officialVerify": { | ||
"type": -1, | ||
"desc": "" | ||
}, | ||
"pendant": { | ||
"pid": 1492, | ||
"name": "2020拜年祭·典藏", | ||
"image": "http://i0.hdslb.com/bfs/face/6550f53324c330f201a528e70ef305cb10ac2c01.png", | ||
"expire": 0 | ||
}, | ||
"scores": 0, | ||
"uname": "社会易姐QwQ", | ||
"vipDueDate": 1612454400000, | ||
"vipStatus": 1, | ||
"vipType": 2, | ||
"vip_pay_type": 1, | ||
"vip_theme_type": 0, | ||
"wallet": { | ||
"mid": 293793435, | ||
"bcoin_balance": 10, | ||
"coupon_balance": 5, | ||
"coupon_due_time": 0 | ||
}, | ||
"has_shop": false, | ||
"shop_url": "", | ||
"allowance_count": 0, | ||
"answer_status": 0 | ||
} | ||
} | ||
``` | ||
|
||
|
||
|
||
## 登录用户信息2(仅部分并带有转义) | ||
|
||
需要登录(SESSDATA) | ||
|
||
需要验证DedeUserID存在且不为0 | ||
|
||
account.bilibili.com/home/userInfo (使用转义) | ||
|
||
*方式:GET* | ||
|
||
**json回复:** | ||
|
||
| 字段 | 类型 | 内容 | 备注 | | ||
| ------ | ---- | -------- | -------------------- | | ||
| code | num | 返回值 | 0成功 -101账号未登录 | | ||
| status | bool | true | 作用尚不明确 | | ||
| data | obj | 信息本体 | | | ||
|
||
data 对象: | ||
|
||
| 字段 | 类型 | 内容 | 备注 | | ||
| ----------------- | ---- | ----------------- | --------------- | | ||
| level_info | obj | 等级信息 | | | ||
| bCoins | num | 拥有B币数 | | | ||
| coins | num | 拥有硬币数 | | | ||
| face | str | 登录用户头像url | jpg gif | | ||
| nameplate_current | null | ??? | 作用尚不明确 | | ||
| pendant_current | str | 登录用户头像框url | png | | ||
| uname | str | 登录用户昵称 | | | ||
| userStatus | str | 登录用户状态 | | | ||
| vipType | num | 大会员类型 | 0无 1月度 2年度 | | ||
| vipStatus | num | 会员开通状态 | 0无 1有 | | ||
| official_verify | num | 是否认证 | -1无 0认证 | | ||
| pointBalance | num | 0 | 作用尚不明确 | | ||
|
||
level_info 对象: | ||
|
||
| 字段 | 类型 | 内容 | 备注 | | ||
| ------------- | ---- | ------------------------ | ---- | | ||
| current_level | num | 当前等级 | | | ||
| current_min | num | 当前等级经验最低值 | | | ||
| current_exp | num | 当前经验 | | | ||
| next_exp | num | 升级下一等级需达到的经验 | | | ||
|
||
示例: | ||
|
||
http://account.bilibili.com/home/userInfo | ||
|
||
```json | ||
{ | ||
"code": 0, | ||
"status": true, | ||
"data": { | ||
"level_info": { | ||
"current_level": 5, | ||
"current_min": 10800, | ||
"current_exp": 14270, | ||
"next_exp": 28800 | ||
}, | ||
"bCoins": 10, | ||
"coins": 2.5, | ||
"face": "http:\/\/i2.hdslb.com\/bfs\/face\/480e2e98513aaeb65d2f2c76dbae750c4de722e9.jpg", | ||
"nameplate_current": null, | ||
"pendant_current": "http:\/\/i0.hdslb.com\/bfs\/face\/6550f53324c330f201a528e70ef305cb10ac2c01.png", | ||
"uname": "\u793e\u4f1a\u6613\u59d0QwQ", | ||
"userStatus": "\u6b63\u5f0f\u4f1a\u5458", | ||
"vipType": 2, | ||
"vipStatus": 1, | ||
"official_verify": -1, | ||
"pointBalance": 0 | ||
} | ||
} | ||
``` | ||
|
||
|
||
|
||
## 登录用户状态数 | ||
|
||
需要登录(SESSDATA) | ||
|
||
api.bilibili.com/x/web-interface/nav/stat | ||
|
||
*方式:GET* | ||
|
||
**json回复:** | ||
|
||
| 字段 | 类型 | 内容 | 备注 | | ||
| ------- | ---- | -------- | -------------------- | | ||
| code | num | 返回值 | 0成功 -101账号未登录 | | ||
| message | str | 错误信息 | 默认为0 | | ||
| ttl | num | 1 | 作用尚不明确 | | ||
| data | obj | 信息本体 | | | ||
|
||
| 字段 | 类型 | 内容 | 备注 | | ||
| ------------- | ---- | ---------- | ---- | | ||
| following | num | 关注数 | | | ||
| follower | num | 粉丝数 | | | ||
| dynamic_count | num | 发布动态数 | | | ||
|
||
示例: | ||
|
||
http://api.bilibili.com/x/web-interface/nav/stat | ||
|
||
```json | ||
{ | ||
"code": 0, | ||
"message": "0", | ||
"ttl": 1, | ||
"data": { | ||
"following": 695, | ||
"follower": 365, | ||
"dynamic_count": 162 | ||
} | ||
} | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.