JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/10661894
json
{
  "response": {
    "fps": 60,
    "fps_avg": 60,
    "entities_count": 84496,
    "world_seed": 395807240,
    "world_size": 3700,
    "steam_id": "90286589683764254",
    "domain": null,
    "id": 10661894,
    "ip": "66.51.99.76",
    "port": 28000,
    "query": 28001,
    "color": 0,
    "city": "Dallas",
    "description": "![Rusty Nail PVE CARBON](https://i.imgur.com/wM79aT6.png)\nPVE CARBON MONTHLY NO BP WIPE \r\nSERVER BUILD IN PROGRESS \r\nServer Restarts Daily at 0400 CST \r\nDiscord: https://discord.gg/3pdvanbFjU \r\nEdited Loot Tables \r\nNight Skip Vote @1900 \r\nImproved Bradley Tiers \r\nNPCs At Every Monument (still being configured) \r\nF15 Crash Event \r\nHackable Locked Crates require laptop to hack \r\nHeavily guarded locked crate events \r\nComing Soon Battle Pass, Shop System, XP Buffs \r\nPLAY HERE AND PROVIDE FEEDBACK ON WHAT YOU WOULD LIKE IN DISCORD",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1778179386,
    "last_online": 1780599032,
    "icon": null,
    "name": "My Untitled Rust Server",
    "connect": "66.51.99.76:28000",
    "request": "66.51.99.76:28001",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1764544838,
    "last_update": 1780599032,
    "banned": false,
    "wipe": 1778179641,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3432,
    "language": "en",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/10661894");
$data = json_decode($json, true);
var_dump($data);