API для Max
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": "90288753760311325",
"domain": null,
"id": 12260827,
"ip": "109.238.108.172",
"port": 42805,
"query": 27016,
"project_id": null,
"color": 0,
"city": "Velikiye Luki",
"description": null,
"game": 219990,
"owner": null,
"boosts": 1,
"last_offline": 1784087522,
"last_online": 1783864438,
"icon": null,
"name": "Max",
"connect": "109.238.108.172:42805",
"request": "109.238.108.172:27016",
"map": "maps/survivalworld_c.map",
"gamemode": null,
"version": "1.0.0.0",
"numplayers": 0,
"maxplayers": 2,
"bots": 0,
"secured": false,
"private": null,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1783864443,
"last_update": 1784087522,
"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": 7318,
"language": "ru",
"parked": false,
"app": {
"id": 101,
"steam_id": 219990,
"name": "Grim Dawn",
"url": "grim-dawn"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/12260827");
$data = json_decode($json, true);
var_dump($data);