API для Aanarchy
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": "90286588935284767",
"domain": null,
"id": 11698866,
"ip": "109.230.214.175",
"port": 11600,
"query": 11601,
"color": 0,
"city": "Miami",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780254842,
"last_online": 1780567868,
"icon": null,
"name": "Aanarchy",
"connect": "109.230.214.175:11600",
"request": "109.230.214.175:11601",
"map": "Procedural Map",
"gamemode": "Rust",
"version": "2625",
"numplayers": 0,
"maxplayers": 20,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1780227278,
"last_update": 1780567868,
"banned": false,
"wipe": 1779238878,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 9671,
"language": "en",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11698866");
$data = json_decode($json, true);
var_dump($data);