API dla RustGames.gg | Rust Raiders - NA EAST 1
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 60,
"fps_avg": 60,
"entities_count": 11466,
"world_seed": 0,
"world_size": 3000,
"steam_id": "90286588316280861",
"domain": null,
"id": 10979117,
"ip": "40.160.20.99",
"port": 29015,
"query": 29016,
"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": 1775157139,
"last_online": 1780588836,
"icon": null,
"name": "RustGames.gg | Rust Raiders - NA EAST 1",
"connect": "40.160.20.99:29015",
"request": "40.160.20.99:29016",
"map": "RustGames.gg",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1769901054,
"last_update": 1780588836,
"banned": false,
"wipe": 1778187258,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4133,
"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/10979117");
$data = json_decode($json, true);
var_dump($data);