简要描述
请求URL
https://api.bilibili.com/x/space/acc/info?mid=xx&jsonp=jsonp
请求方式
请求头
参数名 | 必选 | 类型 |
---|
origin | 是 | string |
referer | 是 | string |
user-agent | 是 | string |
Host | 是 | string |
请求示例
headers = {
'origin': "https://space.bilibili.com",
'referer': "https://space.bilibili.com/",
'user-agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36 Edg/88.0.705.63",
'Host': "api.bilibili.com"
}
返回示例
{
"code": 0,
"message": "0",
"ttl": 1,
"data": {
"mid": 375375,
"name": "伊丽莎白鼠",
"sex": "保密",
"face": "http://i0.hdslb.com/bfs/face/6c36ec15f6d7ddd9bdb558511521bd0256779e1c.jpg",
"sign": "一个热爱鬼畜的普通人。微博:@伊丽莎白鼠 weibo.com/LittleWhiteMouse ",
"rank": 10000,
"level": 6,
"jointime": 0,
"moral": 0,
"silence": 0,
"birthday": "",
"coins": 0,
"fans_badge": true,
"official": {
"role": 1,
"title": "bilibili 2020百大UP主、知名UP主",
"desc": "2015夏夜鬼畜大赏第一名,代表作《如何让孩子爱上学习》《挖掘机技术哪家强》",
"type": 0
},
"vip": {
"type": 1,
"status": 0,
"due_date": 1616169600000,
"vip_pay_type": 0,
"theme_type": 0,
"label": {
"path": "",
"text": "",
"label_theme": "",
"text_color": "",
"bg_style": 0,
"bg_color": "",
"border_color": ""
},
"avatar_subscript": 0,
"nickname_color": "",
"role": 0,
"avatar_subscript_url": ""
},
"pendant": {
"pid": 0,
"name": "",
"image": "",
"expire": 0,
"image_enhance": "",
"image_enhance_frame": ""
},
"nameplate": {
"nid": 27,
"name": "2015鬼畜大赏-鬼畜王",
"image": "http://i1.hdslb.com/bfs/face/5ed7c3fc612a87ea013089a030042dc5e8e0e8eb.png",
"image_small": "http://i2.hdslb.com/bfs/face/4d472c764c7c22fe74e8d2cc2a9cd845cf15377a.png",
"level": "稀有勋章",
"condition": "2015鬼畜大赏符合要求并成功参与活动的UP主"
},
"user_honour_info": {
"mid": 0,
"colour": null,
"tags": null
},
"is_followed": true,
"top_photo": "http://i2.hdslb.com/bfs/space/265ecddc52d74e624dc38cf0cff13317085aedf7.png",
"theme": {},
"sys_notice": {},
"live_room": {
"roomStatus": 1,
"liveStatus": 0,
"url": "https://live.bilibili.com/5430",
"title": "塔科夫大善人",
"cover": "http://i0.hdslb.com/bfs/live/new_room_cover/775b89908503a02c5482d22fed68018cc5f587e7.jpg",
"online": 166447,
"roomid": 5430,
"roundStatus": 0,
"broadcast_type": 0
}
}
}
返回参数说明
参数名 | 类型 | 说明 |
---|
mid | string | UP的Mid |
name | string | 用户名 |
liveStatus | string | 开播状态;0未直播、1正在直播 |
title | string | 直播标题 |
url | string | 直播链接 |