API для zEn's Match
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1790314384,
"app": {
"id": 138,
"name": "Quake Live",
"steam_id": 282440,
"url": "quake-live"
},
"color": 0,
"connect": "124.126.138.71:27960",
"country": "CN",
"domain": null,
"game": 282440,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 17093899,
"ip": "124.126.138.71",
"language": "zh",
"last_update": 1790487311,
"map": "campgrounds",
"maxplayers": 10,
"name": "zEn's Match",
"numplayers": 0,
"official": null,
"points": 0,
"port": 27960,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27960,
"request": "124.126.138.71:27960",
"secured": true,
"status": false,
"steam_id": "90293396134802463",
"version": "1069",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Пекин",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1790487311,
"last_online": 1790332985,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 3682,
"wipe_period": null,
"os": "w",
"region": -1,
"product": "Quake Live",
"gametype": "ffa",
"dedicated": false
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/17093899");
$data = json_decode($json, true);
var_dump($data);