JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11741991
json
{
  "response": {
    "build": 118271,
    "extraFlags": 1,
    "nameHeaderRaw": "f0df1c010003",
    "statusFlags": 2,
    "type": 0,
    "unknownStatusFlags": 0,
    "steam_id": null,
    "domain": null,
    "id": 11741991,
    "ip": "87.98.147.37",
    "port": 28567,
    "query": 28567,
    "color": 0,
    "city": "Gravelines",
    "description": null,
    "game": 513710,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780554805,
    "last_online": 1780413657,
    "icon": null,
    "name": "Plume Events",
    "connect": "87.98.147.37:28567",
    "request": "87.98.147.37:28567",
    "map": null,
    "gamemode": "community-direct",
    "version": "1.3.0.1.118271",
    "numplayers": 0,
    "maxplayers": 64,
    "bots": 0,
    "secured": null,
    "private": true,
    "country": "FR",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1780412915,
    "last_update": 1780554805,
    "banned": false,
    "wipe": null,
    "official": false,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5506,
    "language": "fr",
    "parked": false,
    "app": {
      "id": 11540,
      "steam_id": 513710,
      "name": "SCUM",
      "url": "scum"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Przykłady kodu

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