Garry's Mod
API for MARS 2 - BUILD / SANDBOX
JSON for programs, websites and more
text
https://api.gamemonitoring.net/servers/2532465json
{
"response": {
"steam_id": "90284718055886861",
"domain": null,
"id": 2532465,
"ip": "162.248.88.68",
"port": 27016,
"query": 27016,
"color": 0,
"city": "Chicago",
"description": "",
"game": 4000,
"owner": null,
"boosts": 1,
"last_offline": 1776606751,
"score": null,
"last_online": 1776811934,
"icon": null,
"name": "MARS 2 - BUILD / SANDBOX",
"connect": "162.248.88.68:27016",
"request": "162.248.88.68:27016",
"map": "gm_carcon_ws",
"gamemode": "Sandbox",
"version": "2025.03.26",
"numplayers": 0,
"maxplayers": 20,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1705515152,
"last_update": 1776811934,
"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": 860,
"language": "en",
"parked": false,
"app": {
"id": 30,
"steam_id": 4000,
"name": "Garry's Mod",
"url": "garrys-mod"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Code examples
php
<?php
$json = file_get_contents("https://api.gamemonitoring.net/servers/2532465");
$data = json_decode($json, true);
var_dump($data);