Garry's Mod
API pentru RUSSIAN 1 Hunter
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/5605926json
{
"response": {
"steam_id": "85568392934507772",
"domain": null,
"id": 5605926,
"ip": "194.147.90.90",
"port": 24215,
"query": 24215,
"color": 0,
"city": "Moscow",
"description": "[{\"id\":\"_JyvDeKH_S\",\"type\":\"paragraph\",\"data\":{\"text\":\"Наш сайт: https://homigrad.com\"}},{\"id\":\"hwAVMfROlC\",\"type\":\"paragraph\",\"data\":{\"text\":\"HOMIGRADCOM HOMIGRAD homigrad homigradcom garrysmod gmod garrys mod\\n\"}}]",
"game": 4000,
"owner": 147451,
"boosts": 1,
"last_offline": 1776654198,
"score": 0,
"last_online": 1776747612,
"icon": null,
"name": "RUSSIAN 1 Hunter",
"connect": "194.147.90.90:24215",
"request": "194.147.90.90:24215",
"map": "gm_stelliferous",
"gamemode": "HOMIGRADCOM",
"version": "2025.03.26",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 90,
"add_date": 1723662866,
"last_update": 1776747612,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": 1,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 19,
"language": "ru",
"parked": false,
"app": {
"id": 30,
"steam_id": 4000,
"name": "Garry's Mod",
"url": "garrys-mod"
},
"server_owner": {
"username": "HOMIGRAD",
"avatar": "b9b5c040-4dd0-4725-8fd1-979b79174796.jpg",
"last_online": 1763733214
},
"mods": [],
"disabled_modules": [
"chat"
]
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/5605926");
$data = json_decode($json, true);
var_dump($data);