JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11544007
json
{
  "response": {
    "steam_id": "90285926080056327",
    "domain": null,
    "id": 11544007,
    "ip": "184.170.200.113",
    "port": 25565,
    "query": 25566,
    "color": 0,
    "city": "Cape Coral",
    "description": null,
    "game": 1604030,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780086820,
    "last_online": 1780548825,
    "icon": null,
    "name": "A BisectHosting VRising Server - c77e23b9",
    "connect": "184.170.200.113:25565",
    "request": "184.170.200.113:25566",
    "map": "VRisingWorld",
    "gamemode": "a5bbe57a-002a-4c71-ac5f-7ecee08d08a3",
    "version": "0.0.0.1",
    "numplayers": 0,
    "maxplayers": 40,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1779355511,
    "last_update": 1780548825,
    "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": 2154,
    "language": "en",
    "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/11544007");
$data = json_decode($json, true);
var_dump($data);