JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11810579
json
{
  "response": {
    "steam_id": 90287017032704000,
    "domain": null,
    "id": 11810579,
    "ip": "176.10.252.113",
    "port": 27026,
    "query": 27032,
    "project_id": null,
    "color": 0,
    "city": "Skivarp",
    "description": "[Mogadishu](https://steamcommunity.com/sharedfiles/filedetails/?id=2987280003)\r\n[Invasion](https://steamcommunity.com/sharedfiles/filedetails/?id=3437926965)\r\n[BigLearning](https://steamcommunity.com/sharedfiles/filedetails/?id=2947290153)\r\n[MECFaction](https://steamcommunity.com/sharedfiles/filedetails/?id=3701549420)\r\n[ADesertStormPack](https://steamcommunity.com/sharedfiles/filedetails/?id=3151282430)",
    "game": 736590,
    "owner": null,
    "boosts": 1,
    "last_offline": 1781465152,
    "last_online": 1781477431,
    "icon": null,
    "name": "Clan War | Mogadishu",
    "connect": "176.10.252.113:27026",
    "request": "176.10.252.113:27032",
    "map": "Mogadishu Vehicle",
    "gamemode": "OHD Vehicle Overhaul",
    "version": "89",
    "numplayers": 0,
    "maxplayers": 64,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "SE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1781465152,
    "last_update": 1781477431,
    "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": 13,
    "language": "sv",
    "parked": false,
    "app": {
      "id": 52393,
      "steam_id": 736590,
      "name": "Operation: Harsh Doorstop",
      "url": "operation-harsh-doorstop"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Przykłady kodu

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