Arma 3
[TAW] TAW.net | AM2 | Operation #1 [EU] 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/3517767json
{
"response": {
"steam_id": "90284664583533585",
"domain": null,
"id": 3517767,
"ip": "136.243.53.62",
"port": 2302,
"query": 2303,
"color": 0,
"city": "Falkenstein",
"description": "",
"game": 107410,
"owner": null,
"boosts": 1,
"last_offline": 1776852640,
"score": null,
"last_online": 1776628230,
"icon": null,
"name": "[TAW] TAW.net | AM2 | Operation #1 [EU]",
"connect": "136.243.53.62:2302",
"request": "136.243.53.62:2303",
"map": "chernarus",
"gamemode": "cherno_qrf",
"version": "2.20.153649",
"numplayers": 29,
"maxplayers": 84,
"bots": 0,
"secured": false,
"private": true,
"country": "DE",
"status": false,
"votes": 0,
"points": 31,
"add_date": 1710779961,
"last_update": 1776852640,
"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": 192,
"language": "de",
"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/3517767");
$data = json_decode($json, true);
var_dump($data);