API для -{ASW}-V8s_Round5
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": "90285817797137414",
"domain": null,
"id": 9731797,
"ip": "221.121.148.171",
"port": 44297,
"query": 44299,
"color": 0,
"city": "Sydney",
"description": null,
"game": 365960,
"owner": null,
"boosts": 1,
"last_offline": 1779514416,
"last_online": 1780122020,
"icon": null,
"name": "-{ASW}-V8s_Round5",
"connect": "221.121.148.171:44297",
"request": "221.121.148.171:44299",
"map": "Symmons Plains Raceway",
"gamemode": "rFactor 2",
"version": "11134",
"numplayers": 7,
"maxplayers": 46,
"bots": 0,
"secured": false,
"private": false,
"country": "AU",
"status": true,
"votes": 0,
"points": 62,
"add_date": 1752145591,
"last_update": 1780122020,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 6,
"language": "en",
"parked": false,
"app": {
"id": 146,
"steam_id": 365960,
"name": "rFactor 2",
"url": "rfactor-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/9731797");
$data = json_decode($json, true);
var_dump($data);