RUSTY GOOSE | PvE | RAIDS | MINIS | SKILLS | EVENTS 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 118,
"fps_avg": 117,
"entities_count": 72047,
"world_seed": 1331288570,
"world_size": 3500,
"steam_id": "90286590841403423",
"domain": null,
"id": 11511696,
"ip": "66.51.99.40",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Dallas",
"description": "\nWelcome to the Rusty Goose community! \r\n\r\n Please join our discord! \r\n https://discord.gg/2RYjcUbG6A \r\n \r\n Here's a few features: \r\n - Long Days & Short Nights \r\n - Raidable NPC bases \r\n - 3 minutes locked crates \r\n - NPC guarded crates \r\n - Improve skill levels for mining, harvesting, and crafting",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780151018,
"last_online": 1780587635,
"icon": null,
"name": "RUSTY GOOSE | PvE | RAIDS | MINIS | SKILLS | EVENTS",
"connect": "66.51.99.40:28015",
"request": "66.51.99.40:28016",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1779353862,
"last_update": 1780587635,
"banned": false,
"wipe": 1778181116,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5256,
"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/11511696");
$data = json_decode($json, true);
var_dump($data);