Rust
API для [FaceWAN]{5x Gather}{TP}{Home}{Remove}{PvE}[US East]
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11189220json
{
"response": {
"fps": 68,
"fps_avg": 75,
"entities_count": 223032,
"world_seed": 12513,
"world_size": 6000,
"steam_id": "90285116427974667",
"domain": null,
"id": 11189220,
"ip": "209.205.225.77",
"port": 28016,
"query": 28015,
"color": 0,
"city": "Ashburn",
"description": "![[FaceWAN]{5x Gather}{TP}{Home}{Remove}{PvE}[US East]](https://espeon.dev/facewan_rust.png)\nLast Map Wipe: [Last forced game map wipe]\r\nLast BP Wipe: [Last forced game BP wipe]\r\nModded server for everyone to have fun in\r\nThis is a PvE server - No PvP\r\nMap Size: 6000 (long load time, please allow game to load map)\r\nMods:\r\n5x gather increase, Teleportation, No Decay (requires TC), Homes, Remove Command, BGrade, Stack Size increase, Sign Artist, Short night\r\n\r\nPlease report all people breaking rules (this includes PvP) either on our bans page at facebans.com or on our discord at facewan.com/rustchat. This server is not actively moderated and we expect you to help us by reporting any problem players. Thank you for understanding.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1775194330,
"score": 0,
"last_online": 1777532426,
"icon": null,
"name": "[FaceWAN]{5x Gather}{TP}{Home}{Remove}{PvE}[US East]",
"connect": "209.205.225.77:28016",
"request": "209.205.225.77:28015",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 0,
"maxplayers": 64,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1772699038,
"last_update": 1777532426,
"banned": false,
"wipe": 1775154439,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 1,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4604,
"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/11189220");
$data = json_decode($json, true);
var_dump($data);