Rust
API для DEEPSPACE EU X10 EARLY ACCESS|DEVELOPMENT PHASE|
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11435452json
{
"response": {
"fps": 229,
"fps_avg": 224,
"entities_count": 26649,
"world_seed": 828879640,
"world_size": 2250,
"steam_id": "90284527486123015",
"domain": null,
"id": 11435452,
"ip": "95.156.225.18",
"port": 28017,
"query": 28018,
"color": 0,
"city": "Hamburg",
"description": "\nDEEPSPACE X10 | 10X QUAD LOOT+ | KITS/TP/HOME/SKINBOX/MYMINI\r\n\r\nStop wasting time hitting trees. Get geared, get out there, and dominate. This isn't a vacation; it's a war zone.\r\n\r\nSERVER FEATURES:\r\n- 10x Harvest & Loot (Fast paced action)\r\n- Instant Craft & Smelt\r\n- Kits, TP, and Home plugins active\r\n- Optimized Performance\r\n\r\nRULES:\r\n1. No whining. If you get raided, get better.\r\n2. No Cheating/Scripts. We will find you.\r\n3. Respect the Admins. We don't have patience for garbage.\r\n\r\nJoin the Discord:https://discord.gg/pudGE8k22g\r\n\r\nPREPARE FOR CHAOS. GOOD LUCK.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776016294,
"score": 0,
"last_online": 1776825621,
"icon": null,
"name": "DEEPSPACE EU X10 EARLY ACCESS|DEVELOPMENT PHASE|",
"connect": "95.156.225.18:28017",
"request": "95.156.225.18:28018",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 0,
"maxplayers": 120,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1774977189,
"last_update": 1776825621,
"banned": false,
"wipe": 1775756121,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5240,
"language": "de",
"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/11435452");
$data = json_decode($json, true);
var_dump($data);