JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11501708
json
{
  "response": {
    "fps": 54,
    "fps_avg": 53,
    "entities_count": 75879,
    "world_seed": 1897507005,
    "world_size": 3500,
    "steam_id": "90286581687280669",
    "domain": null,
    "id": 11501708,
    "ip": "37.223.226.238",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Barcelona",
    "description": "![[ESP] NYKO SERVER  / X3 / PVP / DROPS / discord.gg/zRQEDXTexS](https://i.imgur.com/gIvWb1v.png)\nNyko Server\r\nVanilla X3\r\nDrops\r\nRates x3\r\nWipe first Thursday (Forced)\r\nRUST+\r\nIP: 37.223.226.238:28015\r\nhttps://discord.gg/zRQEDXTexS",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780546460,
    "last_online": 1780583443,
    "icon": null,
    "name": "[ESP] NYKO SERVER  / X3 / PVP / DROPS / discord.gg/zRQEDXTexS",
    "connect": "37.223.226.238:28015",
    "request": "37.223.226.238:28016",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "ES",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779207178,
    "last_update": 1780583443,
    "banned": false,
    "wipe": 1778180382,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4840,
    "language": "es",
    "parked": false,
    "app": {
      "id": 252490,
      "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/11501708");
$data = json_decode($json, true);
var_dump($data);