JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11511340
json
{
  "response": {
    "fps": 21,
    "fps_avg": 22,
    "entities_count": 209986,
    "world_seed": 2012800150,
    "world_size": 5500,
    "steam_id": "90286575743507456",
    "domain": null,
    "id": 11511340,
    "ip": "135.181.179.111",
    "port": 28017,
    "query": 28018,
    "color": 0,
    "city": "Helsinki",
    "description": "The Hunting Lodge 1000x PvE Server.  Server runs multiple premium mods including RaidableBases \r\n BossMonsters \r\n  BradleyTiers \r\n HelicopterDrops \r\n HeavyEvents \r\n BradleyDrops \r\n AbandonedBases \r\n ArmoredTrain \r\n Backpacks \r\n Basements \r\n BetterNPC \r\n BetterTC \r\n BlueprintShare \r\n Convoy \r\n DungeonEvents \r\n HarborEvent \r\n HeliCrashEvent \r\n ItemPerks \r\n ItemPerksLegendaryItems \r\n MonumentEvents \r\n SkillTree \r\n XPerience \r\n And Many Many more! \r\n  VIP Kits available",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780533260,
    "last_online": 1780579231,
    "icon": null,
    "name": "The Hunting Lodge 1000x PvE",
    "connect": "135.181.179.111:28017",
    "request": "135.181.179.111:28018",
    "map": "discord.gg/hYQxfVK6ZU",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 2,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "FI",
    "status": true,
    "votes": 0,
    "points": 62,
    "add_date": 1779353841,
    "last_update": 1780579231,
    "banned": false,
    "wipe": 1778188776,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1030,
    "language": "fi",
    "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/11511340");
$data = json_decode($json, true);
var_dump($data);