Интерфейс предназначен для проверки наличия вашего сервера в списке мастер-сервера Valve
Примеры API:
http://api.steampowered.com/ISteamApps/GetServersAtAddress/v0001?addr=208.64.202.209&format=json
http://api.steampowered.com/ISteamApps/GetServersAtAddress/v0001?addr=208.64.202.209&format=xml
Если мастер-сервер забанил ваш сервер, в поле reject вы увидите причину
Слишком частый запуск webApi нежелателен (чаще 1 раза в 10 минут)
Уточнение для непонятливых:
вверху есть две ссылки (URL), в эти ссылки нужно вставить свой IP, в ответ вам мастер-сервер вернет список из всех ваших серверов, числящихся по этому IP
Приведены две ссылки, одна отвечает за возврат результата в json, вторая в xml
Результат запроса:
Оффтоп
Примеры API:
http://api.steampowered.com/ISteamApps/GetServersAtAddress/v0001?addr=208.64.202.209&format=json
http://api.steampowered.com/ISteamApps/GetServersAtAddress/v0001?addr=208.64.202.209&format=xml
Если мастер-сервер забанил ваш сервер, в поле reject вы увидите причину
Слишком частый запуск webApi нежелателен (чаще 1 раза в 10 минут)
Уточнение для непонятливых:
вверху есть две ссылки (URL), в эти ссылки нужно вставить свой IP, в ответ вам мастер-сервер вернет список из всех ваших серверов, числящихся по этому IP
Приведены две ссылки, одна отвечает за возврат результата в json, вторая в xml
Результат запроса:
Оффтоп
{
"response": {
"success": true,
"servers": [
{
"addr": "208.64.202.209:27022",
"gmsindex": 65534,
"appid": 440,
"gamedir": "tf",
"region": 255,
"secure": true,
"lan": false,
"gameport": 27022,
"specport": 0
},
{
"addr": "208.64.202.209:27016",
"gmsindex": 65534,
"appid": 440,
"gamedir": "tf",
"region": 255,
"secure": true,
"lan": false,
"gameport": 27016,
"specport": 0
},
{
"addr": "208.64.202.209:27027",
"gmsindex": 65534,
"appid": 440,
"gamedir": "tf",
"region": 255,
"secure": true,
"lan": false,
"gameport": 27027,
"specport": 0
},
{
"addr": "208.64.202.209:27015",
"gmsindex": 65534,
"appid": 440,
"gamedir": "tf",
"region": 255,
"secure": true,
"lan": false,
"gameport": 27015,
"specport": 0
},
{
"addr": "208.64.202.209:27018",
"gmsindex": 65534,
"appid": 440,
"gamedir": "tf",
"region": 255,
"secure": true,
"lan": false,
"gameport": 27018,
"specport": 0
},
{
"addr": "208.64.202.209:27023",
"gmsindex": 65534,
"appid": 440,
"gamedir": "tf",
"region": 255,
"secure": true,
"lan": false,
"gameport": 27023,
"specport": 0
},
{
"addr": "208.64.202.209:27019",
"gmsindex": 65534,
"appid": 440,
"gamedir": "tf",
"region": 255,
"secure": true,
"lan": false,
"gameport": 27019,
"specport": 0
},
{
"addr": "208.64.202.209:27026",
"gmsindex": 65534,
"appid": 440,
"gamedir": "tf",
"region": 255,
"secure": true,
"lan": false,
"gameport": 27026,
"specport": 0
},
{
"addr": "208.64.202.209:27020",
"gmsindex": 65534,
"appid": 440,
"gamedir": "tf",
"region": 255,
"secure": true,
"lan": false,
"gameport": 27020,
"specport": 0
},
{
"addr": "208.64.202.209:27017",
"gmsindex": 65534,
"appid": 440,
"gamedir": "tf",
"region": 255,
"secure": true,
"lan": false,
"gameport": 27017,
"specport": 0
},
{
"addr": "208.64.202.209:27024",
"gmsindex": 65534,
"appid": 440,
"gamedir": "tf",
"region": 255,
"secure": true,
"lan": false,
"gameport": 27024,
"specport": 0
},
{
"addr": "208.64.202.209:27025",
"gmsindex": 65534,
"appid": 440,
"gamedir": "tf",
"region": 255,
"secure": true,
"lan": false,
"gameport": 27025,
"specport": 0
},
{
"addr": "208.64.202.209:27021",
"gmsindex": 65534,
"appid": 440,
"gamedir": "tf",
"region": 255,
"secure": true,
"lan": false,
"gameport": 27021,
"specport": 0
}
]
}
}
"response": {
"success": true,
"servers": [
{
"addr": "208.64.202.209:27022",
"gmsindex": 65534,
"appid": 440,
"gamedir": "tf",
"region": 255,
"secure": true,
"lan": false,
"gameport": 27022,
"specport": 0
},
{
"addr": "208.64.202.209:27016",
"gmsindex": 65534,
"appid": 440,
"gamedir": "tf",
"region": 255,
"secure": true,
"lan": false,
"gameport": 27016,
"specport": 0
},
{
"addr": "208.64.202.209:27027",
"gmsindex": 65534,
"appid": 440,
"gamedir": "tf",
"region": 255,
"secure": true,
"lan": false,
"gameport": 27027,
"specport": 0
},
{
"addr": "208.64.202.209:27015",
"gmsindex": 65534,
"appid": 440,
"gamedir": "tf",
"region": 255,
"secure": true,
"lan": false,
"gameport": 27015,
"specport": 0
},
{
"addr": "208.64.202.209:27018",
"gmsindex": 65534,
"appid": 440,
"gamedir": "tf",
"region": 255,
"secure": true,
"lan": false,
"gameport": 27018,
"specport": 0
},
{
"addr": "208.64.202.209:27023",
"gmsindex": 65534,
"appid": 440,
"gamedir": "tf",
"region": 255,
"secure": true,
"lan": false,
"gameport": 27023,
"specport": 0
},
{
"addr": "208.64.202.209:27019",
"gmsindex": 65534,
"appid": 440,
"gamedir": "tf",
"region": 255,
"secure": true,
"lan": false,
"gameport": 27019,
"specport": 0
},
{
"addr": "208.64.202.209:27026",
"gmsindex": 65534,
"appid": 440,
"gamedir": "tf",
"region": 255,
"secure": true,
"lan": false,
"gameport": 27026,
"specport": 0
},
{
"addr": "208.64.202.209:27020",
"gmsindex": 65534,
"appid": 440,
"gamedir": "tf",
"region": 255,
"secure": true,
"lan": false,
"gameport": 27020,
"specport": 0
},
{
"addr": "208.64.202.209:27017",
"gmsindex": 65534,
"appid": 440,
"gamedir": "tf",
"region": 255,
"secure": true,
"lan": false,
"gameport": 27017,
"specport": 0
},
{
"addr": "208.64.202.209:27024",
"gmsindex": 65534,
"appid": 440,
"gamedir": "tf",
"region": 255,
"secure": true,
"lan": false,
"gameport": 27024,
"specport": 0
},
{
"addr": "208.64.202.209:27025",
"gmsindex": 65534,
"appid": 440,
"gamedir": "tf",
"region": 255,
"secure": true,
"lan": false,
"gameport": 27025,
"specport": 0
},
{
"addr": "208.64.202.209:27021",
"gmsindex": 65534,
"appid": 440,
"gamedir": "tf",
"region": 255,
"secure": true,
"lan": false,
"gameport": 27021,
"specport": 0
}
]
}
}
Последнее редактирование: