Your server's data, anywhere you build.
Read-only access to what nyx already knows about the servers you own: statistics, leaderboards, ticket analytics and more, as plain JSON.
Base URL https://api.nyx.cool/v1
$ curl https://api.nyx.cool/v1/guilds \
-H "Authorization: Bearer nyx_live_..."{
"guilds": [
{
"id": "1467281625954914369",
"name": "Zeta Studio",
"memberCount": 1284,
"premiumActive": true
}
]
}Start here
How it fits together
Every endpoint answers JSON over HTTPS from https://api.nyx.cool/v1. Breaking changes mean a new version prefix, never a change to this one. The API is read-only by design: it can show what nyx knows, and it can never touch your server.
Access follows ownership. A key reaches the servers its creator owns where nyx+ is active, and endpoints backed by a plugin answer only while that plugin is on. The details are in Authentication.
There's a machine-readable description at /openapi.json, written to OpenAPI 3.1 and generated from the same source these pages show, so the two can't disagree. Point a client generator at it instead of writing request code by hand.