We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Web 端(含 h5)
REST
原文档地址 https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/docs/garb/lottery.md
https://api.bilibili.com/x/garb/v2/mall/home/search
请求方式: GET
URL参数:
JSON响应部分未校对 自动生成的json schema:
{ "type": "object", "properties": { "code": { "type": "integer" }, "message": { "type": "string" }, "ttl": { "type": "integer" }, "data": { "type": "object", "properties": { "list": { "type": "array", "items": { "type": "object", "properties": { "item_id": { "type": "integer" }, "name": { "type": "string" }, "group_id": { "type": "integer" }, "group_name": { "type": "string" }, "part_id": { "type": "integer" }, "state": { "type": "string" }, "properties": { "type": "object", "properties": { "book_amount": { "type": "string" }, "dlc_act_id": { "type": "string" }, "dlc_act_status": { "type": "string" }, "dlc_is_free": { "type": "string" }, "dlc_lottery_id": { "type": "string" }, "dlc_lottery_sale_quantity": { "type": "string" }, "dlc_lottery_type": { "type": "string" }, "dlc_sale_end_time": { "type": "string" }, "dlc_sale_mode": { "type": "string" }, "dlc_sale_start_time": { "type": "string" }, "dlc_surplus_stock": { "type": "string" }, "image_cover": { "type": "string" }, "sale_bp_forever_raw": { "type": "string" }, "type": { "type": "string" }, "desc": { "type": "string" }, "fan_desc": { "type": "string" }, "fan_id": { "type": "string" }, "fan_item_ids": { "type": "string" }, "fan_mid": { "type": "string" }, "fan_no_color": { "type": "string" }, "fan_recommend_desc": { "type": "string" }, "fan_recommend_jump_type": { "type": "string" }, "fan_recommend_jump_value": { "type": "string" }, "fan_share_image": { "type": "string" }, "gray_rule": { "type": "string" }, "gray_rule_type": { "type": "string" }, "image_cover_color": { "type": "string" }, "is_hide": { "type": "string" }, "item_id_card": { "type": "string" }, "item_id_emoji": { "type": "string" }, "item_id_thumbup": { "type": "string" }, "open_platform_vip_discount": { "type": "string" }, "owner_uid": { "type": "string" }, "rank_investor_show": { "type": "string" }, "realname_auth": { "type": "string" }, "sale_bp_pm_raw": { "type": "string" }, "sale_buy_num_limit": { "type": "string" }, "sale_quantity": { "type": "string" }, "sale_quantity_limit": { "type": "string" }, "sale_region_ip_limit": { "type": "string" }, "sale_reserve_switch": { "type": "string" }, "sale_time_begin": { "type": "string" }, "sale_type": { "type": "string" }, "suit_card_type": { "type": "string" }, "image_cover_long": { "type": "string" }, "image_desc": { "type": "string" }, "item_id_pendant": { "type": "string" } }, "required": [ "book_amount", "dlc_act_id", "dlc_act_status", "dlc_is_free", "dlc_lottery_id", "dlc_lottery_sale_quantity", "dlc_lottery_type", "dlc_sale_end_time", "dlc_sale_mode", "dlc_sale_start_time", "dlc_surplus_stock", "image_cover", "sale_bp_forever_raw", "type" ], "x-apifox-orders": [ "book_amount", "dlc_act_id", "dlc_act_status", "dlc_is_free", "dlc_lottery_id", "dlc_lottery_sale_quantity", "dlc_lottery_type", "dlc_sale_end_time", "dlc_sale_mode", "dlc_sale_start_time", "dlc_surplus_stock", "image_cover", "sale_bp_forever_raw", "type", "desc", "fan_desc", "fan_id", "fan_item_ids", "fan_mid", "fan_no_color", "fan_recommend_desc", "fan_recommend_jump_type", "fan_recommend_jump_value", "fan_share_image", "gray_rule", "gray_rule_type", "image_cover_color", "is_hide", "item_id_card", "item_id_emoji", "item_id_thumbup", "open_platform_vip_discount", "owner_uid", "rank_investor_show", "realname_auth", "sale_bp_pm_raw", "sale_buy_num_limit", "sale_quantity", "sale_quantity_limit", "sale_region_ip_limit", "sale_reserve_switch", "sale_time_begin", "sale_type", "suit_card_type", "image_cover_long", "image_desc", "item_id_pendant" ] }, "current_activity": { "type": "null" }, "next_activity": { "type": "object", "properties": { "type": { "type": "string" }, "time_limit": { "type": "boolean" }, "time_left": { "type": "integer" }, "tag": { "type": "string" }, "price_bp_month": { "type": "integer" }, "price_bp_forever": { "type": "integer" }, "type_month": { "type": "string" }, "tag_month": { "type": "string" }, "time_limit_month": { "type": "boolean" }, "time_left_month": { "type": "integer" } }, "required": [ "type", "time_limit", "time_left", "tag", "price_bp_month", "price_bp_forever", "type_month", "tag_month", "time_limit_month", "time_left_month" ], "x-apifox-orders": [ "type", "time_limit", "time_left", "tag", "price_bp_month", "price_bp_forever", "type_month", "tag_month", "time_limit_month", "time_left_month" ] }, "current_sources": { "type": "null" }, "finish_sources": { "type": "null" }, "sale_left_time": { "type": "integer" }, "sale_time_end": { "type": "integer" }, "sale_surplus": { "type": "integer" }, "sale_count_desc": { "type": "string" }, "total_count_desc": { "type": "string" }, "tag": { "type": "string" }, "jump_link": { "type": "string" }, "sales_mode": { "type": "integer" } }, "required": [ "item_id", "name", "group_id", "group_name", "part_id", "state", "properties", "current_activity", "next_activity", "current_sources", "finish_sources", "sale_left_time", "sale_time_end", "sale_surplus", "sale_count_desc", "total_count_desc", "tag", "jump_link", "sales_mode" ], "x-apifox-orders": [ "item_id", "name", "group_id", "group_name", "part_id", "state", "properties", "current_activity", "next_activity", "current_sources", "finish_sources", "sale_left_time", "sale_time_end", "sale_surplus", "sale_count_desc", "total_count_desc", "tag", "jump_link", "sales_mode" ] } }, "pn": { "type": "integer" }, "ps": { "type": "integer" }, "total": { "type": "integer" } }, "required": [ "list", "pn", "ps", "total" ], "x-apifox-orders": [ "list", "pn", "ps", "total" ] } }, "required": [ "code", "message", "ttl", "data" ], "x-apifox-orders": [ "code", "message", "ttl", "data" ] }
重新测试原示例: 搜索关键词 2233
2233
curl --location --request GET 'https://api.bilibili.com/x/garb/v2/mall/home/search?key_word=2233'
{ "code": 0, "message": "0", "ttl": 1, "data": { "list": [ { "item_id": 0, "name": "2024拜年纪-2233拜年画册", "group_id": 70, "group_name": "2024拜年纪-2233拜年画册", "part_id": 0, "state": "active", "properties": { "book_amount": "1409582", "dlc_act_id": "279", "dlc_act_status": "2", "dlc_is_free": "0", "dlc_lottery_id": "256", "dlc_lottery_sale_quantity": "327297", "dlc_lottery_type": "1", "dlc_sale_end_time": "2114406245", "dlc_sale_mode": "1", "dlc_sale_start_time": "1707458400", "dlc_surplus_stock": "0", "image_cover": "http://i0.hdslb.com/bfs/archive/f96a8cf6866ccef8f54de4773acf0cb07b915ac6.png", "sale_bp_forever_raw": "990", "type": "dlc_act" }, "current_activity": null, "next_activity": { "type": "first_draw_discount", "time_limit": false, "time_left": -1734268366, "tag": "大会员首抽", "price_bp_month": 490, "price_bp_forever": 490, "type_month": "", "tag_month": "", "time_limit_month": false, "time_left_month": 0 }, "current_sources": null, "finish_sources": null, "sale_left_time": -1734268366, "sale_time_end": -1734268366, "sale_surplus": 0, "sale_count_desc": "32万+", "total_count_desc": "已售32万+份", "tag": "", "jump_link": "https://www.bilibili.com/h5/mall/digital-card/home?-Abrowser=live&act_id=279&hybrid_set_header=2&lottery_id=256", "sales_mode": 0 }, { "item_id": 0, "name": "2233·少女日记-指尖魔法", "group_id": 70, "group_name": "2233·少女日记-指尖魔法", "part_id": 0, "state": "active", "properties": { "book_amount": "148417", "dlc_act_id": "103244", "dlc_act_status": "2", "dlc_is_free": "0", "dlc_lottery_id": "104607", "dlc_lottery_sale_quantity": "12777", "dlc_lottery_type": "2", "dlc_sale_end_time": "2114406245", "dlc_sale_mode": "1", "dlc_sale_start_time": "1731211200", "dlc_surplus_stock": "0", "image_cover": "https://i0.hdslb.com/bfs/garb/2d1ec4193a9ca1ff9fd5d0bdf5f3b8f57e36b1c3.jpg", "sale_bp_forever_raw": "990", "type": "dlc_act" }, "current_activity": null, "next_activity": { "type": "first_draw_discount", "time_limit": false, "time_left": -1734268366, "tag": "大会员首抽", "price_bp_month": 490, "price_bp_forever": 490, "type_month": "", "tag_month": "", "time_limit_month": false, "time_left_month": 0 }, "current_sources": null, "finish_sources": null, "sale_left_time": -1734268366, "sale_time_end": -1734268366, "sale_surplus": 0, "sale_count_desc": "1万+", "total_count_desc": "已售1万+份", "tag": "DLC池", "jump_link": "https://www.bilibili.com/h5/mall/digital-card/home?-Abrowser=live&act_id=103244&hybrid_set_header=2&lottery_id=104607", "sales_mode": 0 }, { "item_id": 0, "name": "2233·少女日记-马戏童话", "group_id": 70, "group_name": "2233·少女日记-马戏童话", "part_id": 0, "state": "active", "properties": { "book_amount": "148417", "dlc_act_id": "103244", "dlc_act_status": "2", "dlc_is_free": "0", "dlc_lottery_id": "104819", "dlc_lottery_sale_quantity": "13724", "dlc_lottery_type": "2", "dlc_sale_end_time": "2114406245", "dlc_sale_mode": "1", "dlc_sale_start_time": "1732852800", "dlc_surplus_stock": "0", "image_cover": "https://i0.hdslb.com/bfs/garb/ecb193db8ef74bd4a8588251b06269329fe0c65a.png", "sale_bp_forever_raw": "990", "type": "dlc_act" }, "current_activity": null, "next_activity": { "type": "first_draw_discount", "time_limit": false, "time_left": -1734268366, "tag": "大会员首抽", "price_bp_month": 490, "price_bp_forever": 490, "type_month": "", "tag_month": "", "time_limit_month": false, "time_left_month": 0 }, "current_sources": null, "finish_sources": null, "sale_left_time": -1734268366, "sale_time_end": -1734268366, "sale_surplus": 0, "sale_count_desc": "1万+", "total_count_desc": "已售1万+份", "tag": "DLC池", "jump_link": "https://www.bilibili.com/h5/mall/digital-card/home?-Abrowser=live&act_id=103244&hybrid_set_header=2&lottery_id=104819", "sales_mode": 0 }, { "item_id": 0, "name": "2233·幻境序曲-长夜", "group_id": 70, "group_name": "2233·幻境序曲-长夜", "part_id": 0, "state": "active", "properties": { "book_amount": "264689", "dlc_act_id": "102161", "dlc_act_status": "2", "dlc_is_free": "0", "dlc_lottery_id": "103087", "dlc_lottery_sale_quantity": "79694", "dlc_lottery_type": "2", "dlc_sale_end_time": "2114406245", "dlc_sale_mode": "1", "dlc_sale_start_time": "1722139200", "dlc_surplus_stock": "0", "image_cover": "https://i0.hdslb.com/bfs/garb/f7e4f434ba6b93434b9e60df3c57a07552af4ca1.png", "sale_bp_forever_raw": "990", "type": "dlc_act" }, "current_activity": null, "next_activity": { "type": "first_draw_discount", "time_limit": false, "time_left": -1734268366, "tag": "大会员首抽", "price_bp_month": 490, "price_bp_forever": 490, "type_month": "", "tag_month": "", "time_limit_month": false, "time_left_month": 0 }, "current_sources": null, "finish_sources": null, "sale_left_time": -1734268366, "sale_time_end": -1734268366, "sale_surplus": 0, "sale_count_desc": "7万+", "total_count_desc": "已售7万+份", "tag": "DLC池", "jump_link": "https://www.bilibili.com/h5/mall/digital-card/home?-Abrowser=live&act_id=102161&hybrid_set_header=2&lottery_id=103087", "sales_mode": 0 }, { "item_id": 0, "name": "2233·幻境序曲-银弈", "group_id": 70, "group_name": "2233·幻境序曲-银弈", "part_id": 0, "state": "active", "properties": { "book_amount": "264689", "dlc_act_id": "102161", "dlc_act_status": "2", "dlc_is_free": "0", "dlc_lottery_id": "104688", "dlc_lottery_sale_quantity": "14021", "dlc_lottery_type": "2", "dlc_sale_end_time": "2114406245", "dlc_sale_mode": "1", "dlc_sale_start_time": "1732075200", "dlc_surplus_stock": "0", "image_cover": "https://i0.hdslb.com/bfs/garb/62f0791bd1ed200458829f8b512e9e76cf4f75ad.jpg", "sale_bp_forever_raw": "990", "type": "dlc_act" }, "current_activity": null, "next_activity": { "type": "first_draw_discount", "time_limit": false, "time_left": -1734268366, "tag": "大会员首抽", "price_bp_month": 490, "price_bp_forever": 490, "type_month": "", "tag_month": "", "time_limit_month": false, "time_left_month": 0 }, "current_sources": null, "finish_sources": null, "sale_left_time": -1734268366, "sale_time_end": -1734268366, "sale_surplus": 0, "sale_count_desc": "1万+", "total_count_desc": "已售1万+份", "tag": "DLC池", "jump_link": "https://www.bilibili.com/h5/mall/digital-card/home?-Abrowser=live&act_id=102161&hybrid_set_header=2&lottery_id=104688", "sales_mode": 0 }, { "item_id": 0, "name": "2233·群星闪耀时-双子座", "group_id": 70, "group_name": "2233·群星闪耀时-双子座", "part_id": 0, "state": "active", "properties": { "book_amount": "1181221", "dlc_act_id": "113", "dlc_act_status": "2", "dlc_is_free": "0", "dlc_lottery_id": "16", "dlc_lottery_sale_quantity": "589389", "dlc_lottery_type": "1", "dlc_sale_end_time": "2114406245", "dlc_sale_mode": "1", "dlc_sale_start_time": "1686196800", "dlc_surplus_stock": "0", "image_cover": "http://i0.hdslb.com/bfs/archive/ed35d12a3dce7764d6cb5b02cb4a459373472522.jpg", "sale_bp_forever_raw": "990", "type": "dlc_act" }, "current_activity": null, "next_activity": { "type": "first_draw_discount", "time_limit": false, "time_left": -1734268366, "tag": "大会员首抽", "price_bp_month": 90, "price_bp_forever": 90, "type_month": "", "tag_month": "", "time_limit_month": false, "time_left_month": 0 }, "current_sources": null, "finish_sources": null, "sale_left_time": -1734268366, "sale_time_end": -1734268366, "sale_surplus": 0, "sale_count_desc": "58万+", "total_count_desc": "已售58万+份", "tag": "", "jump_link": "https://www.bilibili.com/h5/mall/digital-card/home?-Abrowser=live&act_id=113&hybrid_set_header=2&lottery_id=16", "sales_mode": 0 }, { "item_id": 39389, "name": "2233人生百戏-花木兰", "group_id": 70, "group_name": "2233人生百戏-花木兰", "part_id": 6, "state": "active", "properties": { "desc": "为从军设妙计女扮男装,涉千山越万水亲赴戎机。2233人生百戏·花木兰装扮上线啦!本套装包括动态卡片、点赞动效和表情包,永久购买还能成为认证粉丝,领取粉丝专属装扮!", "fan_desc": "人生百戏-花木兰", "fan_id": "人生百戏-花木兰", "fan_item_ids": "39335,39384,39353,39354", "fan_mid": "35365327", "fan_no_color": "#eb3d3e", "fan_recommend_desc": "为从军设妙计女扮男装,涉千山越万水亲赴戎机。", "fan_recommend_jump_type": "url", "fan_recommend_jump_value": "https://space.bilibili.com/35365327?spm_id_from=333.337.0.0", "fan_share_image": "https://i0.hdslb.com/bfs/garb/item/5ddd3f72ef2a938e9125851f488068012b841ad4.jpg", "gray_rule": "true", "gray_rule_type": "all", "image_cover": "https://i0.hdslb.com/bfs/garb/item/e21ec12047bcd93e6afb8e52a68eb9835cd54a23.jpg", "image_cover_color": "#d8b796", "is_hide": "false", "item_id_card": "39334", "item_id_emoji": "39352", "item_id_thumbup": "39336", "open_platform_vip_discount": "true", "owner_uid": "647193094", "rank_investor_show": "false", "realname_auth": "false", "sale_bp_forever_raw": "5000", "sale_bp_pm_raw": "800", "sale_buy_num_limit": "100", "sale_quantity": "20000", "sale_quantity_limit": "true", "sale_region_ip_limit": "全球", "sale_reserve_switch": "false", "sale_time_begin": "1666868400", "sale_type": "pay", "suit_card_type": "big_img", "type": "ip" }, "current_activity": null, "next_activity": { "type": "open_platform_vip_discount", "time_limit": true, "time_left": 411619634, "tag": "大会员平台折扣", "price_bp_month": 640, "price_bp_forever": 4000, "type_month": "open_platform_vip_discount", "tag_month": "大会员平台折扣", "time_limit_month": true, "time_left_month": 411619634 }, "current_sources": null, "finish_sources": null, "sale_left_time": -67399966, "sale_time_end": -1734268366, "sale_surplus": 8644, "sale_count_desc": "1万+", "total_count_desc": "已售1万+份", "tag": "", "jump_link": "https://www.bilibili.com/h5/mall/suit/detail?navhide=1&id=39389", "sales_mode": 0 }, { "item_id": 4259, "name": "2233白色情人节", "group_id": 70, "group_name": "2233白色情人节", "part_id": 6, "state": "active", "properties": { "desc": "shot你的心——无论是谁都拥有爱的权利,快换上白色情人节专属装扮来遇见心里的那个ta吧!本套装包括头像挂件、动态卡片、点赞动效和表情包,永久购买还能成为认证粉丝,领取粉丝专属装扮!", "fan_desc": "白色情人节", "fan_id": "2233白色情人节", "fan_item_ids": "4257,4230,4256,4255,4253,4254", "fan_mid": "174501086", "fan_no_color": "#f85574", "fan_recommend_desc": "平淡日常中迎来浪漫的节日,象征爱情的丘比特们悄悄来到少女们身边,用爱之箭觉醒了懵懂悸动的心。新鲜的玫瑰,闪耀光泽的草莓,白色情人节这天为你准备不一样的惊喜。", "fan_recommend_jump_type": "url", "fan_recommend_jump_value": "https://b23.tv/54WVWS", "fan_share_image": "https://i0.hdslb.com/bfs/garb/item/30e3f1b234dd33a2a5446dd7d05b31835ac74d4b.jpg", "gray_rule": "true", "gray_rule_type": "all", "image_cover": "https://i0.hdslb.com/bfs/garb/item/a8d60a7d4f1f5a5de667b307736f701cb39c0741.jpg", "image_cover_color": "#a3a8ec", "image_cover_long": "https://i0.hdslb.com/bfs/garb/item/5ac3bb024d42ff0f26de07ce974351d62587c6ea.jpg", "image_desc": "https://i0.hdslb.com/bfs/garb/item/cfe753a010d124a95fb311c372a5be69d82c8e13.jpg", "is_hide": "false", "item_id_card": "4231", "item_id_emoji": "4252", "item_id_pendant": "4229", "item_id_thumbup": "4232", "open_platform_vip_discount": "true", "owner_uid": "647193094", "rank_investor_show": "true", "realname_auth": "false", "sale_bp_forever_raw": "5900", "sale_bp_pm_raw": "800", "sale_buy_num_limit": "100", "sale_quantity": "52000", "sale_quantity_limit": "true", "sale_region_ip_limit": "全球", "sale_reserve_switch": "false", "sale_time_begin": "1615694400", "sale_type": "pay", "suit_card_type": "big_img", "type": "ip" }, "current_activity": null, "next_activity": { "type": "open_platform_vip_discount", "time_limit": true, "time_left": 411619634, "tag": "大会员平台折扣", "price_bp_month": 640, "price_bp_forever": 4720, "type_month": "open_platform_vip_discount", "tag_month": "大会员平台折扣", "time_limit_month": true, "time_left_month": 411619634 }, "current_sources": null, "finish_sources": null, "sale_left_time": -118573966, "sale_time_end": -1734268366, "sale_surplus": 0, "sale_count_desc": "5万+", "total_count_desc": "已售5万+份", "tag": "粉丝套装已售罄", "jump_link": "https://www.bilibili.com/h5/mall/suit/detail?navhide=1&id=4259", "sales_mode": 0 }, { "item_id": 0, "name": "2233·少女日记-蔚蓝幻想曲", "group_id": 70, "group_name": "2233·少女日记-蔚蓝幻想曲", "part_id": 0, "state": "active", "properties": { "book_amount": "148417", "dlc_act_id": "103244", "dlc_act_status": "2", "dlc_is_free": "0", "dlc_lottery_id": "103885", "dlc_lottery_sale_quantity": "25191", "dlc_lottery_type": "2", "dlc_sale_end_time": "2114406245", "dlc_sale_mode": "1", "dlc_sale_start_time": "1727236800", "dlc_surplus_stock": "0", "image_cover": "http://i0.hdslb.com/bfs/archive/a04b3e9ef354493a0890a9197412f1c77e01ba0f.jpg", "sale_bp_forever_raw": "990", "type": "dlc_act" }, "current_activity": null, "next_activity": { "type": "first_draw_discount", "time_limit": false, "time_left": -1734268366, "tag": "大会员首抽", "price_bp_month": 490, "price_bp_forever": 490, "type_month": "", "tag_month": "", "time_limit_month": false, "time_left_month": 0 }, "current_sources": null, "finish_sources": null, "sale_left_time": -1734268366, "sale_time_end": -1734268366, "sale_surplus": 0, "sale_count_desc": "2万+", "total_count_desc": "已售2万+份", "tag": "DLC池", "jump_link": "https://www.bilibili.com/h5/mall/digital-card/home?-Abrowser=live&act_id=103244&hybrid_set_header=2&lottery_id=103885", "sales_mode": 0 } ], "pn": 1, "ps": 20, "total": 196 } }
https://api.bilibili.com/x/vas/dlc_act/asset_bag
对比 https://api.bilibili.com/x/vas/dlc_act/lottery_home_detail :
JSON响应 自动生成的json schema:
示例:
curl --location --request GET 'api.bilibili.com/x/vas/dlc_act/asset_bag?act_id=111'
// 过长了 (共1411行),发不出来
The text was updated successfully, but these errors were encountered:
No branches or pull requests
提交前请确认
API 来源
Web 端(含 h5)
API 类型
REST
API 地址
原文档地址 https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/docs/garb/lottery.md
详情描述
更新 装扮/收藏集搜索API
请求方式: GET
URL参数:
keywordJSON响应部分未校对
自动生成的json schema:
查看json schema
重新测试原示例:
搜索关键词
2233
curl --location --request GET 'https://api.bilibili.com/x/garb/v2/mall/home/search?key_word=2233'
查看响应示例:
新增 收藏集信息API
请求方式: GET
URL参数:
对比 https://api.bilibili.com/x/vas/dlc_act/lottery_home_detail :
JSON响应
自动生成的json schema:
查看json schema
示例:
查看响应示例 (共1411行):
The text was updated successfully, but these errors were encountered: