Rusty Haven PvE Survival 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 107,
"fps_avg": 108,
"entities_count": 107170,
"world_seed": 6042026,
"world_size": 4500,
"steam_id": "90286939907590147",
"domain": null,
"id": 3875321,
"ip": "205.209.105.34",
"port": 28310,
"query": 28245,
"project_id": null,
"color": 0,
"city": "Englewood Cliffs",
"description": "\nHarder Custom Heli HP, Zombie Hordes, Buyable Heli Battles, Monument Bradleys, Convoy, Armored Trains, Heavy Oilrig, Skinner plugin, CargoPlaneCrash, PlaneCrash, Purge on the last 17 hours before wipe, 1/2 decay rate, Kits, SkillTree, ChestStacks, RemoverTool, TeleportGUI, Supply and Demand Economics economy in town, Quests, Vehicle License and much more, Donator access to VIP perks, Friendly environment and and no active or annoying Admin, Powered by GTXGaming.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1781301838,
"last_online": 1781342429,
"icon": null,
"name": "Rusty Haven PvE Survival",
"connect": "205.209.105.34:28310",
"request": "205.209.105.34:28245",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1713339137,
"last_update": 1781342429,
"banned": false,
"wipe": 1780596886,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3148,
"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/3875321");
$data = json_decode($json, true);
var_dump($data);