Rust
API pentru Xeo
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/7920784json
{
"response": {
"fps": 60,
"fps_avg": 60,
"entities_count": 138723,
"world_seed": 1337,
"world_size": 4750,
"steam_id": "90285627567213593",
"domain": null,
"id": 7920784,
"ip": "194.69.160.15",
"port": 28031,
"query": 28033,
"color": 0,
"city": "City of London",
"description": "\ngm.link/u119762 UKRUST | Vanilla | Max 4 | Monthly | No BP Wipes| No Griefing |\r\nMap wipes on the first Thursday of each month @19:00 (BST).\r\n\r\nFeatures.\r\n\r\n50% Upkeep costs - More time raiding less time grinding.\r\nMinicopters spawn on roads - fast travel made easy.\r\nHackable crate timer reduced to 10 minutes - Get to that loot faster.\r\nDrone range extended map wide - Scout like a pro.\r\nMax 16 Auto turrets - Defend your base strategically.\r\n\r\nReady to jump in? join the action and connect with the UKRUST community.\r\nVisit our website www.ukrust.co.uk.\r\nJoin our discord community https://discord.gg/ukrust",
"game": 252490,
"owner": 119762,
"boosts": 1,
"last_offline": 1778515382,
"score": 0,
"last_online": 1778563811,
"icon": null,
"name": "Xeo",
"connect": "194.69.160.15:28031",
"request": "194.69.160.15:28033",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 90,
"add_date": 1740791942,
"last_update": 1778563811,
"banned": false,
"wipe": 1777929227,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 251,
"language": "en",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": {
"username": "OldRustyGaming",
"avatar": "3ea853f2-cf6c-423d-8e58-bc9984a9703f.jpg",
"last_online": 1747729597
},
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/7920784");
$data = json_decode($json, true);
var_dump($data);