Manage servers, players, bans, and infractions programmatically via the Metabans REST API.
https://api.metabans.com/v1Authenticate with the API using an API Key — pass your key via the Authorization header:
Authorization: Bearer mb_your_api_key_hereAPI keys are created in your panel at /settings/api-keys. Each key has scoped abilities (e.g. servers:read, bans:write).
Public endpoints (under /api/public/*) require no authentication but are rate limited to 60 requests/minute.
Every /v1 endpoint is described by the OpenAPI document at https://api.metabans.com/v1/openapi.json — import it into Postman, Insomnia or a client generator.
Plugin endpoints (under /plugin/*) use a separate X-Server-Token header with per-server plugin tokens (mb_srv_...), generated in your server settings.
/v1/public/bansNo key neededActive bans that communities have chosen to publish, newest first.
Authentication: none (public, cached).
searchquery · string | nullgame_typequery · string | nullcategoryquery · string | nullreason_categoryquery · string | nullreasonquery · string | nullcommunityquery · string | nullstatusquery · string | nullactiveliftedexpiredallpagequery · integerper_pagequery · integercurl "https://api.metabans.com/v1/public/bans" \ -H "Accept: application/json"
/v1/public/serversNo key neededServers listed in the public directory with their latest status.
Authentication: none (public, cached).
game_typequery · stringrustminecraftcod4cs2ark7dtdbf2bc2vubf3bf4bfhsquaddayzwardogsstatusquery · stringonlineofflineconnectingper_pagequery · integercurl "https://api.metabans.com/v1/public/servers" \ -H "Accept: application/json"
/v1/public/servers/{id}No key neededOne public server with its latest status, location and wipe schedule.
Authentication: none (public, cached).
idpath · stringRequiredcurl "https://api.metabans.com/v1/public/servers/{id}" \
-H "Accept: application/json"/v1/public/healthNo key neededCounts of public servers by state (online, offline, stale) — they sum to total_servers.
Authentication: none (public, cached).
curl "https://api.metabans.com/v1/public/health" \ -H "Accept: application/json"
/v1/public/communitiesNo key neededFind a community by name or slug.
Authentication: none (public, cached).
qquery · stringRequiredcurl "https://api.metabans.com/v1/public/communities" \ -H "Accept: application/json"
/v1/public/communities/{slug}No key neededOne community by slug.
Authentication: none (public, cached).
slugpath · stringRequiredcurl "https://api.metabans.com/v1/public/communities/{slug}" \
-H "Accept: application/json"