JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11260618
json
{
  "response": {
    "fps": 160,
    "fps_avg": 157,
    "entities_count": 35275,
    "world_seed": 62520,
    "world_size": 2500,
    "steam_id": "90286601650411542",
    "domain": null,
    "id": 11260618,
    "ip": "217.146.80.178",
    "port": 28080,
    "query": 28015,
    "color": 0,
    "city": "City of London",
    "description": "![SilverRust 10x Solo/Duo/Trio [Loot+|MyMini|Shop|PvP]](https://i.imgur.com/xgjAzi6.png)\nWelcome To SilverRust 10x!\r\n\r\n✦ No Blueprints - All unlocked from spawn !\r\n✦ 10x Balanced Gathering - Fast paced gameplay !\r\n✦ Manually curated loot - Boosted & Balanced !\r\n✦ Spawn /mymini with infinite fuel !\r\n✦ Instant Craft - No waiting !\r\n✦ Unlimited Teleports - Unlimited BGrade !\r\n✦ SkinBox - RemoverTool - MiniCopter !\r\n✦ Custom Raidable Bases & PvP Event Zones !\r\n✦ TC Repair All & Upgrade from your Tool Cupboard !\r\n✦ Furnace Upgrades - Boost your smelting speed & output !\r\n✦ In-game Leaderboards - Kills, Deaths, Top Clans & more !\r\n\r\nJoin our Discord to claim rewards & stay updated :\r\nhttps://discord.gg/hJdqkkPFWe\r\n\r\n24/7 Admin Support - Fair & Active Staff !",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780590870,
    "last_online": 1780630229,
    "icon": null,
    "name": "SilverRust 10x Solo/Duo/Trio [Loot+|MyMini|Shop|PvP]",
    "connect": "217.146.80.178:28080",
    "request": "217.146.80.178:28015",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1774555199,
    "last_update": 1780630229,
    "banned": false,
    "wipe": 1780590927,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4141,
    "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/11260618");
$data = json_decode($json, true);
var_dump($data);