Rogue Valley 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 108,
"fps_avg": 105,
"entities_count": 68172,
"world_seed": 612351,
"world_size": 5800,
"steam_id": "90286629524935695",
"domain": null,
"id": 11511773,
"ip": "172.240.69.85",
"port": 28015,
"query": 28016,
"color": 0,
"city": "San Jose",
"description": "\nWipes first Thursday of the month. Light mods, a few premium plugins, custom map by Keirox (The Earth Apocalypse. NPC's, Shops, Raidable Bases, Light Zombies) mostly vanilla... Relax and do your thing.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780653862,
"last_online": 1780665632,
"icon": null,
"name": "Rogue Valley",
"connect": "172.240.69.85:28015",
"request": "172.240.69.85:28016",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 60,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1779353864,
"last_update": 1780665632,
"banned": false,
"wipe": 1780649345,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5086,
"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/11511773");
$data = json_decode($json, true);
var_dump($data);