API для Valve Left4Dead 2 Frankfurt Server (srcds1002-fra-dpkt.429.102)
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1792186549,
"app": {
"id": 11,
"name": "Left 4 Dead 2",
"steam_id": 550,
"url": "left-4-dead-2"
},
"color": 0,
"connect": "89.222.108.178:27116",
"country": "DE",
"domain": null,
"game": 550,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 18457755,
"ip": "89.222.108.178",
"language": "de",
"last_update": 1794683609,
"map": "c10m1_caves",
"maxplayers": 4,
"name": "Valve Left4Dead 2 Frankfurt Server (srcds1002-fra-dpkt.429.102)",
"numplayers": 0,
"official": null,
"points": 30,
"port": 27116,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27116,
"request": "89.222.108.178:27116",
"secured": true,
"status": true,
"steam_id": "90297471021328385",
"version": "2.2.4.3",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Франкфурт-на-Майне",
"description": null,
"disabled_modules": [],
"gamemode": "Left 4 Dead 2",
"hidden": false,
"last_offline": null,
"last_online": 1794683609,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 16254,
"wipe_period": null,
"nextlevel": "",
"listentype": "d",
"environment": "l",
"a2s_protocol": 17,
"survivor_limit": "4",
"players_complete": true,
"director_afk_timeout": "45"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/18457755");
$data = json_decode($json, true);
var_dump($data);