Arma 3
«Спектр войны» 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/7831517json
{
"response": {
"steam_id": "90284570039456776",
"domain": null,
"id": 7831517,
"ip": "80.242.59.106",
"port": 2302,
"query": 2303,
"color": 0,
"city": "Veliky Novgorod",
"description": null,
"game": 107410,
"owner": 92137,
"boosts": 1,
"last_offline": 1776267713,
"score": 5,
"last_online": 1776444609,
"icon": null,
"name": "«Спектр войны»",
"connect": "80.242.59.106:2302",
"request": "80.242.59.106:2303",
"map": "Altis",
"gamemode": "Base_Altis.v1.0122",
"version": "2.20.152984",
"numplayers": 89,
"maxplayers": 105,
"bots": 0,
"secured": false,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 130,
"add_date": 1740085689,
"last_update": 1776444609,
"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": 1,
"language": "ru",
"parked": false,
"app": {
"id": 61,
"steam_id": 107410,
"name": "Arma 3",
"url": "arma-3"
},
"server_owner": {
"username": "spdvinichenko",
"avatar": "7625d50b-4ccd-4f0a-828d-c9cb44028f48.jpg",
"last_online": 1769696774
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/7831517");
$data = json_decode($json, true);
var_dump($data);