Arma 3
Black Sheep Company Ops 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/631950json
{
"response": {
"steam_id": "90284716625916951",
"domain": null,
"id": 631950,
"ip": "64.74.161.165",
"port": 2306,
"query": 2307,
"color": 0,
"city": "Pointe-Claire",
"description": "",
"game": 107410,
"owner": null,
"boosts": 1,
"last_offline": 1776603802,
"score": null,
"last_online": 1776820314,
"icon": null,
"name": "Black Sheep Company Ops",
"connect": "64.74.161.165:2306",
"request": "64.74.161.165:2307",
"map": "cwr3_malden_islands",
"gamemode": "CTI 34 KP Liberation v0.96.8 dev",
"version": "2.20.152984",
"numplayers": 0,
"maxplayers": 40,
"bots": 0,
"secured": false,
"private": false,
"country": "CA",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1669653205,
"last_update": 1776820314,
"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": 387,
"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/631950");
$data = json_decode($json, true);
var_dump($data);