[HU] RHEL 9.8 NMRIH test server #01 | Vanilla 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "85568392935660366",
"domain": null,
"id": 11768013,
"ip": "94.27.220.239",
"port": 27015,
"query": 27015,
"project_id": null,
"color": 0,
"city": "Pincehely",
"description": null,
"game": 224260,
"owner": null,
"boosts": 1,
"last_offline": 1780933970,
"last_online": 1781101930,
"icon": null,
"name": "[HU] RHEL 9.8 NMRIH test server #01 | Vanilla",
"connect": "94.27.220.239:27015",
"request": "94.27.220.239:27015",
"map": "nmo_broadway",
"gamemode": "No More Room in Hell",
"version": "1.1.4.2",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": true,
"private": false,
"country": "HU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1780933970,
"last_update": 1781101930,
"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": 352,
"language": "hu",
"parked": false,
"app": {
"id": 6,
"steam_id": 224260,
"name": "No More Room in Hell",
"url": "no-more-room-in-hell"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11768013");
$data = json_decode($json, true);
var_dump($data);