API для Valve Left4Dead Helsinki Server (srcds1010-hel-hetz.380.5)
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1753709488,
"app": {
"id": 18,
"name": "Left 4 Dead",
"steam_id": 500,
"url": "left-4-dead"
},
"color": 0,
"connect": "65.21.211.187:27019",
"country": "FI",
"domain": null,
"game": 500,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 9892488,
"ip": "65.21.211.187",
"language": "fi",
"last_update": 1790983014,
"map": "l4d_airport03_garage",
"maxplayers": 4,
"name": "Valve Left4Dead Helsinki Server (srcds1010-hel-hetz.380.5)",
"numplayers": 4,
"official": null,
"points": 92,
"port": 27019,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27019,
"request": "65.21.211.187:27019",
"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 - Expert",
"hidden": false,
"last_offline": 1779655410,
"last_online": 1790983014,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 4,
"wipe_period": null,
"nextlevel": "",
"listentype": "d",
"sv_alltalk": "1",
"environment": "l",
"a2s_protocol": 7,
"players_complete": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/9892488");
$data = json_decode($json, true);
var_dump($data);