JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/9500899
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 9500899,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": null,
    "description": null,
    "game": 252490,
    "owner": 123104,
    "boosts": 1,
    "last_offline": 1756334708,
    "last_online": 1752604231,
    "icon": null,
    "name": "Trick-Rust Zlevels 20x+ Quad #1",
    "connect": null,
    "request": null,
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": null,
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "RU",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1750123050,
    "last_update": 1756334708,
    "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": 13284,
    "language": "ru",
    "parked": true,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": {
      "username": "imkissik",
      "avatar": "no.jpg"
    },
    "mods": [
      {
        "id": 947,
        "name": "IQRates"
      },
      {
        "id": 1123,
        "name": "NTeleportation"
      },
      {
        "id": 522,
        "name": "Backpack"
      },
      {
        "id": 1387,
        "name": "Stack Modifier"
      },
      {
        "id": 1065,
        "name": "MyMiniUI"
      },
      {
        "id": 1493,
        "name": "Vending Plus"
      }
    ],
    "disabled_modules": []
  }
}

Przykłady kodu

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