API dla RustHunter Vanilla [Ryzen9950x]
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 222,
"fps_avg": 224,
"entities_count": 119833,
"world_seed": 435244146,
"world_size": 4500,
"steam_id": "90286573902310419",
"domain": null,
"id": 10633280,
"ip": "46.181.239.168",
"port": 40315,
"query": 40316,
"color": 0,
"city": "Kemerovo",
"description": "![RustHunter Vanilla [Ryzen9950x]](https://wallpapers.com/images/file/rust-space-suit-v6909tftywztor6m.jpg)\nДобро пожаловать, Растхантер!\r\n > Размер карты 4500, Gameplay Vanilla\r\n > Размер стака Vanilla Ресурсы Vanilla\r\n > Потребление ресурсов домом снижено до 40% \r\n > Бесплатные (Free) Skin по команде /skin \r\n > В основе сервера быстрый Ryzen9950X на 5,7GHz, 32Gb, SSD M2-Pci5\r\n > StartBonus, DaylyBonus, OnlineBonus\r\n > Wipe Global и третья пятница месяца в 01:00 по МСК, чертежи раз в месяц",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780596862,
"last_online": 1780594232,
"icon": null,
"name": "RustHunter Vanilla [Ryzen9950x]",
"connect": "46.181.239.168:40315",
"request": "46.181.239.168:40316",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 300,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1763713782,
"last_update": 1780596862,
"banned": false,
"wipe": 1779401644,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 10219,
"language": "ru",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/10633280");
$data = json_decode($json, true);
var_dump($data);