解放RX | Liberation RX 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "90286404462416902",
"domain": null,
"id": 11623230,
"ip": "43.249.193.238",
"port": 2422,
"query": 2423,
"color": 0,
"city": "Jinan",
"description": null,
"game": 107410,
"owner": null,
"boosts": 1,
"last_offline": 1779953625,
"last_online": 1780564381,
"icon": null,
"name": "解放RX | Liberation RX",
"connect": "43.249.193.238:2422",
"request": "43.249.193.238:2423",
"map": "Altis",
"gamemode": "-= Liberation RX =-",
"version": "2.20.153799",
"numplayers": 0,
"maxplayers": 22,
"bots": 0,
"secured": false,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1779916111,
"last_update": 1780564381,
"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": 3191,
"language": "zh",
"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/11623230");
$data = json_decode($json, true);
var_dump($data);