Subspace原版加州 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "85568392936239302",
"domain": null,
"id": 11630778,
"ip": "110.42.10.52",
"port": 35411,
"query": 35411,
"color": 0,
"city": "Ningbo",
"description": null,
"game": 304930,
"owner": null,
"boosts": 1,
"last_offline": 1780056226,
"last_online": 1780255866,
"icon": "https://tc.tyteam.cn/250625/wSUZgjWi.jpg",
"name": "Subspace原版加州",
"connect": "110.42.10.52:35411",
"request": "110.42.10.52:35411",
"map": "California2",
"gamemode": "圆心云服务器",
"version": "3.26.3.2",
"numplayers": 0,
"maxplayers": 16,
"bots": 0,
"secured": true,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1779916705,
"last_update": 1780255866,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 238,
"language": "zh",
"parked": false,
"app": {
"id": 48,
"steam_id": 304930,
"name": "Unturned",
"url": "unturned"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11630778");
$data = json_decode($json, true);
var_dump($data);