JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11158372
json
{
  "response": {
    "fps": 52,
    "fps_avg": 56,
    "entities_count": 122972,
    "world_seed": 1146530873,
    "world_size": 4800,
    "steam_id": "90286604611539995",
    "domain": null,
    "id": 11158372,
    "ip": "148.251.22.167",
    "port": 28010,
    "query": 28011,
    "color": 0,
    "city": "Falkenstein",
    "description": "![[EU] Nomad PvE 10x - Skill Tree - Raids - Economy](https://images.nomadpve.com/10xPvEBanner.png)\n♦ Rules: ♦\r\n◦ No Griefing, Toxicity, Harassment, BS of any kind (More details in-game)\r\n◦ Accusations must be backed with proof\r\n\r\n♦ Special: ♦\r\n◦ Tiered Progression - Unlock perks via Playtime\r\n◦ Custom Currency Items & Upgradable features\r\n◦ Full Economy - Buy | Sell\r\n◦ Detailed /Info panel & Discord\r\n◦ Abandoned & Raidable Bases\r\n◦ Fully Custom PvE Experience\r\n\r\n♦ Other: ♦\r\n◦ No Server Radiation\r\n◦ Custom Skill Tree\r\n◦ Tons of Npc Events\r\n◦ True PvE Experience\r\n◦ Beginner Friendly\r\n◦ Quality of Life features\r\n◦ Active Discord Community\r\n◦ Anti-Hack & Cheat Detection\r\n◦ Active Admins\r\n◦ Soo much more, you must experience this for your self!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780597469,
    "last_online": 1780605029,
    "icon": null,
    "name": "[EU] Nomad PvE 10x - Skill Tree - Raids - Economy",
    "connect": "148.251.22.167:28010",
    "request": "148.251.22.167:28011",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 2,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 62,
    "add_date": 1772228108,
    "last_update": 1780605029,
    "banned": false,
    "wipe": 1780597417,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1925,
    "language": "de",
    "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/11158372");
$data = json_decode($json, true);
var_dump($data);