API для Rust4Fun | Vanilla | Solo/Duo | Noob Friendly | Monthly
JSON для программ, сайтов и прочего
text
json
{
"response": {
"fps": 55,
"fps_avg": 54,
"entities_count": 88429,
"world_seed": 425245096,
"world_size": 4000,
"steam_id": "90286619390726156",
"domain": null,
"id": 11744560,
"ip": "66.51.97.53",
"port": 28050,
"query": 28051,
"color": 0,
"city": "City of London",
"description": "\nWelcome to Rust4Fun!\r\nLooking for a place to learn/chill out, hop on! \r\n\r\n(Wipe on the first Thursday of every month 20:00 CEST)\r\n\r\nInfo:\r\n-Monthly Map Wipes (Force Wipe).\r\n-Blueprints DO NOT wipe.\r\n-Team limit <2>.\r\n\r\nRules:\r\n-No Griefing.\r\n-No Teaming.\r\n-Dont Be An Ass.\r\n\r\nHave Fun!",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780518704,
"last_online": 1780653626,
"icon": null,
"name": "Rust4Fun | Vanilla | Solo/Duo | Noob Friendly | Monthly",
"connect": "66.51.97.53:28050",
"request": "66.51.97.53:28051",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 7,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 63,
"add_date": 1780518704,
"last_update": 1780653626,
"banned": false,
"wipe": 1780596671,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1367,
"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/11744560");
$data = json_decode($json, true);
var_dump($data);