请求方式:POST
认证方式:cookie
请求头参数:
参数名 | 类型 | 必传 | 内容 |
---|---|---|---|
cookie | string | 是 | 用户凭证 |
content-type | string | 是 | application/json |
URL参数:
参数名 | 类型 | 必传 | 内容 |
---|---|---|---|
aid | string | 否 | 未知 |
uuid | string | 否 | 未知 |
spider | string | 否 | 未知 |
响应格式:application/json; charset=utf-8
根对象:
字段 | 类型 | 内容 |
---|---|---|
err_no | num | 响应码 |
err_msg | string | 响应消息 |
data | object | 响应内容 |
data对象:
字段 | 类型 | 内容 |
---|---|---|
LotteryBases | array | 奖品列表 |
total_lucky_value | number | 当前总幸运值 |
draw_lucky_value | number | 本次抽奖增加的幸运值 |
LotteryBases对象
字段 | 类型 | 内容 |
---|---|---|
id | number | 奖品索引 |
lottery_id | string | 奖品id |
lottery_name | string | 奖品名字 |
lottery_type | number | 奖品类型 1为矿石 2为bug |
lottery_image | string | 奖品图片路径 |
lottery_desc | string | 奖品描述 |
lottery_cost | number | 奖品成本 |
请求例子:
curl --location --request POST 'https://api.juejin.cn/growth_api/v1/lottery/ten_draw?aid=2608&uuid=6896808183048029710&spider=0' \
--header 'content-type: application/json' \
--header '你滴cookie' \
--data-raw '{}'
响应成功例子:
{
"err_no": 0,
"err_msg": "success",
"data": {
"LotteryBases": [
{
"id": 18,
"lottery_id": "6981716405976743943",
"lottery_name": "Bug",
"lottery_type": 2,
"lottery_image": "https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/0a4ce25d48b8405cbf5444b6195928d4~tplv-k3u1fbpfcp-no-mark:0:0:0:0.image",
"lottery_desc": "",
"lottery_cost": 0
},
{
"id": 19,
"lottery_id": "6981716980386496552",
"lottery_name": "88矿石",
"lottery_type": 1,
"lottery_image": "https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/32ed6a7619934144882d841761b63d3c~tplv-k3u1fbpfcp-no-mark:0:0:0:0.image",
"lottery_desc": "",
"lottery_cost": 0
},
{
"id": 18,
"lottery_id": "6981716405976743943",
"lottery_name": "Bug",
"lottery_type": 2,
"lottery_image": "https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/0a4ce25d48b8405cbf5444b6195928d4~tplv-k3u1fbpfcp-no-mark:0:0:0:0.image",
"lottery_desc": "",
"lottery_cost": 0
},
{
"id": 19,
"lottery_id": "6981716980386496552",
"lottery_name": "114矿石",
"lottery_type": 1,
"lottery_image": "https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/32ed6a7619934144882d841761b63d3c~tplv-k3u1fbpfcp-no-mark:0:0:0:0.image",
"lottery_desc": "",
"lottery_cost": 0
},
{
"id": 18,
"lottery_id": "6981716405976743943",
"lottery_name": "Bug",
"lottery_type": 2,
"lottery_image": "https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/0a4ce25d48b8405cbf5444b6195928d4~tplv-k3u1fbpfcp-no-mark:0:0:0:0.image",
"lottery_desc": "",
"lottery_cost": 0
},
{
"id": 19,
"lottery_id": "6981716980386496552",
"lottery_name": "16矿石",
"lottery_type": 1,
"lottery_image": "https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/32ed6a7619934144882d841761b63d3c~tplv-k3u1fbpfcp-no-mark:0:0:0:0.image",
"lottery_desc": "",
"lottery_cost": 0
},
{
"id": 18,
"lottery_id": "6981716405976743943",
"lottery_name": "Bug",
"lottery_type": 2,
"lottery_image": "https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/0a4ce25d48b8405cbf5444b6195928d4~tplv-k3u1fbpfcp-no-mark:0:0:0:0.image",
"lottery_desc": "",
"lottery_cost": 0
},
{
"id": 19,
"lottery_id": "6981716980386496552",
"lottery_name": "13矿石",
"lottery_type": 1,
"lottery_image": "https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/32ed6a7619934144882d841761b63d3c~tplv-k3u1fbpfcp-no-mark:0:0:0:0.image",
"lottery_desc": "",
"lottery_cost": 0
},
{
"id": 18,
"lottery_id": "6981716405976743943",
"lottery_name": "Bug",
"lottery_type": 2,
"lottery_image": "https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/0a4ce25d48b8405cbf5444b6195928d4~tplv-k3u1fbpfcp-no-mark:0:0:0:0.image",
"lottery_desc": "",
"lottery_cost": 0
},
{
"id": 19,
"lottery_id": "6981716980386496552",
"lottery_name": "45矿石",
"lottery_type": 1,
"lottery_image": "https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/32ed6a7619934144882d841761b63d3c~tplv-k3u1fbpfcp-no-mark:0:0:0:0.image",
"lottery_desc": "",
"lottery_cost": 0
}
],
"total_lucky_value": 2735,
"draw_lucky_value": 100
}
}
响应失败例子:
{
"err_no": 403,
"err_msg": "must login",
"data": null
}