Esports team: roster, ranking and results
Valorant (vlr.gg team id): name, tag, region, logo, links, regional rank, rating, win/loss record, total winnings, roster with real names, roles, captain and country, upcoming matches and recent results with each map's score and both teams' agents. League of Legends (lolesports team slug): name, code, home league, region, images and the roster with summoner names, real names and roles.
Every response includes credits_used: the credits this call cost.
Parameters
| name | type | description |
|---|---|---|
gamerequired | valorant | lol | valorant or lol. Example: valorant |
idrequired | string | valorant: vlr.gg team id (2593 = FNATIC, 2 = Sentinels). lol: team slug (t1, g2-esports, fnatic). Example: 2593 |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/esports/v1/team?game=valorant&id=2593" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/esports/v1/team",
params={"game": "valorant", "id": "2593"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/esports/v1/team");
url.searchParams.set("game", "valorant");
url.searchParams.set("id", "2593");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).