SPOTLIGHTDocs
APIStatusDashboard

Start

  • Overview
  • Getting started
  • Dashboard guide

Product

  • Profiles
  • Premium
  • Content creators
  • Widgets
  • Image host
  • Mobile app
  • Account & security

Creator Studio

  • Overview
  • Alerts
  • OBS widgets
  • Donate page
  • Payouts & fees

Discord bot

  • Overview
  • Commands
  • Web panel
  • Embeds & messages
  • Logging
  • Tickets & transcripts
  • Music
  • VoiceMaster
  • Applications & appeals
  • Linked Roles
  • RPG reference
  • Economy & levels
  • Moderation & safety
  • Server page & templates
  • Plans & billing

Developer API

  • Introduction
  • Game stats
  • Accounts & profiles
  • Webhooks
  • Public endpoints
  • API explorer & SDK

Help

  • Support

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-client

JavaScript 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-baby
  • api.valorant: rank, record, lastMatch, global, agents (each also as …Text for 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(), and api.request(id, params) for anything by its OpenAPI operation id.

Every endpoint#

The consoles call the real API from this page. Signed in, your own key fills in by itself; otherwise paste it once (it stays in this tab). Keys: Dashboard → API key.

VALORANT#

Rank, today's record, the last match, leaderboard and agents (HenrikDev data). Text for chat bots, or JSON.

GET/api/v/rankx-api-key
Current rank and RR. Example: Ascendant 2 (47 RR) (operation id valorantRank)
Try it
GET /api/v/rank?region=eu&platform=pc
GET/api/v/recordx-api-key
Today's wins and losses with the rank. Example: Gold 3 - Won 5 matches today (62.5%) (operation id valorantRecord)
Try it
GET /api/v/record?region=eu&platform=pc
GET/api/v/lastmatchx-api-key
The latest match: map, agent and K/D/A. (operation id valorantLastMatch)
Try it
GET /api/v/lastmatch?region=eu&platform=pc
GET/api/v/globalx-api-key
Rank with the leaderboard position. (operation id valorantGlobal)
Try it
GET /api/v/global?region=eu&platform=pc
GET/api/v/agentsx-api-key
The most played agents. (operation id valorantAgents)
Try it
GET /api/v/agents?region=eu&platform=pc

League of Legends#

Ranked tier and the last game (Riot data).

GET/api/lol/rankx-api-key
Ranked tier, division and LP. Example: Diamond II · 54 LP (operation id lolRank)
Try it
GET /api/lol/rank?region=euw
GET/api/lol/last-matchx-api-key
Champion, result and KDA of the latest game. (operation id lolLastMatch)
Try it
GET /api/lol/last-match?region=euw

FACEIT#

Level, ELO, stats and the last match for CS2 and more.

GET/api/faceit/profilex-api-key
FACEIT level and ELO. Example: Level 10 · 3200 ELO (operation id faceitProfile)
Try it
GET /api/faceit/profile?game=cs2
GET/api/faceit/statsx-api-key
K/D, win rate and matches. (operation id faceitStats)
Try it
GET /api/faceit/stats?game=cs2
GET/api/faceit/lastmatchx-api-key
Result, map, score and K/D/A of the latest match. (operation id faceitLastMatch)
Try it
GET /api/faceit/lastmatch?game=cs2

Accounts#

Your own stats and public profiles (an API key as a Bearer token).

GET/api/v1/meBearer key
Views, followers, reactions and link clicks, with the last 14 days per link. (operation id me)
Try it
GET /api/v1/me
GET/api/v1/users/{username}Bearer key
Any public profile. Private and hidden profiles answer 404. (operation id user)
Try it
GET /api/v1/users/xsaiian

Widgets and calendars#

Text widgets for chat bots and calendar files for countdowns and events.

GET/api/w/{widgetId}/textNo key
One line of text from a text widget, for chat bots. The id is in the widget builder. (operation id widgetText)
Try it
GET /api/w/abc123/text
GET/api/profile/{username}/countdown.icsNo key
The page's countdown as an .ics file. (operation id countdownIcs)
GET/api/profile/{username}/event.icsNo key
One of the page's events as an .ics file. (operation id eventIcs)

Spotlight#

Public numbers and the API's status.

GET/api/stats/publicNo key
Pages, views and files, plus the 10 most viewed public pages. Cached for a minute. (operation id publicStats)
Try it
GET /api/stats/public
GET/api/statusNo key
Whether the APIs are serving requests, and their average latency. (operation id status)
Try it
GET /api/status
← PreviousPublic endpointsNext →Support