JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/4533717
json
{
  "response": {
    "fps": 100,
    "fps_avg": 99,
    "entities_count": 57393,
    "world_seed": 1088590290,
    "world_size": 3500,
    "steam_id": 90286603933940740,
    "domain": null,
    "id": 4533717,
    "ip": "185.207.214.206",
    "port": 35060,
    "query": 35061,
    "color": 0,
    "city": "Moscow",
    "description": "![PARADISE RUST #3 [ X2 | CLANS | KITS | TRADE ]](https://gspics.org/images/2023/06/03/0ShRLs.png)\n-Вайп каждую неделю по пятницам в 15:00 по мск\n-Добыча ресурсов X2\n-Система кланов /clan\n-Скины /skin\n-Увеличеные стаки\n-Дискорд - https://discord.gg/gBP3CeZwfU\n-Магазин - https://paradise-store.gamestores.app",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780595663,
    "last_online": 1780600831,
    "icon": null,
    "name": "PARADISE RUST #3 [ X2 | CLANS | KITS | TRADE ]",
    "connect": "185.207.214.206:35060",
    "request": "185.207.214.206:35061",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2627",
    "numplayers": 6,
    "maxplayers": 250,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "RU",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1717058966,
    "last_update": 1780600831,
    "banned": false,
    "wipe": 1780595827,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1991,
    "language": "ru",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Przykłady kodu

php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/4533717");
$data = json_decode($json, true);
var_dump($data);