JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11771238
json
{
  "response": {
    "fps": 108,
    "fps_avg": 110,
    "entities_count": 67477,
    "world_seed": 352165132,
    "world_size": 3500,
    "steam_id": "90286956794070031",
    "domain": null,
    "id": 11771238,
    "ip": "147.135.31.108",
    "port": 28025,
    "query": 28026,
    "project_id": null,
    "color": 0,
    "city": "Oakton",
    "description": "![The Good Days Rust |4X|Raid|No BP/Lvl 3 WB/Mymini/PvP-PvE/Kits/](https://i.ibb.co/mVDSqLqH/header.png)\nWelcome to The Good Days!\r\nMonthly Wipes\r\nBase Raids\r\n4X Gather Rates, Fast Craft, Better Loot, Level 3 Workbench Unlocked\r\nPvX Gameplay, Raidable Bases\r\nEarn Currency While Online, Shop, Rewards System, Clans, Backpacks\r\nTeleports, KOTH, Convoys, Roaming NPCs\r\nRegular Updates Solo, Duo, Trio & Clan Friendly\r\n\r\nJoin us: discord.gg/thegooddays",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1781145258,
    "last_online": 1781358035,
    "icon": null,
    "name": "The Good Days Rust |4X|Raid|No BP/Lvl 3 WB/Mymini/PvP-PvE/Kits/",
    "connect": "147.135.31.108:28025",
    "request": "147.135.31.108:28026",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 200,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780996885,
    "last_update": 1781358035,
    "banned": false,
    "wipe": 1780971896,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 6074,
    "language": "en",
    "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/11771238");
$data = json_decode($json, true);
var_dump($data);