Rusted valley vanilla (PVE) 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 208,
"fps_avg": 208,
"entities_count": 55145,
"world_seed": 45343,
"world_size": 3250,
"steam_id": "90286016881669145",
"domain": null,
"id": 11731583,
"ip": "208.75.182.147",
"port": 27715,
"query": 27716,
"color": 0,
"city": "Chicago",
"description": "Welcome to The Rusted Valley (PVE) vanilla 2x instant crafting 45 sec crate unlock constant turbines instant airdrop remover tool simple patrol sigal no crazy plugins noob friendly server is still a work in progress so please be patient",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780515197,
"last_online": 1780468828,
"icon": null,
"name": "Rusted valley vanilla (PVE)",
"connect": "208.75.182.147:27715",
"request": "208.75.182.147:27716",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1780411278,
"last_update": 1780515197,
"banned": false,
"wipe": 1779336485,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 12796,
"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/11731583");
$data = json_decode($json, true);
var_dump($data);