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

Introduction

Spotlight has two HTTP APIs: game stats for overlays and chat bots, and a JSON API for your account and public profiles.

Base URL#

Base URL
https://spotlight.baby
APIPathsKey inReturns
Game stats/api/v/*, /api/lol/*, /api/faceit/*x-api-keytext, or JSON with json=true
Accounts & profiles/api/v1/*Authorization: BearerJSON
Public/api/stats/public, /api/status…no keyJSON, text, calendar

Authentication#

Every account has one API key: Dashboard → API key. It works for both APIs, and the game stats API needs it: a free key is all it takes.

Keys are required for game stats

Calls without a key get a short grace period first (5 requests a minute, with a warning field in JSON and an X-Spotlight-Warning header), then 401 api_key_required. You never paste the key on Spotlight itself: your widgets carry it on the server, and the "Try it" boxes in these docs fill it in when you're signed in.
curl "https://spotlight.baby/api/v/rank?name=Player&tag=EUW&region=eu" \
  -H "x-api-key: YOUR_KEY"

Keep the key on your server

Anyone with your key can use your rate limit and read your account stats. Don't put it in front-end code or public repositories. If it leaks, create a new one; the old one stops working at once.

Rate limits#

Game stats · Freeper key100 per hour, 1000 per day
Game stats · Premiumper key500 per hour, 10000 per day
Accounts & profilesper key120 per minute

Over the limit you get 429. Wait and try again; widgets and chat commands already cache results, so normal use stays well under the limits.

Errors#

Errors come back as JSON with an error field (game endpoints answer in text unless you ask for JSON).

400bad requestA required parameter is missing or invalid.
401api_key_requiredGame stats without a key, after the grace period. Add x-api-key or ?api_key=.
401unauthorizedNo key, or the key is wrong.
404not foundThe player or profile doesn't exist, or the profile isn't public.
429rate_limitedToo many requests for your plan. Slow down.
5xxserverSomething failed on our side or at the game's API. Retry later.
Error
{
  "error": "rate_limited"
}

Formats#

Text or JSON#

Game endpoints answer with one line of text, ready for chat bots. Add json=true for all fields as JSON.

Your own text#

Pass format with variables in square brackets, e.g. format=[rank] ([rr] RR). Each endpoint lists its variables in the game stats reference.

Game stats→

Valorant, League of Legends, FACEIT.

Accounts & profiles→

/api/v1/me and /api/v1/users/{username}.

Webhooks→

Events pushed to your server.

Public endpoints→

Stats, status, embeds, calendars.

← PreviousPlans & billingNext →Game stats