JSON для программ, сайтов и прочего

text
https://api.gamemonitoring.ru/servers/12109780
json
{
  "response": {
    "fps": 204,
    "fps_avg": 201,
    "map_url": "procedural_map_4500_seed_1972051305_r288",
    "map_kind": "procedural",
    "map_name": "Procedural Map",
    "map_seed": 1972051305,
    "map_size": 4500,
    "map_revision": 288,
    "entities_count": 120383,
    "steam_id": "90291684330178587",
    "domain": null,
    "id": 12109780,
    "ip": "38.22.128.234",
    "port": 28025,
    "query": 28027,
    "project_id": null,
    "color": 0,
    "city": "Bloomington",
    "description": "![MelonCatRS Staging | No Raiding/Killing | No Decay | Noob Frien](https://www.dropbox.com/scl/fi/u6p5luxkfypxq89imq9gl/MCRS_512-256.png?rlkey=9yqqczbo9e7h9nsdnqk8peada&dl=1)\nRust Staging Server for new and friendly players only. Test base design and improve survival skills. NO PVP, Hacking, Raiding, Looting, or Griefing. Bad language and behavior will not be tolerated and will result in immediate ban from the server.\r\n * If you dont like these rules don't connect you will be BANNED! \r\n * No Decay - Vanilla Staging Server \r\n * Server forced wipes only. They can be random. \r\n * Active Server Admins",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1787992778,
    "last_online": 1787996708,
    "icon": null,
    "name": "MelonCatRS Staging | No Raiding/Killing | No Decay | Noob Frien",
    "connect": "38.22.128.234:28025",
    "request": "38.22.128.234:28027",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2633",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1783801941,
    "last_update": 1787996708,
    "ban_reason": null,
    "banned": false,
    "wipe": 1787829655,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4993,
    "language": "en",
    "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/12109780");
$data = json_decode($json, true);
var_dump($data);