JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11778780
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 11778780,
    "ip": "144.31.46.5",
    "port": 10091,
    "query": 10091,
    "project_id": null,
    "color": 0,
    "city": "Washington",
    "description": "[{\"id\":\"JgJ-7-JzAb\",\"type\":\"paragraph\",\"data\":{\"text\":\"СМП сервер где все равны. Сражайся, получай вещи, лутай данжи. На сервере присутствует крафт Легендарного копья!\"}}]",
    "game": 9000034,
    "owner": 190812,
    "boosts": 1,
    "last_offline": 1781291020,
    "last_online": 1781347218,
    "icon": null,
    "name": "<< Stacked SMP [ 1.21.11 ] >> [MMVERIFY-5134169A]",
    "connect": "144.31.46.5:10091",
    "request": "144.31.46.5:10091",
    "map": null,
    "gamemode": null,
    "version": "1.21.11, 26.1.2",
    "numplayers": 9,
    "maxplayers": 999,
    "bots": 0,
    "secured": null,
    "private": null,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 90,
    "add_date": 1781291020,
    "last_update": 1781347218,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 44,
    "language": "en",
    "parked": false,
    "app": {
      "id": 169,
      "steam_id": 9000034,
      "name": "Minecraft",
      "url": "minecraft"
    },
    "server_owner": {
      "username": "a64887118",
      "avatar": "91a0075c-2d1d-426a-80d8-4758901e6206.jpg"
    },
    "mods": [],
    "disabled_modules": []
  }
}

Przykłady kodu

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