JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/6691410
json
{
  "response": {
    "fps": 230,
    "fps_avg": 230,
    "entities_count": 85796,
    "world_seed": 1337,
    "world_size": 4500,
    "steam_id": "90286603452855307",
    "domain": null,
    "id": 6691410,
    "ip": "50.52.25.88",
    "port": 28088,
    "query": 28090,
    "color": 0,
    "city": "Coeur d'Alene",
    "description": "![RCE-10X PVP|NoBPs|Shop|MyMini|Skins|TPs](https://www.dropbox.com/scl/fi/nl2l2hw9ptexibjp50xr3/10xBanner.png?rlkey=5bz3t69xrw626xpp8eif1tnwb&st=qalupan3&dl=1)\nWelcome to RCE 10x NoBPs\n\n-Wipes EVERY Thursday @ 11am (PST)\n-Loot is BOOSTED to ensure PvP and Raiding\n-8 Man Clans w/ Alliances (No Team Limit)\n-No BPs & Instant Craft\n-MERGED Outpost and Bandit\n-Spawn MiniCopters with /mymini - Unlimited fuel\n/bgrade, /shop, /skin, /home, /remove, /tpr, /outpost, /trade\n\nJoin Our Discord @ discord.gg/HGCpDXxNUB",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1778841175,
    "last_online": 1780596037,
    "icon": null,
    "name": "RCE-10X PVP|NoBPs|Shop|MyMini|Skins|TPs",
    "connect": "50.52.25.88:28088",
    "request": "50.52.25.88:28090",
    "map": "RCE HIGH FPS",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 250,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1732060695,
    "last_update": 1780596037,
    "banned": false,
    "wipe": 1780594868,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1656,
    "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/6691410");
$data = json_decode($json, true);
var_dump($data);