API для UKR COOP L4D [no-steam]
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1783799634,
"app": {
"id": 18,
"name": "Left 4 Dead",
"steam_id": 500,
"url": "left-4-dead"
},
"color": 0,
"connect": "176.122.105.27:27015",
"country": "UA",
"domain": null,
"game": 500,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 12024875,
"ip": "176.122.105.27",
"language": "uk",
"last_update": 1794673544,
"map": "l4d_airport01_greenhouse",
"maxplayers": 8,
"name": "UKR COOP L4D [no-steam]",
"numplayers": 0,
"official": null,
"points": 30,
"port": 27015,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27015,
"request": "176.122.105.27:27015",
"secured": true,
"status": true,
"steam_id": "90297448875753502",
"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": 1794651318,
"last_online": 1794673544,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 304,
"wipe_period": null,
"os": "l",
"region": 255,
"product": "left4dead",
"gametype": "empty,addons,no-steam",
"dedicated": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/12024875");
$data = json_decode($json, true);
var_dump($data);