Rust
API для Testing Server
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11489433json
{
"response": {
"fps": 30,
"fps_avg": 30,
"entities_count": 60058,
"world_seed": 1575511587,
"world_size": 3500,
"steam_id": "90285503002525727",
"domain": null,
"id": 11489433,
"ip": "185.189.255.64",
"port": 35300,
"query": 35310,
"color": 0,
"city": "Moscow",
"description": "\nХарактеристики сервера:\r\nЛимит команды: Нет\r\nПереработчики во всех мирных зонах\r\nСодержание шкафа снижено на 50%\r\nАктивная администрация\r\nНет доната!\r\n\r\nВайп: Двухнедельный по понедельникам в 13:00 по МСК / следующий вайп 07.05\r\n\r\nНаш Telegram - t.me/newerarust\r\nНаш Discord - discord.gg/E4xCdgPD",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1778263389,
"score": 1,
"last_online": 1778254819,
"icon": null,
"name": "Testing Server",
"connect": "185.189.255.64:35300",
"request": "185.189.255.64:35310",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2625",
"numplayers": 0,
"maxplayers": 200,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1776445594,
"last_update": 1778263389,
"banned": false,
"wipe": 1778253046,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 7903,
"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/11489433");
$data = json_decode($json, true);
var_dump($data);