API для My Garry's Mod Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": "90289271282595871",
"domain": null,
"id": 12389120,
"ip": "188.170.85.94",
"port": 27015,
"query": 27015,
"project_id": null,
"color": 0,
"city": "St Petersburg",
"description": null,
"game": 4000,
"owner": null,
"boosts": 1,
"last_offline": 1784754099,
"last_online": 1784496600,
"icon": null,
"name": "My Garry's Mod Server",
"connect": "188.170.85.94:27015",
"request": "188.170.85.94:27015",
"map": "ph_restaurant_os",
"gamemode": null,
"version": "2026.04.29",
"numplayers": 0,
"maxplayers": 4,
"bots": 0,
"secured": false,
"private": null,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1784496663,
"last_update": 1784754099,
"ban_reason": null,
"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": 10395,
"language": "ru",
"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.ru/servers/12389120");
$data = json_decode($json, true);
var_dump($data);