Unturned
[IN-DEV] Unturned Ultimate: Anomaly++ PVE 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10423163json
{
"response": {
"steam_id": "85568392935412801",
"domain": null,
"id": 10423163,
"ip": "74.112.78.38",
"port": 9105,
"query": 9105,
"color": 0,
"city": "Chicago",
"description": null,
"game": 304930,
"owner": null,
"boosts": 1,
"last_offline": 1776658397,
"score": 0,
"last_online": 1777542749,
"icon": null,
"name": " [IN-DEV] Unturned Ultimate: Anomaly++ PVE ",
"connect": "74.112.78.38:9105",
"request": "74.112.78.38:9105",
"map": "Anomaly++",
"gamemode": "Cooperative PVE on Anomaly++",
"version": "3.26.2.3",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1759826633,
"last_update": 1777542749,
"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": 302,
"language": "en",
"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/10423163");
$data = json_decode($json, true);
var_dump($data);