Developer API
Game stats
Ranks, today's record and last matches for Valorant, League of Legends and FACEIT. Each endpoint answers in one line of text, or JSON with json=true.
x-api-key header (or api_key in the address for chat bots). See Introduction for limits.Valorant#
Parameters (all Valorant endpoints)
| namerequired | string | Riot name |
| tagrequired | string | Riot tag, without # |
| region | eu | na | ap | kr | Default eu |
| platform | pc | console | Default pc |
| format | string | Your own text with [variables] |
| json | boolean | true for the full JSON response |
/api/v/rankx-api-key[rank] ([rr] RR)/api/v/recordx-api-key[rank] - Won [win] matches today ([win_percentage])/api/v/lastmatchx-api-key/api/v/globalx-api-key/api/v/agentsx-api-keyjson=true).GET /api/v/rank?region=eu&platform=pc&json=trueExamples#
curl "https://spotlight.baby/api/v/rank?name=Player&tag=EUW®ion=eu&json=true" \
-H "x-api-key: YOUR_KEY"League of Legends#
Parameters
| namerequired | string | Riot name |
| tagrequired | string | Riot tag, without # |
| region | string | Default eune. One of: na, euw, eune, kr, jp, br, tr, las, lan, oc, ru, ph, sg, th, tw, vn |
| format | string | Your own text with [variables] |
| json | boolean | true for the full JSON response |
/api/lol/rankx-api-key[tier] [rank] with [lp] LP/api/lol/last-matchx-api-keyFACEIT#
Parameters
| nicknamerequired | string | FACEIT nickname (name also works) |
| game | string | Default cs2 |
| format | string | Your own text with [variables] |
| json | boolean | true for the full JSON response |
/api/faceit/profilex-api-key[nickname]: Level [level] ([elo] ELO)/api/faceit/statsx-api-key/api/faceit/lastmatchx-api-keyVariables for format#
Every variable you can use in format, per endpoint:
valorant
GET
/api/v/record๐ Match Record - Today's match results (wins, losses, etc.)
format variables: [name] [tag] [region] [platform] [rank] [rr] [win] [win_percentage] [last_map]
e.g. format=[rank] - Won [win] matches today ([win_percentage])
GET
/api/v/lastmatch๐น๏ธ Last Match - Detailed stats of the player's last match in Valorant
format variables: [name] [tag] [agent] [kills] [deaths] [assists] [score]
e.g. format=[name] played on [map] as [agent]. K/D/A: [kills]/[deaths]/[assists]
GET
/api/v/rank๐๏ธ Rank - Current rank and season progress in Valorant
format variables: [name] [rank] [rr] [peak_rank]
e.g. format=[rank] ([rr] RR)
GET
/api/v/global๐ Global - Detailed data from recent matches and statistics in Valorant
format variables: [name] [rank] [daily_wins]
e.g. format=[rank] ([rr] RR), daily wins: [daily_wins]
FACEIT
GET
/api/faceit/profile๐ฏ Level & ELO - FACEIT skill level and ELO of a player
format variables: [nickname] [level] [elo] [elo_to_next] [country]
e.g. format=[nickname]: Level [level] ([elo] ELO)
GET
/api/faceit/stats๐ Lifetime stats - K/D, win rate, matches and streaks of a FACEIT player
format variables: [kd] [win_rate] [matches] [hs] [win_streak] [recent]
e.g. format=K/D [kd] | WR [win_rate]% | [matches] matches
GET
/api/faceit/lastmatchโฑ๏ธ Last match - Result and personal stats of the last FACEIT match
format variables: [result] [map] [score] [kills] [deaths] [assists] [mvps]
e.g. format=[result] on [map] [score]: [kills]/[deaths]/[assists]
League of Legends
GET
/api/lol/rank๐ Rank - Current league rank of the player in League of Legends
format variables: [name] [tag] [level] [solo_rank] [solo_division] [solo_lp] [solo_wins] [solo_losses] [solo_total_games] [solo_win_rate] [solo_games_needed] [solo_suffix] [flex_rank] [flex_division] [flex_lp] [flex_wins] [flex_losses] [flex_total_games] [flex_win_rate] [flex_games_needed] [flex_suffix] [champ_name] [champ_level] [champ_points] [rank] [division] [lp] [wins] [losses] [total_games] [win_rate] [games_needed] [suffix]
e.g. format=Summoner [summoner_name] is [tier] [rank] with [lp] LP.
GET
/api/lol/last-matchโ๏ธ Last Match - Detailed stats of the last League of Legends match
format variables: [name] [tag] [champion] [result] [kills] [deaths] [assists] [kda] [mode] [duration] [cs]
e.g. format=[name]#[tag] last played [champion] ([result]). KDA: [kills]/[deaths]/[assists] ([kda]). Mode: [mode] ([duration])