API для VANILLA 2x2 | GGRust #6 | Для нoвичкoв 2x
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1739234837,
"app": {
"id": 12,
"name": "Rust",
"steam_id": 252490,
"url": "rust"
},
"color": 0,
"connect": "80.242.59.117:35100",
"country": "RU",
"domain": null,
"game": 252490,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 7468553,
"ip": "80.242.59.117",
"language": "ru",
"last_update": 1790259618,
"map": "Вайп был 1д назад",
"maxplayers": 400,
"name": "VANILLA 2x2 | GGRust #6 | Для нoвичкoв 2x",
"numplayers": 339,
"official": null,
"points": 114,
"port": 35100,
"private": false,
"project_id": null,
"pve": 0,
"pvp": null,
"query": 35110,
"request": "80.242.59.117:35110",
"secured": true,
"status": true,
"steam_id": "90293321511703571",
"version": "2633",
"votes": 0,
"wipe": 1790167276,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Великий Новгород",
"description": "\nДобро пожаловать на классический сервер GGRust! \r\n\r\n• Добыча и стаки ресурсов х2\r\n• Без ограничений на игроков в команде\r\n• Глобал вайп каждую среду в 16:00 МСК\r\n• Переработчики и станции дронов в сейв зонах\r\n• Потребление ресурсов шкафом снижено на 50%\r\n• Классика без телепортов и модов\r\n• Активная администрация 18+\r\n\r\nНаш сайт - GGRust.ru",
"disabled_modules": [],
"gamemode": "Survival",
"hidden": false,
"last_offline": 1790218957,
"last_online": 1790259618,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 134,
"wipe_period": null,
"fps": 54,
"gmn": "rust",
"url": "https://ggrust.ru/",
"hash": "55b8ccb4",
"build": "165217",
"gc_cl": "198",
"gc_mb": "6230",
"modded": true,
"fps_avg": 54,
"ram_sys": "0",
"map_kind": "custom",
"map_name": "4200 1127399257",
"map_seed": 1,
"map_size": 4200,
"logoimage": "https://s.ggrust.ru/img/t.png",
"listentype": "d",
"environment": "w",
"favendpoint": "2x2.ggrust.ru",
"a2s_protocol": 17,
"map_revision": null,
"queueplayers": 0,
"map_image_url": "https://files.facepunch.com/rust/map-images/03618e21eea8c503f79b53ec56accb7f87d8680711c16ff9e55c2d2190dfefc1/4200_1127399257.4200.1789899755984.288_03618e21eea8c503f79b53ec56accb7f.jpg",
"entities_count": 207082,
"players_complete": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/7468553");
$data = json_decode($json, true);
var_dump($data);