Use https://open.mp/servers and https://api.open.mp/servers now
https://github.com/openmultiplayer/web/
A SA:MP server listing API service. Anyone can POST a game server address which is added to a periodically queried queue and up-to-date information is provided as a JSON API.
This is an automatically generated documentation page for the v2 API endpoints.
POST
: /v2/server/{address}
Add a server to the index using just the IP address. This endpoint requires no body and no additional information. The IP address is added to an internal queue and will be queried periodically for information via the legacy server API. This allows any server to be added with the basic information provided by SA:MP itself.
POST
: /v2/server
Provide additional information for a server such as a description and a banner image. This requires a body to be posted which contains information for the server.
{
"core": {
"ip": "127.0.0.1:7777",
"hn": "SA-MP SERVER CLAN tdm [NGRP] [GF EDIT] [Y_INI] [RUS] [BASIC] [GODFATHER] [REFUNDING] [STRCMP]",
"pc": 32,
"pm": 128,
"gm": "Grand Larceny",
"la": "English",
"pa": false,
"vn": "0.3.7-R2"
},
"ru": {
"lagcomp": "On",
"mapname": "San Andreas",
"version": "0.3.7-R2",
"weather": "10",
"weburl": "www.sa-mp.com",
"worldtime": "10:00"
},
"description": "An awesome server! Come and play with us.",
"banner": "https://i.imgur.com/Juaezhv.jpg",
"active": true
}
GET
: /v2/server/{address}
Returns a full server object using the specified address.
{
"core": {
"ip": "127.0.0.1:7777",
"hn": "SA-MP SERVER CLAN tdm [NGRP] [GF EDIT] [Y_INI] [RUS] [BASIC] [GODFATHER] [REFUNDING] [STRCMP]",
"pc": 32,
"pm": 128,
"gm": "Grand Larceny",
"la": "English",
"pa": false,
"vn": "0.3.7-R2"
},
"ru": {
"lagcomp": "On",
"mapname": "San Andreas",
"version": "0.3.7-R2",
"weather": "10",
"weburl": "www.sa-mp.com",
"worldtime": "10:00"
},
"description": "An awesome server! Come and play with us.",
"banner": "https://i.imgur.com/Juaezhv.jpg",
"active": true
}
GET
: /v2/servers
Returns a list of servers based on the specified query parameters. Supported
query parameters are: page
sort
by
filters
.
Example: by=player&filters=full&filters=password&page=2&sort=asc
[
{
"ip": "127.0.0.1:7777",
"hn": "SA-MP SERVER CLAN tdm [NGRP] [GF EDIT] [Y_INI] [RUS] [BASIC] [GODFATHER] [REFUNDING] [STRCMP]",
"pc": 32,
"pm": 128,
"gm": "Grand Larceny",
"la": "English",
"pa": false,
"vn": "0.3.7-R2"
},
{
"ip": "127.0.0.1:7777",
"hn": "SA-MP SERVER CLAN tdm [NGRP] [GF EDIT] [Y_INI] [RUS] [BASIC] [GODFATHER] [REFUNDING] [STRCMP]",
"pc": 32,
"pm": 128,
"gm": "Grand Larceny",
"la": "English",
"pa": false,
"vn": "0.3.7-R2"
},
{
"ip": "127.0.0.1:7777",
"hn": "SA-MP SERVER CLAN tdm [NGRP] [GF EDIT] [Y_INI] [RUS] [BASIC] [GODFATHER] [REFUNDING] [STRCMP]",
"pc": 32,
"pm": 128,
"gm": "Grand Larceny",
"la": "English",
"pa": false,
"vn": "0.3.7-R2"
}
]
GET
: /v2/stats
Returns a some statistics of the server index.
{
"servers": 1000,
"players": 10000,
"players_per_server": 10
}