API для Valve Left4Dead Frankfurt Server (srcds1001-fra-dpkt.429.159)
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1792186719,
"app": {
"id": 18,
"name": "Left 4 Dead",
"steam_id": 500,
"url": "left-4-dead"
},
"color": 0,
"connect": "89.222.108.177:27173",
"country": "DE",
"domain": null,
"game": 500,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 18458209,
"ip": "89.222.108.177",
"language": "de",
"last_update": 1794691525,
"map": "l4d_garage01_alleys",
"maxplayers": 4,
"name": "Valve Left4Dead Frankfurt Server (srcds1001-fra-dpkt.429.159)",
"numplayers": 4,
"official": null,
"points": 90,
"port": 27173,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27173,
"request": "89.222.108.177:27173",
"secured": true,
"status": true,
"steam_id": null,
"version": "1.0.4.5",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Франкфурт-на-Майне",
"description": null,
"disabled_modules": [],
"gamemode": "L4D - Co-op - Normal",
"hidden": false,
"last_offline": 1792187860,
"last_online": 1794691525,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 17,
"wipe_period": null,
"listentype": "d",
"environment": "l",
"a2s_protocol": 7,
"players_complete": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/18458209");
$data = json_decode($json, true);
var_dump($data);