API для Valve Left4Dead Australia Server (srcds1017-syd1.171.34)
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1787899611,
"app": {
"id": 18,
"name": "Left 4 Dead",
"steam_id": 500,
"url": "left-4-dead"
},
"color": 0,
"connect": "103.10.125.37:27048",
"country": "AU",
"domain": null,
"game": 500,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 14170683,
"ip": "103.10.125.37",
"language": "en",
"last_update": 1794675366,
"map": "l4d_airport03_garage",
"maxplayers": 4,
"name": "Valve Left4Dead Australia Server (srcds1017-syd1.171.34)",
"numplayers": 0,
"official": null,
"points": 30,
"port": 27048,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27048,
"request": "103.10.125.37:27048",
"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 - Survival",
"hidden": false,
"last_offline": 1793656820,
"last_online": 1794675366,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 338,
"wipe_period": null,
"coop": "0",
"sv_tags": "",
"sv_cheats": "0",
"deathmatch": "1",
"listentype": "d",
"sv_contact": "",
"environment": "l",
"sv_password": "0",
"tv_password": "0",
"a2s_protocol": 7,
"sv_steamgroup": "",
"survivor_limit": "4",
"sv_voiceenable": "1",
"players_complete": true,
"tv_relaypassword": "0",
"director_afk_timeout": "45"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/14170683");
$data = json_decode($json, true);
var_dump($data);