Mischievous PVE 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 86,
"fps_avg": 86,
"entities_count": 111348,
"world_seed": 1605782648,
"world_size": 4500,
"steam_id": "90286726573815830",
"domain": null,
"id": 11645189,
"ip": "24.66.212.91",
"port": 28015,
"query": 28016,
"project_id": null,
"color": 0,
"city": "Rocky Mountain House",
"description": "\n Slightly Tarnished Vanilla \r\n PVE Server \r\n Bots at Most Monuments \r\n Remover Tool \r\n Higher Stack Sizes \r\n One Minute Hackable Create \r\n Monthly Server and BP wipe \r\n 50 less Upkeep \r\n Raidable Bases",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780861463,
"last_online": 1780879833,
"icon": null,
"name": "Mischievous PVE",
"connect": "24.66.212.91:28015",
"request": "24.66.212.91:28016",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 75,
"bots": 0,
"secured": true,
"private": false,
"country": "CA",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1780177452,
"last_update": 1780879833,
"banned": false,
"wipe": 1780607002,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5634,
"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/11645189");
$data = json_decode($json, true);
var_dump($data);