Arma 3
CodeFourGaming - King of the Hill US#4 - Infantry 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/968195json
{
"response": {
"steam_id": "90284530401765379",
"domain": null,
"id": 968195,
"ip": "142.44.169.172",
"port": 2302,
"query": 2303,
"color": 0,
"city": "Montreal",
"description": "",
"game": 107410,
"owner": null,
"boosts": 1,
"last_offline": 1775781723,
"score": null,
"last_online": 1776444011,
"icon": null,
"name": "CodeFourGaming - King of the Hill US#4 - Infantry",
"connect": "142.44.169.172:2302",
"request": "142.44.169.172:2303",
"map": "Altis",
"gamemode": "King of the Hill by Sa-Matra (v17, Infantry)",
"version": "2.20.153495",
"numplayers": 81,
"maxplayers": 115,
"bots": 0,
"secured": false,
"private": false,
"country": "CA",
"status": true,
"votes": 0,
"points": 124,
"add_date": 1684846643,
"last_update": 1776444011,
"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": 2,
"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/968195");
$data = json_decode($json, true);
var_dump($data);