API для *** IDLE-2 *** idle.msk.ru ***
JSON для программ, сайтов и прочего
text
json
{
"response": {
"dedicated": true,
"gametype": "IDLE,achievement,alltalk,increased_maxplayers,nocrits,taunt",
"os": "w",
"product": "tf",
"region": 3,
"steam_id": "90290343693256705",
"domain": null,
"id": 13500774,
"ip": "150.241.101.218",
"port": 27025,
"query": 27025,
"project_id": null,
"color": 0,
"city": "Frankfurt Am Main",
"description": null,
"game": 440,
"owner": null,
"boosts": 1,
"last_offline": 1786453440,
"last_online": 1786083600,
"icon": null,
"name": "*** IDLE-2 *** idle.msk.ru ***",
"connect": "150.241.101.218:27025",
"request": "150.241.101.218:27025",
"map": "idle_servers_v79_zima",
"gamemode": null,
"version": "10828683",
"numplayers": 0,
"maxplayers": 64,
"bots": 0,
"secured": true,
"private": null,
"country": "DE",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1786056212,
"last_update": 1786453440,
"ban_reason": null,
"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": 11091,
"language": "de",
"parked": false,
"app": {
"id": 24,
"steam_id": 440,
"name": "Team Fortress 2",
"url": "team-fortress-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": [],
"map_url": null
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/13500774");
$data = json_decode($json, true);
var_dump($data);