JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/6606340
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 6606340,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": "Helsinki",
    "description": "![| FishingVillage | Semi-Classic | Wipe 10.04.](https://imgur.com/a/aA6iQom)\nЛимит игроков в команде: Nolimit. \r\n\r\n Характеристики сервера:\r\n • Рейты добычи ресурсов x1.5\r\n • Команда на скины /skin\r\n • Команда на скины построек /bskin",
    "game": 252490,
    "owner": 101974,
    "boosts": 1,
    "last_offline": 1774245078,
    "last_online": 1773360013,
    "icon": null,
    "name": "SEXDIAMOND RUST |X5|SKIN|nolimit|SHOP|TPR|CLANS|",
    "connect": null,
    "request": null,
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": null,
    "numplayers": 0,
    "maxplayers": 200,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "FI",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1731335769,
    "last_update": 1774245078,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 13207,
    "language": "fi",
    "parked": true,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": {
      "username": "hydrargyrum6592",
      "avatar": "3486e1ee-cd6d-4c64-a5a3-124825cca5bb.jpg"
    },
    "mods": [],
    "disabled_modules": []
  }
}

Przykłady kodu

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