Garry's Mod
API для Name is not set on server
Мы предлагаем широкий выбор методов интеграции. Вы можете воспользоваться любым из них или создать свой собственный с помощью JSON API. Если у вас есть предложение по добавлению нового метода интеграции, пожалуйста, свяжитесь с нами. Связаться с нами
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/2965573json
{
"response": {
"steam_id": null,
"domain": null,
"id": 2965573,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": null,
"description": "Сайт сервера - https:/desireproject.ru",
"game": 4000,
"owner": 52565,
"boosts": 1,
"last_offline": 1751888070,
"score": null,
"last_online": 1748807425,
"icon": null,
"name": "Name is not set on server",
"connect": null,
"request": null,
"map": "rp_breaker_frosty",
"gamemode": "MilitaryRP",
"version": null,
"numplayers": 0,
"maxplayers": 128,
"bots": 0,
"secured": false,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1707506330,
"last_update": 1751888070,
"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": 4003,
"language": "ru",
"parked": true,
"app": {
"id": 30,
"steam_id": 4000,
"name": "Garry's Mod",
"url": "garrys-mod"
},
"server_owner": {
"username": "CYBERC4T",
"avatar": "2c126d0b-f906-4922-812c-92f7932ca921.jpg",
"last_online": 1774559862
},
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/2965573");
$data = json_decode($json, true);
var_dump($data);