Garry's Mod
[ApsisGaming] PropHunt •·US·• No Ghosting • FastDL • 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10876731json
{
"response": {
"steam_id": "85568392935765304",
"domain": null,
"id": 10876731,
"ip": "51.79.86.168",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Beauharnois",
"description": null,
"game": 4000,
"owner": 178581,
"boosts": 1,
"last_offline": 1776096712,
"score": 0,
"last_online": 1776202817,
"icon": null,
"name": "[ApsisGaming] PropHunt •·US·• No Ghosting • FastDL •",
"connect": "51.79.86.168:27015",
"request": "51.79.86.168:27015",
"map": "ph_restaurant_2014",
"gamemode": "Prop Hunt",
"version": "2025.03.26",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "CA",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1768319173,
"last_update": 1776202817,
"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": 107,
"language": "en",
"parked": false,
"app": {
"id": 30,
"steam_id": 4000,
"name": "Garry's Mod",
"url": "garrys-mod"
},
"server_owner": {
"username": "len7o",
"avatar": "b3cb1c67-2f52-4a0a-bb69-02381960c6ac.png",
"last_online": 1776177198
},
"mods": [
{
"id": 2228,
"name": "Prophunt"
},
{
"id": 2229,
"name": "Respawn"
},
{
"id": 2230,
"name": "Pointshop"
}
],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/10876731");
$data = json_decode($json, true);
var_dump($data);