Rusty Retirement Home - 2x Monthly 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 225,
"fps_avg": 222,
"entities_count": 64720,
"world_seed": 1860477019,
"world_size": 3500,
"steam_id": "90286276040531984",
"domain": null,
"id": 11502856,
"ip": "51.81.79.233",
"port": 29913,
"query": 29914,
"color": 0,
"city": "Hudson",
"description": "\nNext wipe: May 7 @ Force Wipe.\r\nBlueprints wipe on force wipe.\r\n2x gathering & increased stack sizes.\r\nMinicopters spawn on roadways.\r\nLonger days & shorter nights.\r\nFaster smelting & recycling speeds.\r\nFull-base workbench.\r\nLowered TC upkeep rates for more casual play.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780601618,
"last_online": 1779943827,
"icon": null,
"name": "Rusty Retirement Home - 2x Monthly",
"connect": "51.81.79.233:29913",
"request": "51.81.79.233:29914",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 75,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779207223,
"last_update": 1780601618,
"banned": false,
"wipe": 1778267032,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 11235,
"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/11502856");
$data = json_decode($json, true);
var_dump($data);