JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11260639
json
{
  "response": {
    "fps": 60,
    "fps_avg": 60,
    "entities_count": 34785,
    "world_seed": 19820423,
    "world_size": 2500,
    "steam_id": "90286425375867913",
    "domain": null,
    "id": 11260639,
    "ip": "194.69.160.95",
    "port": 28063,
    "query": 28065,
    "color": 0,
    "city": "City of London",
    "description": "![Rusty Pop 10x](https://rust-server-images.physgun.com/7b89f4d19424ab7fa8bbfc9e877c278c0d4d37a2c8db27efc15b71645adec058.png)\nWelcome to **Rusty Pop 10x** — the ultimate high-rate Rust experience built for fast progression, fun PvP and an active community!\r\n\r\n🔥 **10x Gather Rates** – Skip the grind and jump straight into the action\r\n⚒️ **/MyMini** – Spawn your own minicopter anytime and dominate the skies\r\n📸 **Insta Craft** – No waiting around — craft instantly and keep moving\r\n🏠 **Quick Start Kits** – Get geared up fast and start building or raiding\r\n💥 **Enhanced Loot & Events** – Better loot tables and frequent server events\r\n🛡️ **Balanced PvP** – Fair fights with boosted gameplay for nonstop action\r\n👥 **Active Community & Admins** – Friendly players and responsive staff\r\n\r\nWhether you’re a solo grinder or part of a clan, **Rusty Pop 10x** delivers a fast-paced, action-packed Rust experience without the boring grind.\r\n\r\n👉 Join now and make your mark  dominate, build, raid, repeat!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1778321583,
    "last_online": 1780669831,
    "icon": null,
    "name": "Rusty Pop 10x",
    "connect": "194.69.160.95:28063",
    "request": "194.69.160.95:28065",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1774555200,
    "last_update": 1780669831,
    "banned": false,
    "wipe": 1778427900,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4462,
    "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/11260639");
$data = json_decode($json, true);
var_dump($data);