API для My Garry's Mod Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794053296,
"app": {
"id": 30,
"name": "Garry's Mod",
"steam_id": 4000,
"url": "garrys-mod"
},
"color": 0,
"connect": "203.121.236.122:27015",
"country": "TW",
"domain": null,
"game": 4000,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 19774033,
"ip": "203.121.236.122",
"language": "zh",
"last_update": 1794690093,
"map": "zs_zombie_village",
"maxplayers": 32,
"name": "My Garry's Mod Server",
"numplayers": 0,
"official": null,
"points": 0,
"port": 27015,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27015,
"request": "203.121.236.122:27015",
"secured": false,
"status": false,
"steam_id": "90297469506856961",
"version": "2026.04.29",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Новый Тайбэй",
"description": null,
"disabled_modules": [],
"gamemode": "GMOD Rogue",
"hidden": false,
"last_offline": 1794690093,
"last_online": 1794685312,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 14010,
"wipe_period": null,
"os": "w",
"region": 255,
"product": "garrysmod",
"gametype": "gm:gmodrogue gmc:pve ver:260428",
"dedicated": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/19774033");
$data = json_decode($json, true);
var_dump($data);