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