JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11663682
json
{
  "response": {
    "steam_id": "90286953555520518",
    "domain": null,
    "id": 11663682,
    "ip": "68.106.40.55",
    "port": 8766,
    "query": 27016,
    "project_id": null,
    "color": 0,
    "city": "Queen Creek",
    "description": null,
    "game": 1326470,
    "owner": null,
    "boosts": 1,
    "last_offline": 1781625186,
    "last_online": 1781359898,
    "icon": null,
    "name": "Deadbygaming Server",
    "connect": "68.106.40.55:8766",
    "request": "68.106.40.55:27016",
    "map": "Normal",
    "gamemode": "Sons Of the Forest",
    "version": "0.11.3.0.0",
    "numplayers": 0,
    "maxplayers": 8,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "US",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1780178743,
    "last_update": 1781625186,
    "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": 2192,
    "language": "en",
    "parked": false,
    "app": {
      "id": 1569757,
      "steam_id": 1326470,
      "name": "Sons Of The Forest",
      "url": "sons-of-the-forest"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Przykłady kodu

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