JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11501140
json
{
  "response": {
    "fps": 30,
    "fps_avg": 30,
    "entities_count": 45677,
    "world_seed": 1337,
    "world_size": 3000,
    "steam_id": "90286530882254854",
    "domain": null,
    "id": 11501140,
    "ip": "146.59.53.230",
    "port": 28040,
    "query": 28042,
    "color": 0,
    "city": "Warsaw",
    "description": "![[PL/EN] SOLO/DUO | 2x | VANILLA+ | ACTIVE ADMIN | WIPE WEEKLY](https://i.imgur.com/i1op0be.png)\nPL: Weekly wipes | 2x gather | Solo/Duo only | Active admin | No pay2win | EN: Balanced 2x server | Fair gameplay rs0000000icR0S&A80S>:)",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780579417,
    "last_online": 1780504229,
    "icon": null,
    "name": "[PL/EN] SOLO/DUO | 2x | VANILLA+ | ACTIVE ADMIN | WIPE WEEKLY",
    "connect": "146.59.53.230:28040",
    "request": "146.59.53.230:28042",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 40,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "PL",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1779207167,
    "last_update": 1780579417,
    "banned": false,
    "wipe": 1778276821,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 11086,
    "language": "pl",
    "parked": false,
    "app": {
      "id": 252490,
      "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/11501140");
$data = json_decode($json, true);
var_dump($data);