异环武器列表
查询异环武器列表,支持按类型筛选。
GET
https://api.tinyaii.cn/v1/nte/weapons
请求参数
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| weapon_type | string | 可选 | 类型筛选:固体/气体/等离子/合成(也支持英文 solid/gas/plasma/synthesis) | — |
返回字段
| 字段 | 类型 | 说明 |
|---|---|---|
| data.count | int | 武器数量 |
| data.weapons | array | 武器列表 |
| data.weapons[].id | string | 武器ID |
| data.weapons[].name | string | 中文名 |
| data.weapons[].nameEn | string | 英文名 |
| data.weapons[].tags | array | 标签(类型) |
| data.weapons[].url | string | 详情页路径 |
返回示例
{
"code": 200,
"data": {
"count": 10,
"weapons": [
{
"id": "blow-up-the-crowd",
"name": "引爆全场",
"nameEn": "Blow up the Crowd",
"tags": [
"solid"
],
"type": "weapon",
"url": "/zh/weapons/blow-up-the-crowd"
},
{
"id": "day-off",
"name": "休息日",
"nameEn": "Day Off",
"tags": [
"solid"
],
"type": "weapon",
"url": "/zh/weapons/day-off"
},
{
"id": "hethereraus-keeper",
"name": "海特洛的安宁",
"nameEn": "Hethereau's Keeper",
"tags": [
"solid"
],
"type": "weapon",
"url": "/zh/weapons/hethereraus-keeper"
}
]
},
"message": "success"
}
调用示例
curl "https://api.tinyaii.cn/v1/nte/weapons?weapon_type=<weapon_type>" \
-H "Authorization: Bearer YOUR_API_KEY"const res = await fetch("https://api.tinyaii.cn/v1/nte/weapons?weapon_type=<weapon_type>", {
headers: { "Authorization": "Bearer YOUR_API_KEY" },
});
console.log(await res.json());import requests
resp = requests.get(
"https://api.tinyaii.cn/v1/nte/weapons",
params={"weapon_type": "<weapon_type>"},
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=10,
)
print(resp.json())把 YOUR_API_KEY 换成你的密钥即可直接运行。密钥只保存在你自己的设备上。