https://valorant-api.com/v1/agentshttps://valorant-api.com/v1/agents?isPlayableCharacter=true&language=zh-CNvalorant-api.com 是社区维护的官方数据镜像,更新很及时。参数 isPlayableCharacter=true 过滤掉不可玩的角色,只留正式特工。
每条含 uuid、displayName(英文代号,如 Gekko)、description(背景介绍)、role(定位:决斗/先锋/控场/哨卫)、abilities(四个技能的 name、description、icon)、fullPortrait(竖版立绘 1024px)、backgroundGradientColors(官方配色,做卡片背景正好)。
语言参数传 language=zh-CN 时部分字段会返回中文,技能描述尤其明显。立绘是透明 PNG,直接当卡片图用效果很好。返回 114KB。
| 参数名 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
isPlayableCharacter |
string | 选填 | true | 填 true 只返回可玩特工 |
language |
string | 选填 | zh-CN | 语言代码,如 zh-CN |
https://valorant-api.com/v1/agents
此处将显示接口返回结果…
{
"status": 200,
"data": [
{
"uuid": "e370fa57-...",
"displayName": "Gekko",
"role": { "displayName": "Initiator" },
"fullPortrait": "https://media.valorant-api.com/agents/.../fullportrait.png",
"backgroundGradientColors": ["#c8f24a", "#8ab32e", "#4d6319", "#2a370e"]
}
]
}
—