JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11708610
json
{
  "response": {
    "steam_id": "90286522674336779",
    "domain": null,
    "id": 11708610,
    "ip": "151.106.52.146",
    "port": 20155,
    "query": 20156,
    "project_id": null,
    "color": 0,
    "city": "Strasbourg",
    "description": null,
    "game": 1604030,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780262862,
    "last_online": 1780922592,
    "icon": null,
    "name": "banpierniczka",
    "connect": "151.106.52.146:20155",
    "request": "151.106.52.146:20156",
    "map": "VRisingWorld",
    "gamemode": "a0bbf0b2-2651-47d6-882a-c1cf5d1a9623",
    "version": "0.0.0.1",
    "numplayers": 0,
    "maxplayers": 10,
    "bots": 0,
    "secured": true,
    "private": true,
    "country": "FR",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1780262862,
    "last_update": 1780922592,
    "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": 3564,
    "language": "fr",
    "parked": false,
    "app": {
      "id": 55075,
      "steam_id": 1604030,
      "name": "V Rising",
      "url": "v-rising"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Przykłady kodu

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