Garry's Mod
Useless Sandbox 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/5267996json
{
"response": {
"steam_id": null,
"domain": null,
"id": 5267996,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": null,
"description": null,
"game": 4000,
"owner": 76063,
"boosts": 1,
"last_offline": 1758808461,
"score": 0,
"last_online": 1755854425,
"icon": null,
"name": "Useless Sandbox",
"connect": null,
"request": null,
"map": "gm_bigcity_improved",
"gamemode": "Sandbox",
"version": null,
"numplayers": 0,
"maxplayers": 20,
"bots": 0,
"secured": false,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1721481822,
"last_update": 1758808461,
"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": 2988,
"language": "ru",
"parked": true,
"app": {
"id": 30,
"steam_id": 4000,
"name": "Garry's Mod",
"url": "garrys-mod"
},
"server_owner": {
"username": "Spalishe",
"avatar": "f64196b3-0001-4559-aea3-651c42b6f2ea.jpg",
"last_online": 1735391752
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/5267996");
$data = json_decode($json, true);
var_dump($data);