JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/4237498
json
{
  "response": {
    "steam_id": "90285649535208466",
    "domain": null,
    "id": 4237498,
    "ip": "49.13.241.151",
    "port": 7779,
    "query": 27016,
    "project_id": null,
    "color": 0,
    "city": "Nuremberg",
    "description": "",
    "game": 346110,
    "owner": null,
    "boosts": 1,
    "last_offline": 1778568778,
    "last_online": 1781275249,
    "icon": null,
    "name": "EU-UnOff-Legacy-Cluster-PVE - The Center",
    "connect": "49.13.241.151:7779",
    "request": "49.13.241.151:27016",
    "map": "TheCenter",
    "gamemode": "TestGameMode_C",
    "version": "361.7",
    "numplayers": 4,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 33,
    "add_date": 1715371045,
    "last_update": 1781275249,
    "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": 1691,
    "language": "de",
    "parked": false,
    "app": {
      "id": 67,
      "steam_id": 346110,
      "name": "ARK: Survival Evolved",
      "url": "ark-survival-evolved"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Przykłady kodu

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