Rust
API для Magic Rust — Long | Kлaccикa x1 | Pyccкий
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11305437json
{
"response": {
"fps": 48,
"fps_avg": 48,
"entities_count": 325076,
"world_seed": 454464781,
"world_size": 4500,
"steam_id": "90284835106683928",
"domain": null,
"id": 11305437,
"ip": "80.242.59.250",
"port": 10000,
"query": 10010,
"color": 0,
"city": "Veliky Novgorod",
"description": "\nВайп Карты: каждый первый четверг месяца в 21:00 МСК\r\nВайп Рецептов: каждый месяц\r\nМодерация 24/7: F7 чтобы отправить жалобу на игрока\r\n\r\nХарактеристики сервера:\r\nНет лагов и доната\\t|\\tПолная классика\\t|\\tЛимит команды: Нет\r\n\r\nИнформация:\r\nOur Discord: https://discord.gg/magicrust\r\nOur Store: https://magicrust.gg",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1775524322,
"score": 0,
"last_online": 1776942615,
"icon": null,
"name": "Magic Rust — Long | Kлaccикa x1 | Pyccкий",
"connect": "80.242.59.250:10000",
"request": "80.242.59.250:10010",
"map": "ДЛЯ CЛAБЫX ПK",
"gamemode": "VANILLA",
"version": "2623",
"numplayers": 76,
"maxplayers": 300,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 75,
"add_date": 1774592885,
"last_update": 1776942615,
"banned": false,
"wipe": 1775152372,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 434,
"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/11305437");
$data = json_decode($json, true);
var_dump($data);