Arma 3
Mustang on DESKTOP-Games 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/954201json
{
"response": {
"steam_id": "90284745042954241",
"domain": null,
"id": 954201,
"ip": "161.97.209.46",
"port": 2302,
"query": 2303,
"color": 0,
"city": "Longmont",
"description": "",
"game": 107410,
"owner": null,
"boosts": 1,
"last_offline": 1776821602,
"score": null,
"last_online": 1776813035,
"icon": null,
"name": "Mustang on DESKTOP-Games",
"connect": "161.97.209.46:2302",
"request": "161.97.209.46:2303",
"map": "DaKrong",
"gamemode": "Viet%20-%20Attack%20on%20FSB%20Razor",
"version": "2.20.152984",
"numplayers": 1,
"maxplayers": 16,
"bots": 0,
"secured": false,
"private": true,
"country": "US",
"status": false,
"votes": 0,
"points": 3,
"add_date": 1684789914,
"last_update": 1776821602,
"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": 3285,
"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/954201");
$data = json_decode($json, true);
var_dump($data);