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.
Plugin endpoints (under /api/plugin/*) use a separate X-Server-Token header with per-server plugin tokens (mb_srv_...), generated in your server settings.
Unauthenticated endpoints. No API key required.
/api/public/statsPlatform-wide statistics (active servers, players online, tracked players, network bans, reputation flags, communities).
{
"active_servers": 10,
"players_online": 100,
"total_players": 100000,
"total_bans": 100,
"total_flags": 10000,
"total_communities": 10,
"total_servers": 20
}curl https://metabans.com/api/public/stats/api/public/serversPaginated list of public servers with filters.
searchgame_typestatusregionsortcurl "https://metabans.com/api/public/servers?game_type=rust&status=online"/api/public/servers/{id}Single server details with latest stats.
curl https://metabans.com/api/public/servers/{id}/v1/public/bansPublic global ban list with player info. Paginated.
pageper_pagecurl https://api.metabans.com/v1/public/bans