API для Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11143474,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": "Moscow",
"description": "\n·вайп проходит каждую пятницу, в 16:00 по МСК\r\n·Рейты на ресурсы x2\r\n·Рейты на компоненты x1\r\n·Скорость переработчика x2\r\n·На 50% снижено содержание шкафа!\r\n·нет лимита в командах\r\n·В ранчо, рыбацких деревнях, амбарах есть переработчики, НПЗ и станция дронов\r\n·Защита от DDoS атак + северный AntiCheat\r\n·Активная администрация\r\n·Discord: https://discord.gg/zXvBvPBEC2\r\n·Store: https://desert1rust.gamestores.app/",
"game": 252490,
"owner": 171414,
"boosts": 1,
"last_offline": 1776577956,
"last_online": 1775644882,
"icon": null,
"name": "Server",
"connect": null,
"request": null,
"map": null,
"gamemode": null,
"version": null,
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": null,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1771945557,
"last_update": 1776577956,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": 1,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 13476,
"language": "ru",
"parked": true,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": {
"username": "melt0704_16846",
"avatar": "no.jpg"
},
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11143474");
$data = json_decode($json, true);
var_dump($data);