Developer API
API explorer & SDK
All 17 public endpoints in one place, each with a live console. Import the OpenAPI file into Postman or Insomnia, or use the JavaScript SDK.
OpenAPI#
The machine-readable description of the API (OpenAPI 3.1): https://spotlight.baby/api/openapi.json. Import it into Postman (Import → Link), Insomnia or Bruno, or generate a client in any language with openapi-generator.
npx @openapitools/openapi-generator-cli generate \
-i https://spotlight.baby/api/openapi.json -g python -o spotlight-clientJavaScript SDK#
The official client: no dependencies, typed, works in Node 18+, Deno, Bun and browsers. Errors throw a SpotlightError with the status (401 wrong key, 404 not found, 429 too many requests).
npm i spotlight-babyapi.valorant:rank,record,lastMatch,global,agents(each also as…Textfor one line of chat text).api.lol:rank,lastMatch.api.faceit:profile,stats,lastMatch.api.me(),api.user(username),api.widgetText(id),api.publicStats(),api.status(), andapi.request(id, params)for anything by its OpenAPI operation id.
Every endpoint#
VALORANT#
Rank, today's record, the last match, leaderboard and agents (HenrikDev data). Text for chat bots, or JSON.
/api/v/rankx-api-keyAscendant 2 (47 RR) (operation id valorantRank)GET /api/v/rank?region=eu&platform=pc/api/v/recordx-api-keyGold 3 - Won 5 matches today (62.5%) (operation id valorantRecord)GET /api/v/record?region=eu&platform=pc/api/v/lastmatchx-api-keyvalorantLastMatch)GET /api/v/lastmatch?region=eu&platform=pc/api/v/globalx-api-keyvalorantGlobal)GET /api/v/global?region=eu&platform=pc/api/v/agentsx-api-keyvalorantAgents)GET /api/v/agents?region=eu&platform=pcLeague of Legends#
Ranked tier and the last game (Riot data).
/api/lol/rankx-api-keyDiamond II · 54 LP (operation id lolRank)GET /api/lol/rank?region=euw/api/lol/last-matchx-api-keylolLastMatch)GET /api/lol/last-match?region=euwFACEIT#
Level, ELO, stats and the last match for CS2 and more.
/api/faceit/profilex-api-keyLevel 10 · 3200 ELO (operation id faceitProfile)GET /api/faceit/profile?game=cs2/api/faceit/statsx-api-keyfaceitStats)GET /api/faceit/stats?game=cs2/api/faceit/lastmatchx-api-keyfaceitLastMatch)GET /api/faceit/lastmatch?game=cs2Accounts#
Your own stats and public profiles (an API key as a Bearer token).
/api/v1/meBearer keyme)GET /api/v1/me/api/v1/users/{username}Bearer keyuser)GET /api/v1/users/xsaiianWidgets and calendars#
Text widgets for chat bots and calendar files for countdowns and events.
/api/w/{widgetId}/textNo keywidgetText)GET /api/w/abc123/text/api/profile/{username}/countdown.icsNo keycountdownIcs)/api/profile/{username}/event.icsNo keyeventIcs)Spotlight#
Public numbers and the API's status.
/api/stats/publicNo keypublicStats)GET /api/stats/public/api/statusNo keystatus)GET /api/status