API для Wenhaoli L4D2
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1792068913,
"app": {
"id": 11,
"name": "Left 4 Dead 2",
"steam_id": 550,
"url": "left-4-dead-2"
},
"color": 0,
"connect": "124.115.173.158:27015",
"country": "CN",
"domain": null,
"game": 550,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 18286432,
"ip": "124.115.173.158",
"language": "zh",
"last_update": 1793376263,
"map": "srocchurch",
"maxplayers": 8,
"name": "Wenhaoli L4D2",
"numplayers": 0,
"official": null,
"points": 0,
"port": 27015,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27015,
"request": "124.115.173.158:27015",
"secured": true,
"status": false,
"steam_id": "90296012740425736",
"version": "2.2.4.3",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Liuxiang",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1793376263,
"last_online": 1793343085,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 21686,
"wipe_period": null,
"os": "l",
"region": 255,
"product": "left4dead2",
"gametype": "coop,empty,secure",
"dedicated": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/18286432");
$data = json_decode($json, true);
var_dump($data);