JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/3875321
json
{
  "response": {
    "fps": 148,
    "fps_avg": 97,
    "entities_count": 102603,
    "world_seed": 6042026,
    "world_size": 4500,
    "steam_id": "90286604361254915",
    "domain": null,
    "id": 3875321,
    "ip": "205.209.105.34",
    "port": 28310,
    "query": 28245,
    "color": 0,
    "city": "Englewood Cliffs",
    "description": "![Rusty Haven PvE Survival](https://i.imgur.com/p8A8HDx.png)\nHarder Custom Heli HP, Zombie Hordes, Buyable Heli Battles, Monument Bradleys, Convoy, Armored Trains, Heavy Oilrig, Skinner plugin, CargoPlaneCrash, PlaneCrash, Purge on the last 17 hours before wipe, 1/2 decay rate, Kits, SkillTree, ChestStacks, RemoverTool, TeleportGUI, Supply and Demand Economics economy in town, Quests, Vehicle License and much more, Donator access to VIP perks, Friendly environment and and no active or annoying Admin, Powered by GTXGaming.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780596862,
    "last_online": 1780600229,
    "icon": null,
    "name": "Rusty Haven PvE Survival",
    "connect": "205.209.105.34:28310",
    "request": "205.209.105.34:28245",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 2,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 62,
    "add_date": 1713339137,
    "last_update": 1780600229,
    "banned": false,
    "wipe": 1780596886,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1491,
    "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/3875321");
$data = json_decode($json, true);
var_dump($data);