Garry's Mod
🔹 gmod.club | Classic PERP [Cars|Drugs|Need Staff] 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/3538658json
{
"response": {
"steam_id": "85568392931426357",
"domain": null,
"id": 3538658,
"ip": "162.248.94.135",
"port": 27050,
"query": 27050,
"color": 0,
"city": "Seattle",
"description": "",
"game": 4000,
"owner": null,
"boosts": 1,
"last_offline": 1776755002,
"score": null,
"last_online": 1776840063,
"icon": null,
"name": "🔹 gmod.club | Classic PERP [Cars|Drugs|Need Staff]",
"connect": "162.248.94.135:27050",
"request": "162.248.94.135:27050",
"map": "rp_evocity_v4b1",
"gamemode": "DarkRP",
"version": "2025.03.26",
"numplayers": 0,
"maxplayers": 64,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1710877913,
"last_update": 1776840063,
"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": 787,
"language": "en",
"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/3538658");
$data = json_decode($json, true);
var_dump($data);