import{_ as o,c as e,a as l,b as a,d as n,e as t,w as D,r as c,o as r}from"./app-Dgsdh8A6.js";const i={};function u(y,s){const p=c("RouteLink");return r(),e("div",null,[s[9]||(s[9]=l('

大会员信息

卡券状态查询

https://api.bilibili.com/x/vip/privilege/my

请求方式:GET

认证方式:Cookie (SESSDATA) / access_key

json回复:

根对象:

字段类型内容备注
codenum返回值-101:账号未登录
-400:请求错误
0:成功
messagestr错误信息
ttlnum1
dataobj信息本体

data对象:

字段类型内容备注
listarray卡券信息列表
is_short_vipbool(?)
is_freight_openbool(?)
levelnum当前等级
cur_expnum当前拥有经验值
next_expnum升级所需经验值满级时为 -1
is_vipbool是否为大会员
is_senior_membernum是否为硬核会员
format060102num(?)格式为YYMMDD,意义不明
is_overdue_vipbool大会员是否过期
vip_statusnum会员状态0:无
1:有
vip_typenum会员类型0:无
1:月大会员
2:年度及以上大会员
keeptime_endnum大会员当前阶段过期时间秒级时间戳
vip_due_datenum大会员过期时间秒级时间戳
vip_is_annualbool是否为年度及以上大会员
vip_is_monthbool是否为月大会员
vip_is_new_userbool是否为大会员新用户
bind_phonestr绑定的手机号星号隐藏部分信息
taobao_account有效时:obj
无效时:null
绑定的淘宝账号

list数组:

索引类型内容type备注
0objB币兑换状态1
1obj会员购优惠券兑换状态2
2obj漫画福利券兑换状态3
3obj会员购包邮券兑换状态4
4obj漫画商城优惠券兑换状态5
5obj装扮体验卡兑换状态6
6obj课堂优惠券兑换状态7
7obj王者荣耀)游戏礼盒兑换状态8每日可领取,目前 state 固定为 1
8obj每日 10 经验领取状态9每日可领取,未完成时 state 为 2

list数组中的对象:

字段类型内容备注
typenum卡券类型详见 list 数组表格中的 type
statenum兑换状态0:未兑换
1:已兑换
2:未完成(若需要完成)
expire_timenum本轮卡券过期时间戳当月月底/当日24点
vip_typenum当前用户的大会员状态2:年度大会员
next_receive_daysnum距下一轮兑换剩余天数无权限时,每月任务固定为 0,每日固定为 1
period_end_unixnum下一轮兑换开始时间戳秒级时间戳

注意:

',15)),a("p",null,[s[1]||(s[1]=n("卡券除每日可领取(")),s[2]||(s[2]=a("code",null,"type",-1)),s[3]||(s[3]=n(" 为 ")),s[4]||(s[4]=a("code",null,"8",-1)),s[5]||(s[5]=n(" 和 ")),s[6]||(s[6]=a("code",null,"9",-1)),s[7]||(s[7]=n(")的,其他可通过 ")),t(p,{to:"/docs/vip/action.html#%E5%85%91%E6%8D%A2%E5%8D%A1%E5%88%B8"},{default:D(()=>s[0]||(s[0]=[n("https://api.bilibili.com/x/vip/privilege/receive")])),_:1,__:[0]}),s[8]||(s[8]=n(" 领取"))]),s[10]||(s[10]=l(`

每日 10 经验领取(type9)需要完成视频观看,未完成的 state 为 2。

示例:

curl 'https://api.bilibili.com/x/vip/privilege/my' \\
  -b "SESSDATA=xxx"
查看响应示例:
{
  "code": 0,
  "message": "0",
  "ttl": 1,
  "data": {
    "list": [
      {
        "type": 1,
        "state": 0,
        "expire_time": 0,
        "vip_type": 2,
        "next_receive_days": 29,
        "period_end_unix": 1747584000,
        "is_count": true,
        "name": "",
        "coupon_code": "",
        "app_describe": "",
        "recive_state": 1,
        "salary_type": 0,
        "exp_params": {
          "exp_group_tag": "59534,45476",
          "hit_value": 2
        },
        "extra_params": null
      },
      {
        "type": 2,
        "state": 0,
        "expire_time": 0,
        "vip_type": 2,
        "next_receive_days": 29,
        "period_end_unix": 1747584000,
        "is_count": true,
        "name": "",
        "coupon_code": "",
        "app_describe": "",
        "recive_state": 1,
        "salary_type": 0,
        "exp_params": {
          "exp_group_tag": "",
          "hit_value": 0
        },
        "extra_params": null
      },
      {
        "type": 3,
        "state": 0,
        "expire_time": 0,
        "vip_type": 2,
        "next_receive_days": 29,
        "period_end_unix": 1747584000,
        "is_count": true,
        "name": "",
        "coupon_code": "",
        "app_describe": "",
        "recive_state": 1,
        "salary_type": 0,
        "exp_params": {
          "exp_group_tag": "",
          "hit_value": 0
        },
        "extra_params": null
      },
      {
        "type": 4,
        "state": 0,
        "expire_time": 0,
        "vip_type": 2,
        "next_receive_days": 29,
        "period_end_unix": 1747584000,
        "is_count": true,
        "name": "",
        "coupon_code": "",
        "app_describe": "",
        "recive_state": 1,
        "salary_type": 0,
        "exp_params": {
          "exp_group_tag": "",
          "hit_value": 0
        },
        "extra_params": null
      },
      {
        "type": 5,
        "state": 0,
        "expire_time": 0,
        "vip_type": 2,
        "next_receive_days": 29,
        "period_end_unix": 1747584000,
        "is_count": true,
        "name": "",
        "coupon_code": "",
        "app_describe": "",
        "recive_state": 1,
        "salary_type": 0,
        "exp_params": {
          "exp_group_tag": "",
          "hit_value": 0
        },
        "extra_params": null
      },
      {
        "type": 6,
        "state": 0,
        "expire_time": 0,
        "vip_type": 2,
        "next_receive_days": 29,
        "period_end_unix": 1747584000,
        "is_count": true,
        "name": "",
        "coupon_code": "",
        "app_describe": "",
        "recive_state": 1,
        "salary_type": 0,
        "exp_params": {
          "exp_group_tag": "",
          "hit_value": 0
        },
        "extra_params": null
      },
      {
        "type": 7,
        "state": 0,
        "expire_time": 0,
        "vip_type": 2,
        "next_receive_days": 29,
        "period_end_unix": 1747584000,
        "is_count": true,
        "name": "",
        "coupon_code": "",
        "app_describe": "",
        "recive_state": 1,
        "salary_type": 0,
        "exp_params": {
          "exp_group_tag": "",
          "hit_value": 0
        },
        "extra_params": null
      },
      {
        "type": 14,
        "state": 0,
        "expire_time": 0,
        "vip_type": 2,
        "next_receive_days": 29,
        "period_end_unix": 1747584000,
        "is_count": true,
        "name": "",
        "coupon_code": "",
        "app_describe": "",
        "recive_state": 1,
        "salary_type": 0,
        "exp_params": {
          "exp_group_tag": "59534,45476",
          "hit_value": 2
        },
        "extra_params": null
      },
      {
        "type": 15,
        "state": 0,
        "expire_time": 0,
        "vip_type": 2,
        "next_receive_days": 29,
        "period_end_unix": 1747584000,
        "is_count": true,
        "name": "",
        "coupon_code": "",
        "app_describe": "",
        "recive_state": 1,
        "salary_type": 0,
        "exp_params": {
          "exp_group_tag": "",
          "hit_value": 0
        },
        "extra_params": null
      },
      {
        "type": 16,
        "state": 0,
        "expire_time": 0,
        "vip_type": 2,
        "next_receive_days": 29,
        "period_end_unix": 1747584000,
        "is_count": true,
        "name": "",
        "coupon_code": "",
        "app_describe": "",
        "recive_state": 1,
        "salary_type": 0,
        "exp_params": {
          "exp_group_tag": "",
          "hit_value": 0
        },
        "extra_params": null
      },
      {
        "type": 17,
        "state": 0,
        "expire_time": 0,
        "vip_type": 2,
        "next_receive_days": 29,
        "period_end_unix": 1747584000,
        "is_count": true,
        "name": "",
        "coupon_code": "",
        "app_describe": "",
        "recive_state": 1,
        "salary_type": 0,
        "exp_params": {
          "exp_group_tag": "",
          "hit_value": 0
        },
        "extra_params": null
      },
      {
        "type": 18,
        "state": 0,
        "expire_time": 0,
        "vip_type": 2,
        "next_receive_days": 0,
        "period_end_unix": 0,
        "is_count": true,
        "name": "",
        "coupon_code": "",
        "app_describe": "",
        "recive_state": 1,
        "salary_type": 1,
        "exp_params": {
          "exp_group_tag": "",
          "hit_value": 0
        },
        "extra_params": null
      },
      {
        "type": 19,
        "state": 0,
        "expire_time": 0,
        "vip_type": 2,
        "next_receive_days": 0,
        "period_end_unix": 0,
        "is_count": false,
        "name": "",
        "coupon_code": "",
        "app_describe": "",
        "recive_state": 1,
        "salary_type": 1,
        "exp_params": {
          "exp_group_tag": "",
          "hit_value": 0
        },
        "extra_params": {
          "is_allowe_receive": "true",
          "is_show": "true",
          "last_salary_time": "0",
          "now": "1745138836"
        }
      },
      {
        "type": 20,
        "state": 0,
        "expire_time": 0,
        "vip_type": 2,
        "next_receive_days": 0,
        "period_end_unix": 0,
        "is_count": false,
        "name": "",
        "coupon_code": "",
        "app_describe": "",
        "recive_state": 1,
        "salary_type": 1,
        "exp_params": {
          "exp_group_tag": "",
          "hit_value": 0
        },
        "extra_params": {
          "is_allowe_receive": "false",
          "is_show": "false",
          "last_salary_time": "0",
          "now": "1745138836"
        }
      },
      {
        "type": 8,
        "state": 1,
        "expire_time": 1745164800,
        "vip_type": 2,
        "next_receive_days": 1,
        "period_end_unix": 1745164800,
        "is_count": true,
        "name": "",
        "coupon_code": "",
        "app_describe": "",
        "recive_state": 2,
        "salary_type": 1,
        "exp_params": {
          "exp_group_tag": "",
          "hit_value": 0
        },
        "extra_params": null
      },
      {
        "type": 9,
        "state": 0,
        "expire_time": 1745164800,
        "vip_type": 2,
        "next_receive_days": 1,
        "period_end_unix": 1745164800,
        "is_count": false,
        "name": "",
        "coupon_code": "",
        "app_describe": "",
        "recive_state": 1,
        "salary_type": 0,
        "exp_params": {
          "exp_group_tag": "",
          "hit_value": 0
        },
        "extra_params": null
      }
    ],
    "is_short_vip": false,
    "is_freight_open": true,
    "level": 6,
    "cur_exp": 34424,
    "next_exp": -1,
    "is_vip": true,
    "is_senior_member": 1,
    "format060102": 250418,
    "is_overdue_vip": false,
    "vip_status": 1,
    "vip_type": 2,
    "keeptime_end": 1747584000,
    "vip_due_date": 1832083200,
    "vip_is_annual": true,
    "vip_is_month": false,
    "vip_is_new_user": false,
    "bind_phone": "138****0000",
    "taobao_account": null
  }
}
`,4))])}const C=o(i,[["render",u]]),v=JSON.parse('{"path":"/docs/vip/info.html","title":"大会员信息","lang":"zh-CN","frontmatter":{},"git":{"updatedTime":1745337978000,"contributors":[{"name":"SocialSisterYi","username":"SocialSisterYi","email":"1440239038@qq.com","commits":2,"url":"https://github.com/SocialSisterYi"},{"name":"7rikka","username":"7rikka","email":"takanashirikkax@gmail.com","commits":1,"url":"https://github.com/7rikka"},{"name":"LaMerChiang","username":"LaMerChiang","email":"catlair@qq.com","commits":2,"url":"https://github.com/LaMerChiang"},{"name":"wuziqian211","username":"wuziqian211","email":"65224318+wuziqian211@users.noreply.github.com","commits":2,"url":"https://github.com/wuziqian211"}],"changelog":[{"hash":"8d72b5aa0da72c73a90eeb71f89a43f91b9c911b","time":1745337978000,"email":"65224318+wuziqian211@users.noreply.github.com","author":"晨叶梦春","message":"更新 info.md"},{"hash":"0c9c2da12603f5df31615f65dbd8e59cfe3ae173","time":1745139151000,"email":"65224318+wuziqian211@users.noreply.github.com","author":"晨叶梦春","message":"fix #1161"},{"hash":"d7fbc165cec820af72ccc650e0c48e6a31eb99ad","time":1701060535000,"email":"catlair@qq.com","author":"LaMerChiang","message":"Update info.md (#875)"},{"hash":"ab7030ce107ecf307a98c9d7af29881d12b9dcab","time":1700961606000,"email":"catlair@qq.com","author":"LaMerChiang","message":"更新x/vip/privilege/my (#873)"},{"hash":"57c1817fbafe5ef102a0a84080f2cf040ce1c446","time":1687240232000,"email":"takanashirikkax@gmail.com","author":"7rikka","message":"添加大会员新的兑换项 (#710)"},{"hash":"f6760f4be38d5b592d396b211e48c666286524de","time":1677124138000,"email":"1440239038@qq.com","author":"SocialSisterYi","message":"🔨remove header index"},{"hash":"7d89ece2ac46425810647c4ac92acf5f3721cb68","time":1676998806000,"email":"1440239038@qq.com","author":"SocialSisterYi","message":"🚀调整项目结构"}]},"filePathRelative":"docs/vip/info.md"}');export{C as comp,v as data};