Garry's Mod
Garry's Mod Server Hosted by Hexane Networks 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10641674json
{
"response": {
"steam_id": "85568392936215305",
"domain": null,
"id": 10641674,
"ip": "51.68.200.54",
"port": 27020,
"query": 27020,
"color": 0,
"city": "City of London",
"description": null,
"game": 4000,
"owner": null,
"boosts": 1,
"last_offline": 1776758601,
"score": 0,
"last_online": 1776814260,
"icon": null,
"name": "Garry's Mod Server Hosted by Hexane Networks",
"connect": "51.68.200.54:27020",
"request": "51.68.200.54:27020",
"map": "rp_sda_ds_renewal",
"gamemode": "DarkRP",
"version": "2025.03.26",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": true,
"private": true,
"country": "GB",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1763716322,
"last_update": 1776814260,
"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": 1864,
"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/10641674");
$data = json_decode($json, true);
var_dump($data);