API для Valve Left4Dead 2 Hong Kong Server (srcds1030-hkg1.141.233)
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1684712640,
"app": {
"id": 11,
"name": "Left 4 Dead 2",
"steam_id": 550,
"url": "left-4-dead-2"
},
"color": 0,
"connect": "103.28.54.212:27247",
"country": "HK",
"domain": null,
"game": 550,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 895267,
"ip": "103.28.54.212",
"language": "zh",
"last_update": 1792965348,
"map": "c8m1_apartment",
"maxplayers": 4,
"name": "Valve Left4Dead 2 Hong Kong Server (srcds1030-hkg1.141.233)",
"numplayers": 0,
"official": null,
"points": 30,
"port": 27247,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27247,
"request": "103.28.54.212:27247",
"secured": true,
"status": true,
"steam_id": "90295780529395717",
"version": "2.2.4.3",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Ha Kwai Chung",
"description": "",
"disabled_modules": [],
"gamemode": "Left 4 Dead 2",
"hidden": false,
"last_offline": 1790374916,
"last_online": 1792965348,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 4153,
"wipe_period": null,
"listentype": "d",
"environment": "l",
"a2s_protocol": 17,
"survivor_limit": "4",
"players_complete": true,
"director_afk_timeout": "45"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/895267");
$data = json_decode($json, true);
var_dump($data);