JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/8297409
json
{
  "response": {
    "fps": 43,
    "fps_avg": 42,
    "entities_count": 163547,
    "world_seed": 6738,
    "world_size": 5000,
    "steam_id": 90286201697208340,
    "domain": null,
    "id": 8297409,
    "ip": "78.46.106.155",
    "port": 28021,
    "query": 28022,
    "color": 0,
    "city": "Falkenstein",
    "description": "![Celestial Rust DUO x5 RAIDABLE BASES|TP|HOMES|KITS|+MORE](https://celestialrust.co.uk/assets/images/backdrop-512x288.jpg)\nCelestialRust.co.uk PvP DUO x5 Gather - Wiped every 2-3 weeks, last wipe 8th May\r\n=============> TWO MAN TEAMS ONLY <=============\r\n===============> RAIDABLE BASES <===============\r\nHelpful website and Discord\r\nActive non-playing admins. (We help ALL and don't take sides.)\r\nLots and LOTS of really cool stuff to make your life more enjoyable.\r\nHome Recycler - Rocket Turrets - Heli Crash - Shoot Down Cargo Planes - Lock-On Rockets - Treasure Box and more.\r\nACTIVE DISCORD: CelestialRust.co.uk/discord    We encourage memes.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779012771,
    "last_online": 1780555235,
    "icon": null,
    "name": "Celestial Rust DUO x5 RAIDABLE BASES|TP|HOMES|KITS|+MORE",
    "connect": "78.46.106.155:28021",
    "request": "78.46.106.155:28022",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 77,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1743250231,
    "last_update": 1780555235,
    "banned": false,
    "wipe": 1778240510,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2871,
    "language": "de",
    "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/8297409");
$data = json_decode($json, true);
var_dump($data);