JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11189377
json
{
  "response": {
    "steam_id": "90286593622539293",
    "domain": null,
    "id": 11189377,
    "ip": "91.229.114.71",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Chicago",
    "description": "![[US] Sailor's PVE Retreat Island](https://www.dropbox.com/scl/fi/rkvlhekwry54ghfeqcisr/sailor3.png?rlkey=90w3p0761kqihea118qh2pk36&st=2s2abvqs&dl=1)\nWe are a PVE server using TruePVE that prevents KOS/raiding for roleplay, training, relaxing and practice \r\nJobs include Miner, Logger, Skinner.\r\nWe have features for your enjoyment: 4x stack, Backpack, Building Upgrade, Clans, DTD, Frame Box, Guarded Crate, HarborEvent, Removal Tool, Teleport, Prevent Looting, and much more. \r\nPlease feel free to contact me (Mbesailor) at my Discord channel \r\nPress External Website below for my Discord",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780593863,
    "last_online": 1780587634,
    "icon": null,
    "name": "[US] Sailor's PVE Retreat Island",
    "connect": "91.229.114.71:28015",
    "request": "91.229.114.71:28017",
    "map": "Procedural Map",
    "gamemode": "Rust",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1772699049,
    "last_update": 1780593863,
    "banned": false,
    "wipe": 1779368169,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 10743,
    "language": "en",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Przykłady kodu

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