Legion Linux Gamers UY Server 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": 90285891277213700,
"domain": null,
"id": 11695607,
"ip": "186.54.202.60",
"port": 27015,
"query": 27015,
"project_id": null,
"color": 0,
"city": "Montevideo",
"description": null,
"game": 224260,
"owner": null,
"boosts": 1,
"last_offline": 1781115825,
"last_online": 1780255374,
"icon": null,
"name": "Legion Linux Gamers UY Server",
"connect": "186.54.202.60:27015",
"request": "186.54.202.60:27015",
"map": "nmo_anxiety",
"gamemode": "No More Room in Hell",
"version": "1.1.4.2",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": true,
"private": false,
"country": "UY",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1780225642,
"last_update": 1781115825,
"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": 428,
"language": "es",
"parked": false,
"app": {
"id": 6,
"steam_id": 224260,
"name": "No More Room in Hell",
"url": "no-more-room-in-hell"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11695607");
$data = json_decode($json, true);
var_dump($data);