API для Z World 2
JSON для программ, сайтов и прочего
text
json
{
"response": {
"os": "l",
"region": -1,
"product": "252490",
"gametype": "mp20,cp0,ptrak,qp0,$r?,v2633,^z,^y,^v,born1787955861,gmvanilla,cs162544,ts8",
"dedicated": true,
"steam_id": "90291767577510921",
"domain": null,
"id": 14191004,
"ip": "54.37.128.65",
"port": 28045,
"query": 28044,
"project_id": null,
"color": 0,
"city": "Warsaw",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1787985266,
"last_online": 1787998694,
"icon": null,
"name": "Z World 2",
"connect": "54.37.128.65:28045",
"request": "54.37.128.65:28044",
"map": "Procedural Map",
"gamemode": null,
"version": "2633",
"numplayers": 0,
"maxplayers": 20,
"bots": 0,
"secured": true,
"private": null,
"country": "PL",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1787956313,
"last_update": 1787998694,
"ban_reason": null,
"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": 11878,
"language": "pl",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": [],
"map_url": null
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/14191004");
$data = json_decode($json, true);
var_dump($data);