Unturned
DeadAlive Russia PVE #1 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/5560226json
{
"response": {
"steam_id": "85568392924619350",
"domain": null,
"id": 5560226,
"ip": "142.54.172.194",
"port": 27040,
"query": 27040,
"color": 0,
"city": "Kansas City",
"description": null,
"game": 304930,
"owner": null,
"boosts": 1,
"last_offline": 1775910716,
"score": 0,
"last_online": 1776099660,
"icon": "https://i.ibb.co/syBzP64/brown-no-background.png",
"name": "DeadAlive Russia PVE #1",
"connect": "142.54.172.194:27040",
"request": "142.54.172.194:27040",
"map": "Russia",
"gamemode": "Kits|TPA|Home|Shop|AntiGrief|Garage",
"version": "3.26.2.2",
"numplayers": 1,
"maxplayers": 30,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1723304854,
"last_update": 1776099660,
"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": 200,
"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/5560226");
$data = json_decode($json, true);
var_dump($data);