JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11660347
json
{
  "response": {
    "steam_id": "90286301556916225",
    "domain": null,
    "id": 11660347,
    "ip": "51.79.81.203",
    "port": 17380,
    "query": 17381,
    "color": 0,
    "city": "Montreal",
    "description": null,
    "game": 1604030,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780178456,
    "last_online": 1780575159,
    "icon": null,
    "name": "Ohana",
    "connect": "51.79.81.203:17380",
    "request": "51.79.81.203:17381",
    "map": "VRisingWorld",
    "gamemode": "d465f642-9cec-486a-b14b-cbae972e5255",
    "version": "0.0.0.1",
    "numplayers": 0,
    "maxplayers": 7,
    "bots": 0,
    "secured": true,
    "private": true,
    "country": "CA",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1780178456,
    "last_update": 1780575159,
    "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": 3254,
    "language": "en",
    "parked": false,
    "app": {
      "id": 55075,
      "steam_id": 1604030,
      "name": "V Rising",
      "url": "v-rising"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Przykłady kodu

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