Ashfall Wasteland 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 191,
"fps_avg": 189,
"entities_count": 142471,
"world_seed": 975037228,
"world_size": 5000,
"steam_id": "90286061503391772",
"domain": null,
"id": 11510971,
"ip": "185.227.70.23",
"port": 25003,
"query": 25004,
"color": 0,
"city": "Eygelshoven",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780579427,
"last_online": 1780085462,
"icon": null,
"name": "Ashfall Wasteland",
"connect": "185.227.70.23:25003",
"request": "185.227.70.23:25004",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 40,
"bots": 0,
"secured": true,
"private": false,
"country": "NL",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779353836,
"last_update": 1780579427,
"banned": false,
"wipe": 1779345402,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 11654,
"language": "nl",
"parked": false,
"app": {
"id": 252490,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11510971");
$data = json_decode($json, true);
var_dump($data);