Developers
Status & public API
Open endpoints you can read from your own site or bot.
| Endpoint | Returns |
|---|---|
GET /api/public/health | Gateway, database, cache, commands and music response times, shards, uptime and recent samples |
GET /api/public/stats | Server and member counts, shards and the biggest servers rival is in |
No key or sign-in is needed, and both can be read from another site: 30 requests a minute per address. An agent or script can get a free, anonymous agent key with POST /agent/auth and send it as Authorization: Bearer <key> for 300 a minute. The OpenAPI description is at /openapi.json, the API catalog at /.well-known/api-catalog, and /auth.md says what agents can and can't do. Any page can be fetched as markdown by sending Accept: text/markdown.
Example
curl https://rival.cx/api/public/health
{
"ok": true,
"ws": 41,
"services": { "gateway": { "ok": true, "ms": 41 }, "database": { "ok": true, "ms": 12 } },
"servers": 1204,
"history": [[1763164800000, 41, 12, 3], …]
}Responses are cached for about 20 seconds. Please don't poll faster than once a minute.
Answered questions
Still stuck? Ask on the support forum. Answers to common questions are added here.