near_me
开始使用
keyboard_arrow_down

games
文档-游戏
keyboard_arrow_down

local_mall
资源
keyboard_arrow_down
class
关于
menu UAPI 文档

UAPI

此API已被调用 595 次

接口:https://uapis.cn/api/binfo?uid=用户UID

GET b站用户信息
  • 请求参数
  • 返回结果
  • 返回数据结构
  • GET b站用户信息

    GET /api/binfo

    请求参数

    名称 位置 类型 必选 说明
    uid query string b站用户信息

    成功-返回示例

    {
        "code": 200,
        "uid": 414947108,
        "name": "XiaoXianHW",
        "img": "https://i2.hdslb.com/bfs/face/f55de3c271d865c6523fd1fae6e60a09c2f239a1.jpg",
        "level": 6,
        "sex": "保密",
        "vip": "年度大会员",
        "birthday": "12-10",
        "following": 349,
        "follower": 7350
    }

    400-参数不完整

    {
        "code": 400,
        "msg": "Please provide UID parameter"
    }

    500-没有此用户或UID不正确

    {
        "code": 500,
        "msg": "There is no such user or the UID is incorrect"
    }

    返回结果

    状态码 状态码含义 说明 数据模型
    200 OK 成功 Inline
    400 The request data is incorrect or empty 请求内容不能为空或内容错误 Inline
    500 There is no such user or the UID is incorrect 未查询到 Inline

    返回数据结构

    状态码 200

    名称 类型 必选 约束 中文名 说明
    » code number true none 返回码 none
    » uid string true none 查询的uid none
    » name number true none 用户名 none
    » img number true none 用户头像 none
    » level number true none B站等级 none
    » sex number true none 性别 none
    » vip number true none 会员状态 none
    » birthday number true none 生日 none
    » following number true none 关注数量 none
    » follower number true none 粉丝数量 none

    状态码 400

    名称 类型 必选 约束 中文名 说明
    » code number true none 返回码 none
    » msg string true none 错误信息 none

    状态码 404

    名称 类型 必选 约束 中文名 说明
    » code number true none 返回码 none
    » msg string true none 错误信息 none