Arma Reforger
[RU] #6 | ARMA-RUSSIAN.RU | VANILLA CONFLICT EVERON | RUSSIAN | RUSSIA 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10973475json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10973475,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": "Moscow",
"description": null,
"game": 1874880,
"owner": 164169,
"boosts": 1,
"last_offline": 1772085056,
"score": 0,
"last_online": 1771169415,
"icon": null,
"name": "[RU] #6 | ARMA-RUSSIAN.RU | VANILLA CONFLICT EVERON | RUSSIAN | RUSSIA",
"connect": null,
"request": null,
"map": "#AR-Campaign_ScenarioName_Everon",
"gamemode": "Arma Reforger",
"version": null,
"numplayers": 0,
"maxplayers": 128,
"bots": 0,
"secured": false,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1769734480,
"last_update": 1772085056,
"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": 56,
"language": "ru",
"parked": true,
"app": {
"id": 55076,
"steam_id": 1874880,
"name": "Arma Reforger",
"url": "arma-reforger"
},
"server_owner": {
"username": "bad_c_ck",
"avatar": "0a1cfcfa-b04b-4cf1-90ff-716f945bc19c.jpg",
"last_online": 1773881547
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/10973475");
$data = json_decode($json, true);
var_dump($data);