JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/10482081
json
{
  "response": {
    "steam_id": "90286602984069146",
    "domain": null,
    "id": 10482081,
    "ip": "178.25.188.112",
    "port": 9752,
    "query": 9754,
    "project_id": null,
    "color": 0,
    "city": "Erlenbach am Main",
    "description": null,
    "game": 346110,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780593202,
    "last_online": 1781365343,
    "icon": null,
    "name": "CityCluster-02-TheCenter-10xBreed-5xFarmXP-NoDecay",
    "connect": "178.25.188.112:9752",
    "request": "178.25.188.112:9754",
    "map": "TheCenter",
    "gamemode": "TestGameMode_C",
    "version": "358.24",
    "numplayers": 0,
    "maxplayers": 70,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1761121037,
    "last_update": 1781365343,
    "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": 6196,
    "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/10482081");
$data = json_decode($json, true);
var_dump($data);