API для ZE Test (BlueMan)
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794766964,
"app": {
"id": 24,
"name": "Team Fortress 2",
"steam_id": 440,
"url": "team-fortress-2"
},
"color": 0,
"connect": "84.146.164.90:27017",
"country": "DE",
"domain": null,
"game": 440,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 20160142,
"ip": "84.146.164.90",
"language": "de",
"last_update": 1794783964,
"map": "ze_hauntedforest_m2_steeple",
"maxplayers": 50,
"name": "ZE Test (BlueMan)",
"numplayers": 0,
"official": null,
"points": 0,
"port": 27017,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27017,
"request": "84.146.164.90:27017",
"secured": false,
"status": false,
"steam_id": "90297535450549257",
"version": "11191711",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Шверин",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1794783964,
"last_online": 1794767574,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 14257,
"wipe_period": null,
"os": "w",
"region": 255,
"product": "tf",
"gametype": "bots,increased_maxplayers,nocrits",
"dedicated": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/20160142");
$data = json_decode($json, true);
var_dump($data);