Rusty Hook 3X Offline Protections 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 55,
"fps_avg": 53,
"entities_count": 170225,
"world_seed": 855085100,
"world_size": 5250,
"steam_id": "90286622289939465",
"domain": null,
"id": 10534624,
"ip": "147.135.105.5",
"port": 28015,
"query": 28016,
"project_id": null,
"color": 0,
"city": "Hillsboro",
"description": "\nRusty Hook 3X: Offline protections: No pay-to-win ever. Solo friendly. 3x Resources and Loot. Raidable Bases & Random NPC Raiders! Doomsday wipe event! Offline protections last 24 hours, at which point the structure will begin to take more and more damage from players the longer you stay disconnected.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1781336581,
"last_online": 1780728630,
"icon": null,
"name": "Rusty Hook 3X Offline Protections",
"connect": "147.135.105.5:28015",
"request": "147.135.105.5:28016",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2627",
"numplayers": 0,
"maxplayers": 250,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1762518701,
"last_update": 1781336581,
"banned": false,
"wipe": 1780597813,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 10057,
"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/10534624");
$data = json_decode($json, true);
var_dump($data);