Developer API
Public endpoints
Things anyone can fetch without a key: site numbers, status, widget text, embeddable profile cards and calendar files.
Site numbers#
GET
/api/stats/publicNo keyPages, views and files, plus the 10 most viewed public pages. Cached for a minute.
Response
| pages | number | Pages created |
| views | number | Profile views, all time |
| files | number | Files hosted |
| top[] | object[] | username, displayName, avatar, accent, views |
Try itLive, no key needed
GET /api/stats/publicStatus#
GET
/api/statusNo keyWhether the APIs are serving requests, and their average latency.
Response
| available | boolean | true when requests are being served |
| totalRequests | number | Requests counted in the current window |
| avgLatencyMs | number | null | Average response time |
Try it
GET /api/statusWidget text#
GET
/api/w/{widgetId}/textNo keyOne line of text from your text widget, for chat bots. The widget id is in the builder.
Embeds#
Show your profile card on another website:
HTML
<iframe src="https://spotlight.baby/embed/YOUR_NAME"
width="400" height="520" style="border:0;border-radius:20px"
loading="lazy" title="My Spotlight"></iframe>Every page also has a link preview image at /api/og/profile/NAME, used automatically by Discord, X and others.
Calendar files#
GET
/api/profile/{username}/countdown.icsNo keyThe page's countdown as a calendar event.
GET
/api/profile/{username}/event.ics?id={eventId}No keyOne of the page's events (streams, tournaments, releases).
App manifest#
GET
/manifest.webmanifestNo keyThe installable app's manifest: name, icons and shortcuts. See Mobile app.