Мы предлагаем широкий выбор методов интеграции. Вы можете воспользоваться любым из них или создать свой собственный с помощью JSON API. Если у вас есть предложение по добавлению нового метода интеграции, пожалуйста, свяжитесь с нами. Связаться с нами
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/227781
json
{
"response": {
"fps": 140,
"fps_avg": 139,
"entities_count": 177613,
"world_seed": 1527377351,
"world_size": 5000,
"id": 227781,
"ip": "170.249.192.26",
"port": 28015,
"query": 28017,
"color": 0,
"description": "no raiding, no pvp, killing sleepers is still pvp. no children, no whining.\r\nJoin discord for the full rule list.\r\n!wipe - Wipe info",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1754595358,
"score": null,
"last_online": 1755692151,
"icon": null,
"name": "noob navy [PVE-1] - MATURE ONLY",
"connect": "170.249.192.26:28015",
"request": "170.249.192.26:28017",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2594",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1582979092,
"last_update": 1755692151,
"banned": false,
"wipe": 1754595605,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust",
"popular_maps_available": false
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}
Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/227781");
$data = json_decode($json, true);
var_dump($data);