Arma 3
51st Expeditionary Force Training Server 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/9973357json
{
"response": {
"steam_id": "90284559363121153",
"domain": null,
"id": 9973357,
"ip": "148.251.69.201",
"port": 2602,
"query": 2603,
"color": 0,
"city": "Falkenstein",
"description": null,
"game": 107410,
"owner": null,
"boosts": 1,
"last_offline": 1776426224,
"score": 0,
"last_online": 1776487326,
"icon": null,
"name": "51st Expeditionary Force Training Server",
"connect": "148.251.69.201:2602",
"request": "148.251.69.201:2603",
"map": "dagger_island_summer",
"gamemode": "51st_Training_Missionv2",
"version": "2.20.153649",
"numplayers": 0,
"maxplayers": 20,
"bots": 0,
"secured": false,
"private": true,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1754856551,
"last_update": 1776487326,
"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": 1254,
"language": "de",
"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/9973357");
$data = json_decode($json, true);
var_dump($data);