Arma 3
CZ/SK CGS Liberation, all mods are optional 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/632061json
{
"response": {
"steam_id": "90284756165454868",
"domain": null,
"id": 632061,
"ip": "194.160.105.154",
"port": 2402,
"query": 2403,
"color": 0,
"city": "Žilina",
"description": "",
"game": 107410,
"owner": null,
"boosts": 1,
"last_offline": 1776444204,
"score": null,
"last_online": 1776822051,
"icon": null,
"name": "CZ/SK CGS Liberation, all mods are optional",
"connect": "194.160.105.154:2402",
"request": "194.160.105.154:2403",
"map": "Tanoa",
"gamemode": "CGS Liberation CDLC v1.007",
"version": "2.20.152984",
"numplayers": 0,
"maxplayers": 58,
"bots": 0,
"secured": false,
"private": false,
"country": "SK",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1669653230,
"last_update": 1776822051,
"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": 401,
"language": "sk",
"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/632061");
$data = json_decode($json, true);
var_dump($data);