Rust
API для MelonRust.ru #1 X50 [NOLIMIT | EVENTS | FPS + | PVP]
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11260704json
{
"response": {
"fps": 40,
"fps_avg": 39,
"entities_count": 86276,
"world_seed": 805571888,
"world_size": 3500,
"steam_id": "90284836273739781",
"domain": null,
"id": 11260704,
"ip": "37.230.162.34",
"port": 20550,
"query": 20551,
"color": 0,
"city": "Moscow",
"description": "![MelonRust.ru #1 X50 [NOLIMIT | EVENTS | FPS + | PVP]](https://i.postimg.cc/prVkDr34/image.png)\nДобро пожаловать на наш сервер!\r\n ➣ Вайпы в каждую пятницу в 18:00\r\n ➣ Рейты: x2\r\n ➣ Карта: 3500 \r\n ➣ Максимальное кол-во игроков в команде Nolimit\r\n ➣ Моментальный крафт\r\n ➣ Адекватная модерация\\ администрация\r\n ➣ Store - https://melon.gamestores.app/ \r\n ➣ Discord - https://discord.gg/melonrust",
"game": 252490,
"owner": 164850,
"boosts": 1,
"last_offline": 1776776000,
"score": 0,
"last_online": 1776988213,
"icon": null,
"name": "MelonRust.ru #1 X50 [NOLIMIT | EVENTS | FPS + | PVP]",
"connect": "37.230.162.34:20550",
"request": "37.230.162.34:20551",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2623",
"numplayers": 2,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 90,
"add_date": 1774555202,
"last_update": 1776988213,
"banned": false,
"wipe": 1776776261,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 319,
"language": "ru",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": {
"username": "stiriner",
"avatar": "no.jpg",
"last_online": 1774991336
},
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11260704");
$data = json_decode($json, true);
var_dump($data);