Rust
API pentru My Untitled Rust Server
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/8390771json
{
"response": {
"fps": 9,
"fps_avg": 1,
"entities_count": 3560,
"world_seed": 1337,
"world_size": 1000,
"steam_id": "90284913008902147",
"domain": null,
"id": 8390771,
"ip": "91.229.114.45",
"port": 28027,
"query": 28029,
"color": 0,
"city": "Chicago",
"description": "![[US] BXR's Sky Pirates [Physgun]](https://www.dropbox.com/scl/fi/eez4i05g4xy47gmd1pln2/copter-weapons-logo-1024x512-server-headerimage-01.jpg?rlkey=81g8hi88nqp92h3r8bfn1fabc&st=i5hsd5j1&dl=1)\nWelcome to BXR's Minicopter World!\r\nWe are a modded rust Game Server community that focuses on helicopter warfare with features to save player progress across forced-wipes!\r\n\r\n - Free Minicopters with the /mymini command (Use /fmini to fetch existing copter)\r\n - Minicopters do not require fuel\r\n - Weapons and equipment can be mounted to your copter and operated from the pilot seat\r\n - Spawn at a specialized spawn village with shops and a bank to deposit scrap\r\n - Players keep their bank contents across forced-wipes\r\n - The custom map features several pristine areas to build bases.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1778777580,
"score": 0,
"last_online": 1778793621,
"icon": null,
"name": "My Untitled Rust Server",
"connect": "91.229.114.45:28027",
"request": "91.229.114.45:28029",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 0,
"maxplayers": 1000,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1743673763,
"last_update": 1778793621,
"banned": false,
"wipe": 1777054565,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3233,
"language": "en",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/8390771");
$data = json_decode($json, true);
var_dump($data);