mirror of
https://github.com/SocialSisterYi/bilibili-API-collect.git
synced 2024-12-27 13:00:29 +08:00
添加购买高级弹幕权限及个人中心和稍后再看的若干api
This commit is contained in:
parent
0b6508b84c
commit
b4617f92e6
@ -23,7 +23,7 @@
|
||||
- [登录基本信息](login/login_info.md)√
|
||||
- [消息](login/msg.md)x
|
||||
- [私信](login/private_msg.md)x
|
||||
- 个人中心
|
||||
- [个人中心](login/member_center.md)×
|
||||
- [用户](user)
|
||||
- [基本信息](user/info.md)√
|
||||
- [状态数](user/status_number.md)√
|
||||
@ -92,7 +92,7 @@
|
||||
- 操作
|
||||
- [历史记录&稍后再看](history&toview)
|
||||
- [历史记录](history&toview/play_history.md)√
|
||||
- 稍后再看
|
||||
- [稍后再看](history&toview/toview.md)√
|
||||
- 收藏夹
|
||||
- 课程
|
||||
- [直播](live)
|
||||
|
@ -112,7 +112,50 @@ curl -b "SESSDATA=xxx" -d "dmid=32310301474947077&cid=168901231&csrf=xxx" "http:
|
||||
|
||||
|
||||
|
||||
## 检测发送高级弹幕权限
|
||||
## 购买高级弹幕发送权限
|
||||
|
||||
> http://api.bilibili.com/x/dm/adv/buy
|
||||
|
||||
*方式:POST*
|
||||
|
||||
需要登录(SESSDATA)
|
||||
|
||||
购买一次需要2硬币,同时向up主发送请求
|
||||
|
||||
**参数( application/x-www-form-urlencoded ):**
|
||||
|
||||
| 参数名 | 类型 | 内容 | 必要性 | 备注 |
|
||||
| ------ | ---- | ------------------- | ------ | ---- |
|
||||
| mode | data | sp | 必要 | |
|
||||
| cid | data | 视频CID | 必要 | |
|
||||
| csrf | data | cookies中的bili_jct | 必要 | |
|
||||
|
||||
**json回复:**
|
||||
|
||||
根对象:
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| ------- | ---- | -------- | ------------------------------------------------------------ |
|
||||
| code | num | 返回值 | 0:成功<br />-101:账号未登录<br />-102:账号被封停<br />-111:csrf校验失败<br />-107:硬币不足<br />-400:请求错误<br />36010:已购买 |
|
||||
| message | str | 返回信息 | |
|
||||
| ttl | num | 1 | 作用尚不明确 |
|
||||
|
||||
示例:
|
||||
|
||||
购买视频CID为`168901231`的高级弹幕发送权限
|
||||
|
||||
curl -b "SESSDATA=xxx" -d "mode=sp&cid=168901231&csrf=xxx" "http://api.bilibili.com/x/dm/adv/buy"
|
||||
|
||||
```json
|
||||
{
|
||||
"code":0,
|
||||
"message":"已成功购买"
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
## 检测高级弹幕发送权限
|
||||
|
||||
> http://api.bilibili.com/x/dm/adv/state
|
||||
|
||||
@ -131,12 +174,12 @@ curl -b "SESSDATA=xxx" -d "dmid=32310301474947077&cid=168901231&csrf=xxx" "http:
|
||||
|
||||
根对象:
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| ------- | ----------------------------- | ---------------- | ------------------------------------------------- |
|
||||
| code | num | 返回值 | 0:成功<br />-101:账号未登录<br />-400:请求错误 |
|
||||
| message | str | 错误信息 | 默认为0 |
|
||||
| ttl | num | 1 | 作用尚不明确 |
|
||||
| data | 有效时:obj<br />无效时:null | 有效时:信息本体 | |
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| ------- | ----------------------------- | ---------------- | -------------------------------------------------- |
|
||||
| code | num | 返回值 | 0:成功<br />-101:账号未登录<br />--400:请求错误 |
|
||||
| message | str | 错误信息 | 默认为0 |
|
||||
| ttl | num | 1 | 作用尚不明确 |
|
||||
| data | 有效时:obj<br />无效时:null | 有效时:信息本体 | |
|
||||
|
||||
`data`对象:
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
# 播放历史
|
||||
|
||||
## 查询视频播放历史
|
||||
## 获取视频播放历史
|
||||
|
||||
> http://api.bilibili.com/x/v2/history
|
||||
|
||||
|
466
history&toview/toview.md
Normal file
466
history&toview/toview.md
Normal file
@ -0,0 +1,466 @@
|
||||
# 稍后再看
|
||||
|
||||
## 视频添加稍后再看
|
||||
|
||||
>http://api.bilibili.com/x/v2/history/toview/add
|
||||
|
||||
*方式:POST*
|
||||
|
||||
需要登录(SESSDATA)
|
||||
|
||||
最多添加100个视频
|
||||
|
||||
**参数( application/x-www-form-urlencoded ):**
|
||||
|
||||
| 参数名 | 类型 | 内容 | 必要性 | 备注 |
|
||||
| ------ | ---- | ------------------- | ------ | ------------------ |
|
||||
| aid | data | 视频avID | 非必要 | avID与bvID任选一个 |
|
||||
| bvid | data | 视频bvID | 非必要 | avID与bvID任选一个 |
|
||||
| csrf | data | cookies中的bili_jct | 必要 | |
|
||||
|
||||
**json回复:**
|
||||
|
||||
根对象:
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| ------- | ---- | -------- | ------------------------------------------------------------ |
|
||||
| code | num | 返回值 | 0:成功<br />-101:账号未登录<br />-111:csrf校验失败<br />-400:请求错误<br />90001:列表已满<br />90003:稿件已经被删除 |
|
||||
| message | str | 错误信息 | 默认为0 |
|
||||
| ttl | num | 1 | 作用尚不明确 |
|
||||
|
||||
**示例:**
|
||||
|
||||
添加视频`av41687433`/`BV1ht41147kj`到稍后再看列表
|
||||
|
||||
curl -b "SESSDATA=xxx" -d "aid=41687433&csrf=xxx" "http://api.bilibili.com/x/v2/history/toview/add"
|
||||
|
||||
同curl -b "SESSDATA=xxx" -d "bvid=BV1ht41147kj&csrf=xxx" "http://api.bilibili.com/x/v2/history/toview/add"
|
||||
|
||||
```json
|
||||
{
|
||||
"code": 0,
|
||||
"message": "0",
|
||||
"ttl": 1
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
## 添加频道中所有视频到稍后再看
|
||||
|
||||
> http://space.bilibili.com/ajax/channel/addAllToView
|
||||
|
||||
*方式:POST*
|
||||
|
||||
需要登录(SESSDATA)
|
||||
|
||||
需要验证`DedeUserID`及`DedeUserID__ckMd5`存在且不为0
|
||||
|
||||
需要验证`referer`为 `http://.bilibili.com`或`https://.bilibili.com`域名下
|
||||
|
||||
带有转义
|
||||
|
||||
超过容量后会截取容量之内的添加
|
||||
|
||||
**参数( application/x-www-form-urlencoded ):**
|
||||
|
||||
| 参数名 | 类型 | 内容 | 必要性 | 备注 |
|
||||
| ------ | ---- | --------------------- | ------ | ---- |
|
||||
| cid | data | 目标频道ID | 必要 | |
|
||||
| mid | data | 目标频道所属的用户UID | 必要 | |
|
||||
| csrf | data | cookies中的bili_jct | 必要 | |
|
||||
|
||||
**json回复:**
|
||||
|
||||
根对象:
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| ------ | ---- | -------- | --------------------------- |
|
||||
| status | bool | 是否成功 | false:失败<br />true:成功 |
|
||||
| data | str | 错误信息 | |
|
||||
|
||||
**示例:**
|
||||
|
||||
添加用户`UID=282994`下的频道`4693`中所有视频到稍后再看
|
||||
|
||||
curl --referer "http://.bilibili.com" -b "SESSDATA=xxx;DedeUserID=1;DedeUserID__ckMd5=1" -d "cid=4693&mid=282994&csrf=xxx" "http://space.bilibili.com/ajax/channel/addAllToView"
|
||||
|
||||
```json
|
||||
{
|
||||
"status": true,
|
||||
"data": "操作成功"
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
## 获取稍后再看视频列表
|
||||
|
||||
> http://api.bilibili.com/x/v2/history/toview
|
||||
|
||||
*方式:GET*
|
||||
|
||||
需要登录(SESSDATA)
|
||||
|
||||
**json回复:**
|
||||
|
||||
根对象:
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| ------- | ---- | -------- | ------------------------------------------------- |
|
||||
| code | num | 返回值 | 0:成功<br />-101:账号未登录<br />-400:请求错误 |
|
||||
| message | str | 错误信息 | 默认为0 |
|
||||
| ttl | num | 1 | 作用尚不明确 |
|
||||
| data | data | 数据本体 | |
|
||||
|
||||
`data`对象:
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| ----- | ------ | ---------------- | ---- |
|
||||
| count | num | 稍后再看视频数 | |
|
||||
| list | arrary | 稍后再看视频列表 | |
|
||||
|
||||
`data`中的`list`数组:
|
||||
|
||||
| 项 | 类型 | 内容 | 备注 |
|
||||
| ---- | ---- | ------------- | ---------------------------------------------- |
|
||||
| 0 | obj | 稍后再看1 | |
|
||||
| n | obj | 稍后再看(n+1) | 按照添加顺序排列<br />项数为总计稍后再看视频数 |
|
||||
| …… | obj | …… | …… |
|
||||
| 99 | obj | 最后一项 | |
|
||||
|
||||
`data`中的`list`数组中的对象:
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| --------- | ---- | ------------------------------ | -------------------- |
|
||||
| aid | num | 视频avID | |
|
||||
| videos | num | 视频分P总数 | 默认为1 |
|
||||
| tid | num | 分区ID | |
|
||||
| tname | str | 子分区名称 | |
|
||||
| copyright | num | 版权标志 | 1:自制<br />2:转载 |
|
||||
| pic | str | 视频封面图片url | |
|
||||
| title | str | 视频标题 | |
|
||||
| pubdate | num | 视频上传时间 | 时间戳 |
|
||||
| ctime | num | 视频审核通过时间 | 时间戳 |
|
||||
| desc | str | 视频简介 | |
|
||||
| state | num | 0 | 作用尚不明确 |
|
||||
| attribute | num | ??? | 作用尚不明确 |
|
||||
| duration | num | 视频总计持续时长(所有分P) | 单位为秒 |
|
||||
| rights | obj | 视频属性标志 | |
|
||||
| owner | obj | 视频UP主信息 | |
|
||||
| stat | obj | 视频状态数 | |
|
||||
| dynamic | str | 视频同步发布的的动态的文字内容 | 无为空 |
|
||||
| dimension | obj | 视频1P分辨率 | |
|
||||
| count | num | 分P数 | 非投稿视频无此项 |
|
||||
| cid | num | 视频CID | |
|
||||
| progress | num | 观看进度时间 | 单位为秒 |
|
||||
| add_at | num | 添加时间 | 时间戳 |
|
||||
| bvid | str | 视频bvID | |
|
||||
|
||||
`data`中的`list`数组中的对象中的`rights`对象:
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| --------------- | ---- | ---------------- | ---------------------------------------- |
|
||||
| bp | num | 0 | 作用尚不明确 |
|
||||
| elec | num | 0 | 作用尚不明确 |
|
||||
| download | num | 允许下载标志 | 0:不允许<br />1:允许 |
|
||||
| movie | num | 视频时电影标志 | 0:否<br />1:是 |
|
||||
| pay | num | 仅会员可观看标志 | 0:无<br />1:有 |
|
||||
| hd5 | num | 有高码率标志 | 0:无<br />1:有 |
|
||||
| no_reprint | num | 禁止转载标志 | 0:无<br />1:禁止 |
|
||||
| autoplay | num | 可自动播放标志 | 0:无<br />1:有 区别影视番剧与普通视频 |
|
||||
| ugc_pay | num | 0 | 作用尚不明确 |
|
||||
| is_cooperation | num | 视频合作标志 | 0:无<br />1:是 |
|
||||
| ugc_pay_preview | num | 0 | 作用尚不明确 |
|
||||
| no_background | num | 0 | 作用尚不明确 |
|
||||
|
||||
`data`中的`list`数组中的对象中的`owner`对象:
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| ---- | ---- | -------- | ---- |
|
||||
| mid | num | UP主UID | |
|
||||
| name | str | UP主昵称 | |
|
||||
| face | str | UP主头像 | |
|
||||
|
||||
`data`中的`list`数组中的对象中的`stat`对象:
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| ---------- | ---- | ------------------------------ | ------------ |
|
||||
| aid | num | 视频avID | |
|
||||
| view | num | 普通:观看次数<br />屏蔽时:-1 | |
|
||||
| danmaku | num | 弹幕条数 | |
|
||||
| reply | num | 评论条数 | |
|
||||
| favorite | num | 收藏人数 | |
|
||||
| coin | num | 投币枚数 | |
|
||||
| share | num | 分享次数 | |
|
||||
| now_rank | num | 0 | 作用尚不明确 |
|
||||
| his_rank | num | 历史最高排行 | |
|
||||
| like | num | 获赞次数 | |
|
||||
| dislike | num | 0 | 作用尚不明确 |
|
||||
| evaluation | str | 视频评分 | 默认为空 |
|
||||
|
||||
`data`中的`list`数组中的对象中的`pages`对象:
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| --------- | ---- | --------------- | ------------------------------------ |
|
||||
| cid | num | 当前分P CID | |
|
||||
| page | num | 当前分P | |
|
||||
| from | str | 视频来源 | vupload:用户上传<br />hunan:芒果TV |
|
||||
| part | str | 当前分P标题 | |
|
||||
| duration | num | 当前分P持续时间 | 单位为秒 |
|
||||
| vid | str | 空 | 作用尚不明确 |
|
||||
| weblink | str | 空 | 作用尚不明确 |
|
||||
| dimension | obj | 当前分P分辨率 | |
|
||||
|
||||
`pages`中的`dimension`对象(同`data`中的`list`数组中的对象中的`dimension`对象):
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| ------ | ---- | ------------ | ------------ |
|
||||
| width | num | 当前分P 宽度 | 可能为0 |
|
||||
| height | num | 当前分P 高度 | 可能为0 |
|
||||
| rotate | num | 0 | 作用尚不明确 |
|
||||
|
||||
**示例:**
|
||||
|
||||
获取稍后再看视频列表
|
||||
|
||||
http://api.bilibili.com/x/v2/history/toview
|
||||
|
||||
```json
|
||||
"code": 0,
|
||||
"message": "0",
|
||||
"ttl": 1,
|
||||
"data": {
|
||||
"count": 25,
|
||||
"list": [
|
||||
{
|
||||
"aid": 200333024,
|
||||
"videos": 1,
|
||||
"tid": 95,
|
||||
"tname": "手机平板",
|
||||
"copyright": 1,
|
||||
"pic": "http://i1.hdslb.com/bfs/archive/a5e3072e670daec4c01a182aae91c1f85a48001e.jpg",
|
||||
"title": "【山新】疫情下,配音演员怎么开工录音?",
|
||||
"pubdate": 1586959137,
|
||||
"ctime": 1586959137,
|
||||
"desc": "疫情这段时间,配音演员们是怎么录音的呢=W=",
|
||||
"state": 0,
|
||||
"attribute": 16768,
|
||||
"duration": 218,
|
||||
"rights": {
|
||||
"bp": 0,
|
||||
"elec": 0,
|
||||
"download": 0,
|
||||
"movie": 0,
|
||||
"pay": 0,
|
||||
"hd5": 1,
|
||||
"no_reprint": 1,
|
||||
"autoplay": 1,
|
||||
"ugc_pay": 0,
|
||||
"is_cooperation": 0,
|
||||
"ugc_pay_preview": 0,
|
||||
"no_background": 0
|
||||
},
|
||||
"owner": {
|
||||
"mid": 14082,
|
||||
"name": "山新",
|
||||
"face": "http://i0.hdslb.com/bfs/face/74c82caee6d9eb623e56161ea8ed6d68afabfeae.jpg"
|
||||
},
|
||||
"stat": {
|
||||
"aid": 200333024,
|
||||
"view": 361123,
|
||||
"danmaku": 1792,
|
||||
"reply": 1376,
|
||||
"favorite": 7571,
|
||||
"coin": 12129,
|
||||
"share": 895,
|
||||
"now_rank": 0,
|
||||
"his_rank": 0,
|
||||
"like": 54705,
|
||||
"dislike": 0
|
||||
},
|
||||
"dynamic": "疫情这段时间,配音演员们是怎么录音的呢=W=",
|
||||
"dimension": {
|
||||
"width": 3840,
|
||||
"height": 2160,
|
||||
"rotate": 0
|
||||
},
|
||||
"page": {
|
||||
"cid": 178808041,
|
||||
"page": 1,
|
||||
"from": "vupload",
|
||||
"part": "无标题",
|
||||
"duration": 218,
|
||||
"vid": "",
|
||||
"weblink": "",
|
||||
"dimension": {
|
||||
"width": 3840,
|
||||
"height": 2160,
|
||||
"rotate": 0
|
||||
}
|
||||
},
|
||||
"count": 1,
|
||||
"cid": 178808041,
|
||||
"progress": 32,
|
||||
"add_at": 1587041785,
|
||||
"bvid": "BV1Yz411B7n3"
|
||||
},
|
||||
{
|
||||
"aid": 710350011,
|
||||
"videos": 1,
|
||||
"tid": 124,
|
||||
"tname": "趣味科普人文",
|
||||
"copyright": 1,
|
||||
"pic": "http://i0.hdslb.com/bfs/archive/c5b7e7c07a4abf27029c5afb3ab65fee4475b9a9.jpg",
|
||||
"title": "不花一分钱建立自己的网站!给硬盘里的小姐姐换个新家!",
|
||||
"pubdate": 1586919626,
|
||||
"ctime": 1586898238,
|
||||
"desc": "制作视频不易,你的点赞是对我最大的支持!\nUP主的个人网站:https://amdradeonrin.github.io/MIKU/\n视频提到的文件在网站有下载\nGitHub上的网站源码:https://github.com/AMDRadeonRin/MIKU",
|
||||
"state": 0,
|
||||
"attribute": 16768,
|
||||
"duration": 169,
|
||||
"mission_id": 13106,
|
||||
"rights": {
|
||||
"bp": 0,
|
||||
"elec": 0,
|
||||
"download": 0,
|
||||
"movie": 0,
|
||||
"pay": 0,
|
||||
"hd5": 1,
|
||||
"no_reprint": 1,
|
||||
"autoplay": 1,
|
||||
"ugc_pay": 0,
|
||||
"is_cooperation": 0,
|
||||
"ugc_pay_preview": 0,
|
||||
"no_background": 0
|
||||
},
|
||||
"owner": {
|
||||
"mid": 179757857,
|
||||
"name": "GTX690战术核显卡导弹",
|
||||
"face": "http://i2.hdslb.com/bfs/face/2504de8c1eeef22d91bbc45803f6b29afcbb0adf.jpg"
|
||||
},
|
||||
"stat": {
|
||||
"aid": 710350011,
|
||||
"view": 3293,
|
||||
"danmaku": 37,
|
||||
"reply": 117,
|
||||
"favorite": 355,
|
||||
"coin": 76,
|
||||
"share": 11,
|
||||
"now_rank": 0,
|
||||
"his_rank": 0,
|
||||
"like": 325,
|
||||
"dislike": 0
|
||||
},
|
||||
"dynamic": "#网页制作##HTML##网页#给你们科普一下怎么弄网站吧,你们也可以考虑整一个XD",
|
||||
"dimension": {
|
||||
"width": 1920,
|
||||
"height": 1080,
|
||||
"rotate": 0
|
||||
},
|
||||
"count": 1,
|
||||
"cid": 0,
|
||||
"progress": 0,
|
||||
"add_at": 1587012410,
|
||||
"bvid": "BV1LQ4y1T7Xh"
|
||||
},
|
||||
…………
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
## 删除稍后再看视频
|
||||
|
||||
> http://api.bilibili.com/x/v2/history/toview/del
|
||||
|
||||
*方式:POST*
|
||||
|
||||
需要登录(SESSDATA)
|
||||
|
||||
**参数( application/x-www-form-urlencoded ):**
|
||||
|
||||
| 参数名 | 类型 | 内容 | 必要性 | 备注 |
|
||||
| ------ | ---- | ------------------------ | ------ | ------------------------------------------------------------ |
|
||||
| viewed | data | 是否删除所有已观看的视频 | 非必要 | true:删除已观看视频<br />false:不删除已观看视频<br />默认为false |
|
||||
| aid | data | 删除的目标记录的avID | 非必要 | |
|
||||
| csrf | data | cookies中的bili_jct | 必要 | |
|
||||
|
||||
**json回复:**
|
||||
|
||||
根对象:
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| ------- | ---- | -------- | ------------------------------------------------------------ |
|
||||
| code | num | 返回值 | 0:成功<br />-101:账号未登录<br />-111:csrf校验失败<br />-400:请求错误 |
|
||||
| message | str | 错误信息 | 默认为0 |
|
||||
| ttl | num | 1 | 作用尚不明确 |
|
||||
|
||||
**示例:**
|
||||
|
||||
删除视频`av540580868`的稍后再看记录
|
||||
|
||||
curl -b "SESSDATA=xxx" -d "aid=540580868&csrf=xxx" "http://api.bilibili.com/x/v2/history/toview/del"
|
||||
|
||||
```json
|
||||
{
|
||||
"code": 0,
|
||||
"message": "0",
|
||||
"ttl": 1
|
||||
}
|
||||
```
|
||||
|
||||
删除所有已观看的视频
|
||||
|
||||
curl -b "SESSDATA=xxx" -d "viewed=true&csrf=xxx" "http://api.bilibili.com/x/v2/history/toview/del"
|
||||
|
||||
```json
|
||||
{
|
||||
"code": 0,
|
||||
"message": "0",
|
||||
"ttl": 1
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
## 清空稍后再看视频列表
|
||||
|
||||
> http://api.bilibili.com/x/v2/history/toview/clear
|
||||
|
||||
*方式:POST*
|
||||
|
||||
需要登录(SESSDATA)
|
||||
|
||||
**参数( application/x-www-form-urlencoded ):**
|
||||
|
||||
| 参数名 | 类型 | 内容 | 必要性 | 备注 |
|
||||
| ------ | ---- | ------------------- | ------ | ---- |
|
||||
| csrf | data | cookies中的bili_jct | 必要 | |
|
||||
|
||||
**json回复:**
|
||||
|
||||
根对象:
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| ------- | ---- | -------- | ----------------------------------------------------- |
|
||||
| code | num | 返回值 | 0:成功<br />-101:账号未登录<br />-111:csrf校验失败 |
|
||||
| message | str | 错误信息 | 默认为0 |
|
||||
| ttl | num | 1 | 作用尚不明确 |
|
||||
|
||||
**示例:**
|
||||
|
||||
清空稍后再看视频列表
|
||||
|
||||
curl -b "SESSDATA=xxx" -d "csrf=xxx" "http://api.bilibili.com/x/v2/history/toview/clear"
|
||||
|
||||
```json
|
||||
{
|
||||
"code": 0,
|
||||
"message": "0",
|
||||
"ttl": 1
|
||||
}
|
||||
```
|
||||
|
164
login/member_center.md
Normal file
164
login/member_center.md
Normal file
@ -0,0 +1,164 @@
|
||||
# 个人中心
|
||||
|
||||
## 获取我的信息
|
||||
|
||||
> http://api.bilibili.com/x/member/web/account
|
||||
|
||||
*方式:GET*
|
||||
|
||||
需要登录(SESSDATA)
|
||||
|
||||
**json回复:**
|
||||
|
||||
根对象:
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| ------- | ---- | -------- | ----------------------------- |
|
||||
| code | num | 返回值 | 0:成功<br />-101:账号未登录 |
|
||||
| message | str | 错误信息 | 默认为0 |
|
||||
| ttl | num | 1 | 作用尚不明确 |
|
||||
| data | obj | 信息本体 | |
|
||||
|
||||
`data`对象:
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| --------- | ---- | -------------- | --------------------------------------- |
|
||||
| mid | num | 我的UID | |
|
||||
| uname | str | 我的昵称 | |
|
||||
| userid | str | 我的用户名 | |
|
||||
| sign | str | 我的签名 | |
|
||||
| birthday | str | 我的生日 | YYYY-MM-DD |
|
||||
| sex | str | 我的性别 | 男 女 保密 |
|
||||
| nick_free | bool | 是否未设置昵称 | false:设置过昵称<br />true:未设置昵称 |
|
||||
| rank | str | 我的会员等级 | |
|
||||
|
||||
**示例:**
|
||||
|
||||
http://api.bilibili.com/x/member/web/account
|
||||
|
||||
```json
|
||||
{
|
||||
"code": 0,
|
||||
"message": "0",
|
||||
"ttl": 1,
|
||||
"data": {
|
||||
"mid": 293793435,
|
||||
"uname": "社会易姐QwQ",
|
||||
"userid": "bili_84675323391",
|
||||
"sign": "高中技术宅一枚,爱好MC&电子&音乐&数码&编程,资深猿厨",
|
||||
"birthday": "2002-03-05",
|
||||
"sex": "男",
|
||||
"nick_free": false,
|
||||
"rank": "正式会员"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
## 查询每日奖励状态
|
||||
|
||||
> http://api.bilibili.com/x/member/web/exp/reward
|
||||
|
||||
*方式:GET*
|
||||
|
||||
需要登录(SESSDATA)
|
||||
|
||||
**json回复:**
|
||||
|
||||
根对象:
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| ------- | ---- | -------- | ----------------------------- |
|
||||
| code | num | 返回值 | 0:成功<br />-101:账号未登录 |
|
||||
| message | str | 错误信息 | 默认为0 |
|
||||
| ttl | num | 1 | 作用尚不明确 |
|
||||
| data | obj | 信息本体 | |
|
||||
|
||||
`data`对象:
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| ------------- | ---- | -------------------- | ------------------------------------------------------------ |
|
||||
| login | bool | 每日登录 | false:未完成<br />true:已完成<br />完成奖励5经验 |
|
||||
| watch | bool | 每日观看 | false:未完成<br />true:已完成<br />完成奖励5经验 |
|
||||
| coins | num | 每日投币所奖励的经验 | 上限为50 |
|
||||
| share | bool | 每日分享 | false:未完成<br />true:已完成<br />完成奖励5经验 |
|
||||
| email | bool | 绑定邮箱 | false:未完成<br />true:已完成 |
|
||||
| tel | bool | 绑定手机号 | false:未完成<br />true:已完成<br />首次完成完成奖励100经验 |
|
||||
| safe_question | bool | 设置密保问题 | false:未完成<br />true:已完成 |
|
||||
| identify_card | bool | 实名认证 | false:未完成<br />true:已完成<br />首次完成奖励50经验 |
|
||||
|
||||
**示例:**
|
||||
|
||||
http://api.bilibili.com/x/member/web/exp/reward
|
||||
|
||||
```json
|
||||
{
|
||||
"code": 0,
|
||||
"message": "0",
|
||||
"ttl": 1,
|
||||
"data": {
|
||||
"login": true,
|
||||
"watch": true,
|
||||
"coins": 30,
|
||||
"share": true,
|
||||
"email": true,
|
||||
"tel": true,
|
||||
"safe_question": true,
|
||||
"identify_card": true
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
## 查询我的大会员状态
|
||||
|
||||
> http://api.bilibili.com/x/vip/web/user/info
|
||||
|
||||
*方式:GET*
|
||||
|
||||
需要登录(SESSDATA)
|
||||
|
||||
**json回复:**
|
||||
|
||||
根对象:
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| ------- | ---- | -------- | ----------------------------- |
|
||||
| code | num | 返回值 | 0:成功<br />-101:账号未登录 |
|
||||
| message | str | 错误信息 | 默认为0 |
|
||||
| ttl | num | 1 | 作用尚不明确 |
|
||||
| data | obj | 信息本体 | |
|
||||
|
||||
`data`对象:
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| ------------ | ---- | ---------------- | ------------------------------------------------------------ |
|
||||
| mid | num | 我的UID | |
|
||||
| vip_type | num | 大会员类型 | 0:无<br />1:月度<br />2:年度 |
|
||||
| vip_status | num | 大会员状态 | 1:正常<br />2:由于IP地址更换过于频繁,服务被冻结<br />3:你的大会员账号风险过高,大会员功能已被锁定 |
|
||||
| vip_due_date | num | 大会员到期时间 | 时间戳 毫秒 |
|
||||
| vip_pay_type | num | 是否已购买大会员 | 0:未购买<br />1:已购买 |
|
||||
| theme_type | num | 0 | 作用尚不明确 |
|
||||
|
||||
**示例:**
|
||||
|
||||
http://api.bilibili.com/x/vip/web/user/info
|
||||
|
||||
```json
|
||||
{
|
||||
"code": 0,
|
||||
"message": "0",
|
||||
"ttl": 1,
|
||||
"data": {
|
||||
"mid": 293793435,
|
||||
"vip_type": 2,
|
||||
"vip_status": 1,
|
||||
"vip_due_date": 1612454400000,
|
||||
"vip_pay_type": 1,
|
||||
"theme_type": 0
|
||||
}
|
||||
}
|
||||
```
|
||||
|
@ -2078,7 +2078,7 @@ curl -b "sessdata=xxx" -d "csrf=xxx¬ice=%E9%B8%BD%E5%AD%90" "http://api.bilib
|
||||
|
||||
需要验证`DedeUserID`及`DedeUserID__ckMd5`存在且不为0
|
||||
|
||||
需要验证`referer`为 `http://www.bilibili.com`或`https://www.bilibili.com`域名下
|
||||
需要验证`referer`为 `http://.bilibili.com`或`https://.bilibili.com`域名下
|
||||
|
||||
**参数( application/x-www-form-urlencoded ):**
|
||||
|
||||
@ -2105,7 +2105,7 @@ curl -b "sessdata=xxx" -d "csrf=xxx¬ice=%E9%B8%BD%E5%AD%90" "http://api.bilib
|
||||
|
||||
设置`关注的TAG`为隐藏
|
||||
|
||||
curl --referer "http://www.bilibili.com" -b "SESSDATA=xxx;DedeUserID=1;DedeUserID__ckMd5=1;" -d "csrf=xxx&tags=0" "http://space.bilibili.com/ajax/settings/setPrivacy"
|
||||
curl --referer "http://.bilibili.com" -b "SESSDATA=xxx;DedeUserID=1;DedeUserID__ckMd5=1;" -d "csrf=xxx&tags=0" "http://space.bilibili.com/ajax/settings/setPrivacy"
|
||||
|
||||
```json
|
||||
{
|
||||
@ -2125,7 +2125,7 @@ curl --referer "http://www.bilibili.com" -b "SESSDATA=xxx;DedeUserID=1;DedeUserI
|
||||
|
||||
需要验证`DedeUserID`及`DedeUserID__ckMd5`存在且不为0
|
||||
|
||||
需要验证`referer`为 `http://www.bilibili.com`或`https://www.bilibili.com`域名下
|
||||
需要验证`referer`为 `http://.bilibili.com`或`https://.bilibili.com`域名下
|
||||
|
||||
**参数( application/x-www-form-urlencoded ):**
|
||||
|
||||
@ -2175,7 +2175,7 @@ curl --referer "http://www.bilibili.com" -b "SESSDATA=xxx;DedeUserID=1;DedeUserI
|
||||
>订阅标签
|
||||
>我的频道
|
||||
|
||||
curl --referer "http://www.bilibili.com" -b "SESSDATA=xxx;DedeUserID=1;DedeUserID__ckMd5=1;" -d "csrf=xxx&index_order=1%2C8%2C3%2C2%2C9%2C5%2C4%2C7%2C22%2C23%2C21%2C24%2C25%2C6" "http://space.bilibili.com/ajax/settings/setIndexOrder"
|
||||
curl --referer "http://.bilibili.com" -b "SESSDATA=xxx;DedeUserID=1;DedeUserID__ckMd5=1;" -d "csrf=xxx&index_order=1%2C8%2C3%2C2%2C9%2C5%2C4%2C7%2C22%2C23%2C21%2C24%2C25%2C6" "http://space.bilibili.com/ajax/settings/setIndexOrder"
|
||||
|
||||
```json
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user