Arma 3
� [ OFFICIAL ] Arma 3 Spearhead 1944 USA #31_COOP_Regular 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/5502079json
{
"response": {
"steam_id": "90284753794727967",
"domain": null,
"id": 5502079,
"ip": "45.159.5.158",
"port": 6102,
"query": 6103,
"color": 0,
"city": "Clifton",
"description": null,
"game": 107410,
"owner": null,
"boosts": 1,
"last_offline": 1776802402,
"score": 0,
"last_online": 1776814332,
"icon": null,
"name": "� [ OFFICIAL ] Arma 3 Spearhead 1944 USA #31_COOP_Regular",
"connect": "45.159.5.158:6102",
"request": "45.159.5.158:6103",
"map": "SPE_Mortain",
"gamemode": "[SPE] Attack on Mortain",
"version": "2.20.153701",
"numplayers": 0,
"maxplayers": 6,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1722965240,
"last_update": 1776814332,
"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": 751,
"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/5502079");
$data = json_decode($json, true);
var_dump($data);