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#
https://spotlight.baby| API | Paths | Key in | Returns |
|---|---|---|---|
| Game stats | /api/v/*, /api/lol/*, /api/faceit/* | x-api-key | text, or JSON with json=true |
| Accounts & profiles | /api/v1/* | Authorization: Bearer | JSON |
| Public | /api/stats/public, /api/status… | no key | JSON, 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 awarning 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®ion=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 · Free | per key | 100 per hour, 1000 per day |
| Game stats · Premium | per key | 500 per hour, 10000 per day |
| Accounts & profiles | per key | 120 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).
| 400 | bad request | A required parameter is missing or invalid. |
| 401 | api_key_required | Game stats without a key, after the grace period. Add x-api-key or ?api_key=. |
| 401 | unauthorized | No key, or the key is wrong. |
| 404 | not found | The player or profile doesn't exist, or the profile isn't public. |
| 429 | rate_limited | Too many requests for your plan. Slow down. |
| 5xx | server | Something failed on our side or at the game's API. Retry later. |
{
"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.