Download OpenAPI specification:
The main game API for Sniperz.io
returns online game servers
| filter required | string Examples:
which type of servers to return |
[- {
- "uuid": "4fb7ef4a-ad5c-4ec1-bbb0-6cb1ea5af3e5",
- "population": 5,
- "max_popuation": 81,
- "game_type": "FFA",
- "country_code": "PK",
- "city": "Karachi",
- "ip": "us-central.sniperz.io"
}
]register a new server to the API
server id and registration key
| uuid | string (uuid4) |
| registration_key | string (uuid4) |
{- "uuid": "4fb7ef4a-ad5c-4ec1-bbb0-6cb1ea5af3e5",
- "registration_key": "4fb7ef4a-ad5c-4ec1-bbb0-6cb1ea5af3e5"
}{- "heartbeat_interval": 15000
}update server information
server object with registration key
| registration_key | string (uuid4) |
object (Server) |
{- "registration_key": "4fb7ef4a-ad5c-4ec1-bbb0-6cb1ea5af3e5",
- "server": {
- "uuid": "4fb7ef4a-ad5c-4ec1-bbb0-6cb1ea5af3e5",
- "population": 5,
- "max_popuation": 81,
- "game_type": "FFA",
- "country_code": "PK",
- "city": "Karachi",
- "ip": "us-central.sniperz.io"
}
}