API для Valve Left4Dead Peru Server (srcds1014-lim1.251.332)
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1787867208,
"app": {
"id": 18,
"name": "Left 4 Dead",
"steam_id": 500,
"url": "left-4-dead"
},
"color": 0,
"connect": "155.133.244.69:27346",
"country": "PE",
"domain": null,
"game": 500,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 14164166,
"ip": "155.133.244.69",
"language": "es",
"last_update": 1790973973,
"map": "l4d_hospital01_apartment",
"maxplayers": 4,
"name": "Valve Left4Dead Peru Server (srcds1014-lim1.251.332)",
"numplayers": 0,
"official": null,
"points": 30,
"port": 27346,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27346,
"request": "155.133.244.69:27346",
"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": 1790777804,
"last_online": 1790973973,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 523,
"wipe_period": null,
"listentype": "d",
"environment": "l",
"a2s_protocol": 7,
"survivor_limit": "4",
"players_complete": true,
"director_afk_timeout": "45"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/14164166");
$data = json_decode($json, true);
var_dump($data);