Garry's Mod
Ayaya Prophunt Server 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11165079json
{
"response": {
"steam_id": 90283234799293460,
"domain": null,
"id": 11165079,
"ip": "23.88.3.34",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Falkenstein",
"description": null,
"game": 4000,
"owner": null,
"boosts": 1,
"last_offline": 1773261136,
"score": 0,
"last_online": 1776808307,
"icon": null,
"name": "Ayaya Prophunt Server",
"connect": "23.88.3.34:27015",
"request": "23.88.3.34:27015",
"map": "ph_office",
"gamemode": "Prophunters",
"version": "2025.03.26",
"numplayers": 0,
"maxplayers": 69,
"bots": 0,
"secured": true,
"private": true,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1772228584,
"last_update": 1776808307,
"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": 2589,
"language": "de",
"parked": false,
"app": {
"id": 30,
"steam_id": 4000,
"name": "Garry's Mod",
"url": "garrys-mod"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11165079");
$data = json_decode($json, true);
var_dump($data);