B站用户查询

在线
查询用户信息
GET 返回格式 JSON
请求参数
以下是该接口支持的所有请求参数
参数名类型必填说明
vmid string 必填 你的b站ID
type string 必填 card
响应示例
JSON 成功响应
{ "code": 0, "message": "OK", "ttl": 1, "data": { "card": { "mid": "3546791779765213", "name": "赚钱小游戏实测", "approve": false, "sex": "保密", "rank": "10000", "face": "https://i1.hdslb.com/bfs/face/317c0b6d582c62d49d310656b0f2a7578bfc1768.jpg", "face_nft": 0, "face_nft_type": 0, "DisplayRank": "0", "regtime": 0, "spacesta": 0, "birthday": "", "place": "", "description": "", "article": 0, "attentions": [], "fans": 342, "friend": 71, "attention": 71, "sign": "企鹅裙1_9_9_4_6_4_3_4_4", "level_info": { "current_level": 3, "current_min": 0, "current_exp": 0, "next_exp": 0 }, "pendant": { "pid": 0, "name": "", "image": "", "expire": 0, "image_enhance": "", "image_enhance_frame": "", "n_pid": 0 }, "nameplate": { "nid": 0, "name": "", "image": "", "image_small": "", "level": "", "condition": "" }, "Official": { "role": 0, "title": "", "desc": "", "type": -1 }, "official_verify": { "type": -1, "desc": "" }, "vip": { "type": 0, "status": 0, "due_date": 0, "vip_pay_type": 0, "theme_type": 0, "label": { "path": "", "text": "", "label_theme": "", "text_color": "", "bg_style": 0, "bg_color": "", "border_color": "", "use_img_label": true, "img_label_uri_hans": "", "img_label_uri_hant": "", "img_label_uri_hans_static": "https://i0.hdslb.com/bfs/vip/d7b702ef65a976b20ed854cbd04cb9e27341bb79.png", "img_label_uri_hant_static": "https://i0.hdslb.com/bfs/activity-plat/static/20220614/e369244d0b14644f5e1a06431e22a4d5/KJunwh19T5.png", "label_id": 0, "label_goto": null, "img_label_uri_i18n": "", "img_label_uri_i18n_static": "", "label_type": 0 }, "avatar_subscript": 0, "nickname_color": "", "role": 0, "avatar_subscript_url": "", "tv_vip_status": 0, "tv_vip_pay_type": 0, "tv_due_date": 0, "avatar_icon": { "icon_resource": {} }, "ott_info": { "vip_type": 0, "pay_type": 0, "pay_channel_id": "", "status": 0, "overdue_time": 0 }, "super_vip": { "is_super_vip": false }, "vipType": 0, "vipStatus": 0 }, "is_senior_member": 0, "name_render": null }, "following": false, "archive_count": 27, "article_count": 0, "follower": 342, "like_num": 1226 } }
JSON 失败响应
{ "code": -1, "message": "缺少或无效的 vmid 参数(必须为纯数字)" }
错误码说明
常见错误码及处理建议
错误码说明处理建议
200请求成功正常处理返回数据
400参数错误检查必填参数是否完整
401未授权检查API密钥是否正确
404接口不存在检查请求路径是否正确
500服务器错误稍后重试或联系管理员
点击加载