洛克王国远行商人(2号)
查询今日洛克王国远行商人出售的所有商品,按4个时段分批,含价格/限购/标签/推荐度
GET
https://api.tinyaii.cn/v1/roco/merchant/today
请求参数
该接口无需请求参数,直接调用即可返回数据。
返回字段
| 字段 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| data.total_items | int | 今日商品总数 |
| data.batches | array | 时段列表 |
| data.batches[].batch | int | 时段编号(1-4) |
| data.batches[].time_range | string | 时段(如08:00-12:00) |
| data.batches[].items | array | 商品列表 |
| data.batches[].items[].name | string | 商品名称 |
| data.batches[].items[].price | string | 价格(洛克贝) |
| data.batches[].items[].buy_limit | string | 限购数量 |
| data.batches[].items[].type_name | string | 类型(精灵/炼金材料/装备/精灵蛋) |
| data.batches[].items[].is_worth | bool | 是否值得买 |
| data.batches[].items[].tags | array | 标签列表 |
返回示例
{
"code": 200,
"message": "success",
"data": {
"total_items": 6,
"batches": [
{
"batch": 1,
"time_range": "08:00-12:00",
"items": [
{
"name": "蓝晶碧玺",
"price": "1000",
"buy_limit": "100",
"type_name": "炼金材料",
"is_worth": false,
"tags": [
"可买可不买",
"随处可见"
]
}
]
}
]
}
}
调用示例
curl "https://api.tinyaii.cn/v1/roco/merchant/today" \
-H "Authorization: Bearer YOUR_API_KEY"const res = await fetch("https://api.tinyaii.cn/v1/roco/merchant/today", {
headers: { "Authorization": "Bearer YOUR_API_KEY" },
});
console.log(await res.json());import requests
resp = requests.get(
"https://api.tinyaii.cn/v1/roco/merchant/today",
params=None,
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=10,
)
print(resp.json())把 YOUR_API_KEY 换成你的密钥即可直接运行。密钥只保存在你自己的设备上。