Эта страница ещё не переведена на русский. Показана английская версия.
Platform API
Base URL: https://api.fivemobile.online. JSON responses.
List servers (ranking)
GET /v1/servidores?idioma=en
idioma is optional (ru, pt, en, id, es). Order: online first, then players, then votes.
{
"servidores": [
{
"slug": "my-server",
"nome": "My RP Server",
"idioma": "en",
"tags": ["rp"],
"online": true,
"jogadores": 42,
"maxJogadores": 128,
"picoJogadores": 97,
"votos": 0
}
]
}
One server
GET /v1/servidores/{slug}
Heartbeat
Used by the fivemobile_plataforma resource; you only need this if you write your own integration.
POST /v1/servidores/sinal
Authorization: Bearer fm_srv_...
Content-Type: application/json
{ "jogadores": 42, "maxJogadores": 128, "porta": 22030, "versao": "1.0.0" }
Response: { "ok": true, "proximoEm": 30 }: send the next heartbeat within proximoEm seconds. After 90 seconds without one, the server shows as offline.
| Code | Error | Reason |
|---|---|---|
| 401 | chave_invalida |
missing or wrong key |
| 403 | servidor_pendente / servidor_suspenso |
server not approved |
| 400 | — | malformed body |
Coming soon
Player login, entry tickets (only authenticated players can join platform servers) and the server store API.