崩铁角色列表
92个角色+7种元素属性,含稀有度/命途/元素/图标,支持按元素和命途过滤
GET
https://api.tinyaii.cn/v1/hsr/characters
请求参数
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| element | string | 可选 | 元素过滤:物理/火/冰/雷/风/量子/虚数 | — |
| path | string | 可选 | 命途过滤:毁灭/存护/巡猎/智识/虚无/同谐/欢愉/记忆 | — |
返回字段
| 字段 | 类型 | 说明 |
|---|---|---|
| data.total | int | 角色总数 |
| data.elements | array | 元素属性列表 |
| data.characters[].name | string | 角色名称 |
| data.characters[].rarity | int | 稀有度(4/5) |
| data.characters[].element_name | string | 元素 |
| data.characters[].path_name | string | 命途 |
返回示例
{
"code": 200,
"message": "success",
"data": {
"total": 92,
"elements": [
{
"id": "Physical",
"name": "物理"
}
],
"characters": [
{
"id": "1001",
"name": "姬子",
"rarity": 5,
"element_name": "火",
"path_name": "智识"
}
]
}
}
调用示例
curl "https://api.tinyaii.cn/v1/hsr/characters?element=<element>&path=<path>" \
-H "Authorization: Bearer YOUR_API_KEY"const res = await fetch("https://api.tinyaii.cn/v1/hsr/characters?element=<element>&path=<path>", {
headers: { "Authorization": "Bearer YOUR_API_KEY" },
});
console.log(await res.json());import requests
resp = requests.get(
"https://api.tinyaii.cn/v1/hsr/characters",
params={"element": "<element>", "path": "<path>"},
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=10,
)
print(resp.json())把 YOUR_API_KEY 换成你的密钥即可直接运行。密钥只保存在你自己的设备上。