API dla RustGames.gg Lobby 1
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 30,
"fps_avg": 27,
"entities_count": 2067,
"world_seed": 0,
"world_size": 1000,
"steam_id": "90286604030564381",
"domain": null,
"id": 10870951,
"ip": "40.160.20.99",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Reston",
"description": "\nWelcome to the RustGames.gg minigame network!\r\n\r\nRules:\r\n• No cheating, scripting, exploiting, or bug abuse.\r\n• No harassment, hate speech, threats, or excessive toxicity.\r\n• No spam, advertising, or impersonation.\r\n• Respect staff decisions and other players.\r\n• Do not intentionally disrupt games, lobbies, queues, or events.\r\n\r\nThis server description only includes the basic rules.\r\nThe full rules, updates, support, appeals, and announcements are available in our Discord.\r\n\r\nJoin the Discord for the complete rule list:\r\nrustgames.gg/discord",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780596273,
"last_online": 1780597229,
"icon": null,
"name": "RustGames.gg Lobby 1",
"connect": "40.160.20.99:28015",
"request": "40.160.20.99:28016",
"map": "RustGames.gg",
"gamemode": "Survival",
"version": "2627",
"numplayers": 10,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 63,
"add_date": 1768318493,
"last_update": 1780597229,
"banned": false,
"wipe": 1780596272,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 830,
"language": "en",
"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/10870951");
$data = json_decode($json, true);
var_dump($data);