RustGames.gg | Rustcraft Lucky Pillars 4 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 60,
"fps_avg": 60,
"entities_count": 19014,
"world_seed": 0,
"world_size": 1000,
"steam_id": "90286588407183372",
"domain": null,
"id": 11606970,
"ip": "40.160.20.178",
"port": 40065,
"query": 40066,
"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": 1779915489,
"last_online": 1780564836,
"icon": null,
"name": "RustGames.gg | Rustcraft Lucky Pillars 4",
"connect": "40.160.20.178:40065",
"request": "40.160.20.178:40066",
"map": "RustGames.gg",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1779915489,
"last_update": 1780564836,
"banned": false,
"wipe": 1778528009,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1882,
"language": "en",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11606970");
$data = json_decode($json, true);
var_dump($data);