API简介:获取up主的昵称、性别、大会员等信息

接口问题联系相关负责人沟通修复:查看该接口开发者

接口地址:http://api.bilibili.com/x/web-interface/card

返回格式:json

请求方式:get

请求参数:http://api.bilibili.com/x/web-interface/card?mid=1677829377

非官方接口,请联系开发者获取技术支持

Bug修复:非官方接口,Bug反馈请联系开发者

会员线路:因调用量剧增,定制独享优质线路请 参考定制方案

专属线路 成本透明 0服务费

接口信息

接口名称 是否必填 接口类型 接口说明
mid string 哔哩哔哩的uid

返回示例

{
    "code": 0,
    "message": "0",
    "ttl": 1,
    "data": {
        "card": {
            "mid": "1677829377",
            "name": "\u65b0\u5996\u5973\u4f20\u8bf4",
            "approve": false,
            "sex": "\u4fdd\u5bc6",
            "rank": "10000",
            "face": "https:\/\/i0.hdslb.com\/bfs\/face\/a0aef4a87cb21f2a45cb252732b1a5246e8a8e8c.jpg",
            "face_nft": 0,
            "face_nft_type": 0,
            "DisplayRank": "0",
            "regtime": 0,
            "spacesta": 0,
            "birthday": "",
            "place": "",
            "description": "",
            "article": 0,
            "attentions": [],
            "fans": 5,
            "friend": 60,
            "attention": 60,
            "sign": "IT",
            "level_info": {
                "current_level": 4,
                "current_min": 0,
                "current_exp": 0,
                "next_exp": 0
            },
            "pendant": {
                "pid": 0,
                "name": "",
                "image": "",
                "expire": 0,
                "image_enhance": "",
                "image_enhance_frame": ""
            },
            "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"
                },
                "avatar_subscript": 0,
                "nickname_color": "",
                "role": 0,
                "avatar_subscript_url": "",
                "tv_vip_status": 0,
                "tv_vip_pay_type": 0,
                "vipType": 0,
                "vipStatus": 0
            },
            "is_senior_member": 0
        },
        "following": false,
        "archive_count": 3,
        "article_count": 0,
        "follower": 5,
        "like_num": 15
    }
}

返回参数

接口名称 接口类型 接口说明
data/like_num integer 获赞数
data/archive_count integer 用户视频数
data/card/attention integer 用户关注数
data/card/vip/type string VIP等级
data/follower integer 用户粉丝数
data/card/name string 用户昵称
data/card/sex string 性别
data/card/face string 头像
data/card/level_info/current_level integer 等级
data/card/mid string 用户uid
// 暂无层级展示,仅供参考 
{ "data/like_num": "获赞数", "data/archive_count": "用户视频数", "data/card/attention": "用户关注数", "data/card/vip/type": "VIP等级", "data/follower": "用户粉丝数", "data/card/name": "用户昵称", "data/card/sex": "性别", "data/card/face": "头像", "data/card/level_info/current_level": "等级", "data/card/mid": "用户uid" }

小白教程

本教程帮助用户快速对接哔哩哔哩up信息接口,仍有疑问请联系开发者获取技术协助

实时调试

部分视频、图片或其他接口报错、空值并不代表无法对接,请在本地尝试请求参数接口

在线调试

温馨提示:请修改请求参数,未修改可能返回报错

参数名称 参数值(修改后测试)
{
  "code": 0,
  "message": "0",
  "ttl": 1,
  "data": {
    "card": {
      "mid": "1677829377",
      "name": "新妖女传说",
      "approve": false,
      "sex": "保密",
      "rank": "10000",
      "face": "https://i0.hdslb.com/bfs/face/a0aef4a87cb21f2a45cb252732b1a5246e8a8e8c.jpg",
      "face_nft": 0,
      "face_nft_type": 0,
      "DisplayRank": "0",
      "regtime": 0,
      "spacesta": 0,
      "birthday": "",
      "place": "",
      "description": "",
      "article": 0,
      "attentions": [],
      "fans": 5,
      "friend": 60,
      "attention": 60,
      "sign": "IT",
      "level_info": {
        "current_level": 4,
        "current_min": 0,
        "current_exp": 0,
        "next_exp": 0
      },
      "pendant": {
        "pid": 0,
        "name": "",
        "image": "",
        "expire": 0,
        "image_enhance": "",
        "image_enhance_frame": ""
      },
      "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"
        },
        "avatar_subscript": 0,
        "nickname_color": "",
        "role": 0,
        "avatar_subscript_url": "",
        "tv_vip_status": 0,
        "tv_vip_pay_type": 0,
        "vipType": 0,
        "vipStatus": 0
      },
      "is_senior_member": 0
    },
    "following": false,
    "archive_count": 3,
    "article_count": 0,
    "follower": 5,
    "like_num": 15
  }
}