Left 4 Dead 2
API для BrainhunterZ Vanilla
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11491809json
{
"response": {
"steam_id": "90285619985764381",
"domain": null,
"id": 11491809,
"ip": "193.30.250.107",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Ćuprija",
"description": null,
"game": 550,
"owner": 191882,
"boosts": 1,
"last_offline": 1778500936,
"score": 0,
"last_online": 1778505619,
"icon": null,
"name": "BrainhunterZ Vanilla",
"connect": "193.30.250.107:27015",
"request": "193.30.250.107:27015",
"map": "c2m1_highway",
"gamemode": "Left 4 Dead 2",
"version": "2.2.4.3",
"numplayers": 0,
"maxplayers": 4,
"bots": 0,
"secured": true,
"private": false,
"country": "RS",
"status": true,
"votes": 1,
"points": 61,
"add_date": 1777587235,
"last_update": 1778505619,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 738,
"language": "sr",
"parked": false,
"app": {
"id": 11,
"steam_id": 550,
"name": "Left 4 Dead 2",
"url": "left-4-dead-2"
},
"server_owner": {
"username": "spacecube01",
"avatar": "no.jpg",
"last_online": 1778278782
},
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11491809");
$data = json_decode($json, true);
var_dump($data);