Unturned
HardCore | PVE | Nomad 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10909596json
{
"response": {
"steam_id": "85568392935762541",
"domain": null,
"id": 10909596,
"ip": "65.21.78.175",
"port": 27020,
"query": 27020,
"color": 0,
"city": "Helsinki",
"description": null,
"game": 304930,
"owner": null,
"boosts": 1,
"last_offline": 1774697547,
"score": 0,
"last_online": 1776796313,
"icon": "https://assets.bigcartel.com/theme_images/23707082/bigcartel_banner.jpg?auto=format&fit=max&h=250&w=1300",
"name": "HardCore | PVE | Nomad",
"connect": "65.21.78.175:27020",
"request": "65.21.78.175:27020",
"map": "Chernarus LN",
"gamemode": "Hard Core | PVE | Nomad",
"version": "3.26.1.1",
"numplayers": 0,
"maxplayers": 18,
"bots": 0,
"secured": true,
"private": false,
"country": "FI",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1768388448,
"last_update": 1776796313,
"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": 414,
"language": "fi",
"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/10909596");
$data = json_decode($json, true);
var_dump($data);