Update lottery.md

修复“装扮/收藏集搜索API”的“关键词”字段错误,并修复示例
This commit is contained in:
Mioxiya 2024-12-15 23:51:44 +08:00
parent e5fbfed428
commit 463ff80a18

View File

@ -12,7 +12,7 @@
| 参数名 | 类型 | 内容 | 必要性 | 备注 |
|----- |--- |------- |----- |--- |
| keyword | str | 关键词 | 不必要 | |
| key_word | str | 关键词 | 不必要 | |
| ps | int | 每页返回数据的最大值 | 不必要 | |
| pn | int | 当前页数 | 不必要 | |
@ -137,12 +137,10 @@
**示例:**
搜索关键词 `2233`, 然而没有结果:
搜索关键词 `2233`:
```shell
curl -G 'https://api.bilibili.com/x/garb/v2/mall/home/search' \
--data-urlencode 'keyword=2233' \
-b 'SESSDATA=xxx'
curl -G 'https://aapi.bilibili.com/x/garb/v2/mall/home/search?key_word=2233'
```
<details>
@ -150,15 +148,480 @@ curl -G 'https://api.bilibili.com/x/garb/v2/mall/home/search' \
```json
{
"code": 0,
"message": "0",
"ttl": 1,
"data": {
"list": null,
"pn": 1,
"ps": 20,
"total": 0
}
"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": "1409605",
"dlc_act_id": "279",
"dlc_act_status": "2",
"dlc_is_free": "0",
"dlc_lottery_id": "256",
"dlc_lottery_sale_quantity": "327320",
"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": -1734276032,
"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": -1734276032,
"sale_time_end": -1734276032,
"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": "148462",
"dlc_act_id": "103244",
"dlc_act_status": "2",
"dlc_is_free": "0",
"dlc_lottery_id": "104607",
"dlc_lottery_sale_quantity": "12779",
"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": -1734276032,
"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": -1734276032,
"sale_time_end": -1734276032,
"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": "148462",
"dlc_act_id": "103244",
"dlc_act_status": "2",
"dlc_is_free": "0",
"dlc_lottery_id": "104819",
"dlc_lottery_sale_quantity": "13748",
"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": -1734276032,
"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": -1734276032,
"sale_time_end": -1734276032,
"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": "264710",
"dlc_act_id": "102161",
"dlc_act_status": "2",
"dlc_is_free": "0",
"dlc_lottery_id": "103087",
"dlc_lottery_sale_quantity": "79695",
"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": -1734276032,
"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": -1734276032,
"sale_time_end": -1734276032,
"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": "264710",
"dlc_act_id": "102161",
"dlc_act_status": "2",
"dlc_is_free": "0",
"dlc_lottery_id": "104688",
"dlc_lottery_sale_quantity": "14039",
"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": -1734276032,
"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": -1734276032,
"sale_time_end": -1734276032,
"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": "1181243",
"dlc_act_id": "113",
"dlc_act_status": "2",
"dlc_is_free": "0",
"dlc_lottery_id": "16",
"dlc_lottery_sale_quantity": "589411",
"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": -1734276032,
"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": -1734276032,
"sale_time_end": -1734276032,
"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": 411611968,
"tag": "大会员平台折扣",
"price_bp_month": 640,
"price_bp_forever": 4000,
"type_month": "open_platform_vip_discount",
"tag_month": "大会员平台折扣",
"time_limit_month": true,
"time_left_month": 411611968
},
"current_sources": null,
"finish_sources": null,
"sale_left_time": -67407632,
"sale_time_end": -1734276032,
"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": 411611968,
"tag": "大会员平台折扣",
"price_bp_month": 640,
"price_bp_forever": 4720,
"type_month": "open_platform_vip_discount",
"tag_month": "大会员平台折扣",
"time_limit_month": true,
"time_left_month": 411611968
},
"current_sources": null,
"finish_sources": null,
"sale_left_time": -118581632,
"sale_time_end": -1734276032,
"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": "148462",
"dlc_act_id": "103244",
"dlc_act_status": "2",
"dlc_is_free": "0",
"dlc_lottery_id": "103247",
"dlc_lottery_sale_quantity": "96736",
"dlc_lottery_type": "1",
"dlc_sale_end_time": "2114406245",
"dlc_sale_mode": "1",
"dlc_sale_start_time": "1723780800",
"dlc_surplus_stock": "0",
"image_cover": "https://i0.hdslb.com/bfs/garb/9c338eb4841cad917665140cc08c7d14b5c7e0bf.png",
"sale_bp_forever_raw": "990",
"type": "dlc_act"
},
"current_activity": null,
"next_activity": {
"type": "first_draw_discount",
"time_limit": false,
"time_left": -1734276032,
"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": -1734276032,
"sale_time_end": -1734276032,
"sale_surplus": 0,
"sale_count_desc": "9万+",
"total_count_desc": "已售9万+份",
"tag": "",
"jump_link": "https://www.bilibili.com/h5/mall/digital-card/home?-Abrowser=live&act_id=103244&hybrid_set_header=2&lottery_id=103247",
"sales_mode": 0
}
],
"pn": 1,
"ps": 20,
"total": 196
}
}
```