Arma 3
104th Wolfpack Battalion Training Server 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10539739json
{
"response": {
"steam_id": "90284510688144395",
"domain": null,
"id": 10539739,
"ip": "40.160.20.17",
"port": 2314,
"query": 2315,
"color": 0,
"city": "Reston",
"description": null,
"game": 107410,
"owner": null,
"boosts": 1,
"last_offline": 1775906516,
"score": 0,
"last_online": 1776335441,
"icon": null,
"name": "104th Wolfpack Battalion Training Server",
"connect": "40.160.20.17:2314",
"request": "40.160.20.17:2315",
"map": "desert_island",
"gamemode": "104th_Kamino_Facility_Fixed2",
"version": "2.20.153649",
"numplayers": 0,
"maxplayers": 27,
"bots": 0,
"secured": false,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1762520059,
"last_update": 1776335441,
"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": 193,
"language": "en",
"parked": false,
"app": {
"id": 61,
"steam_id": 107410,
"name": "Arma 3",
"url": "arma-3"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/10539739");
$data = json_decode($json, true);
var_dump($data);