///AGCOMMUNITY.RU [MMR] | PL1 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": 90286593297629200,
"domain": null,
"id": 11579350,
"ip": "78.17.43.13",
"port": 27015,
"query": 27015,
"project_id": null,
"color": 0,
"city": "Frankfurt am Main",
"description": null,
"game": 9000049,
"owner": null,
"boosts": 1,
"last_offline": 1780088020,
"last_online": 1781211722,
"icon": null,
"name": "///AGCOMMUNITY.RU [MMR] | PL1",
"connect": "78.17.43.13:27015",
"request": "78.17.43.13:27015",
"map": "pwrcore",
"gamemode": "HLCCL",
"version": "1.1.2.2/Stdio",
"numplayers": 0,
"maxplayers": 12,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1779356971,
"last_update": 1781211722,
"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": 68,
"language": "de",
"parked": false,
"app": {
"id": 109,
"steam_id": 9000049,
"name": "Adrenaline Gamer",
"url": "adrenaline-gamer"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11579350");
$data = json_decode($json, true);
var_dump($data);