API для О С Т Р О В / Vanilla
JSON для программ, сайтов и прочего
text
json
{
"response": {
"fps": 67,
"fps_avg": 67,
"entities_count": 131571,
"world_seed": 68984794,
"world_size": 4500,
"steam_id": "90286142404505603",
"domain": null,
"id": 1317703,
"ip": "195.18.27.126",
"port": 35100,
"query": 35110,
"color": 0,
"city": "Moscow",
"description": "\nПОЛНОСТЬЮ КЛАССИЧЕСКИЙ СЕРВЕР!!! \r\n FULL CLASSIC \r\nЗапрещены аккаунты с VAC банами, блокировками и VPN \r\n No VAC, gamebans, VPN \r\nМагазин сервера - https://wargm.ru/server/79878/shop \r\n Server's shop - https://wargm.ru/server/79878/shop \r\nTelegram (закрытая группа!!!) - https://t.me/OCTPOB_RUST \r\n Discord - https://discord.gg/PeRUyevuGg (кнопочка ниже)",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1779160371,
"last_online": 1779638421,
"icon": null,
"name": "О С Т Р О В / Vanilla",
"connect": "195.18.27.126:35100",
"request": "195.18.27.126:35110",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 16,
"maxplayers": 300,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 63,
"add_date": 1692947221,
"last_update": 1779638421,
"banned": false,
"wipe": 1778181412,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1568,
"language": "ru",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/1317703");
$data = json_decode($json, true);
var_dump($data);