JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/1463016
json
{
  "response": {
    "steam_id": "90286701896484888",
    "domain": null,
    "id": 1463016,
    "ip": "193.243.190.11",
    "port": 27061,
    "query": 27061,
    "project_id": null,
    "color": 0,
    "city": "Chicago",
    "description": "",
    "game": 4000,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779602009,
    "last_online": 1780875133,
    "icon": null,
    "name": "Billy's Gmodstore Demo Server",
    "connect": "193.243.190.11:27061",
    "request": "193.243.190.11:27061",
    "map": "gm_neon_construct",
    "gamemode": "DarkRP",
    "version": "2026.04.29",
    "numplayers": 0,
    "maxplayers": 128,
    "bots": 0,
    "secured": true,
    "private": true,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1697310563,
    "last_update": 1780875133,
    "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": 1126,
    "language": "en",
    "parked": false,
    "app": {
      "id": 30,
      "steam_id": 4000,
      "name": "Garry's Mod",
      "url": "garrys-mod"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Przykłady kodu

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