API для SST DM Novosibirsk
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1767114162,
"app": {
"id": 95,
"name": "Serious Sam HD: The Second Encounter",
"steam_id": 41010,
"url": "serious-sam-hd-the-second-encounter"
},
"color": 0,
"connect": "185.135.81.158:27015",
"country": "RU",
"domain": null,
"game": 41010,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 10824670,
"ip": "185.135.81.158",
"language": "ru",
"last_update": 1794739584,
"map": "MedievalRage",
"maxplayers": 4,
"name": "SST DM Novosibirsk",
"numplayers": 0,
"official": null,
"points": 30,
"port": 27015,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27016,
"request": "185.135.81.158:27016",
"secured": true,
"status": true,
"steam_id": "90293764741080079",
"version": "0.1.200.142",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Кудряшовский",
"description": null,
"disabled_modules": [],
"gamemode": "Serious Sam HD : The Second Encounter",
"hidden": false,
"last_offline": 1777875787,
"last_online": 1794739584,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 8,
"wipe_period": null,
"listentype": "d",
"environment": "w",
"a2s_protocol": 17,
"players_complete": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/10824670");
$data = json_decode($json, true);
var_dump($data);