API dla RustGalaxy Nexus Norway
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 30,
"fps_avg": 29,
"entities_count": 100262,
"world_seed": 1337,
"world_size": 4250,
"steam_id": "90286739671969799",
"domain": null,
"id": 9527706,
"ip": "185.175.56.17",
"port": 28015,
"query": 28017,
"project_id": null,
"color": 0,
"city": "Oslo",
"description": "\nRustGalaxy: The Original Nexus Network! Dial any of our 17 global servers via the Outpost telephone and seamlessly transfer with your inventory. Facepunch promised it, we delivered. No lag, no cheaters. Just pure survival across continents.\r\n\r\nMonthly map and blueprint wipes.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780893262,
"last_online": 1780976433,
"icon": null,
"name": "RustGalaxy Nexus Norway",
"connect": "185.175.56.17:28015",
"request": "185.175.56.17:28017",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "NO",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1750537950,
"last_update": 1780976433,
"banned": false,
"wipe": 1780594809,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4240,
"language": "no",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/9527706");
$data = json_decode($json, true);
var_dump($data);