JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/3592166
json
{
  "response": {
    "fps": 30,
    "fps_avg": 30,
    "entities_count": 70783,
    "world_seed": 8875128,
    "world_size": 3500,
    "steam_id": "90286609399062551",
    "domain": null,
    "id": 3592166,
    "ip": "185.216.144.114",
    "port": 28080,
    "query": 28015,
    "color": 0,
    "city": "City of London",
    "description": "![Seek n Destroy | EU Vanilla Solo Monthly](https://seeknd.net/rust/snd1.png)\nWelcome to Seek n Destroy! PvP centric servers and gaming community. \r\n\r\n- Join our Discord https://discord.gg/Nze7r4VZCC\r\n- Too long to remember? Go to www.seeknd.net and click the Discord button!\r\n \r\n* No Cheating and cheeky stuff allowed.\r\n* No Bans earlier..err.. just no cheeky stuff mmk?\r\n* No Racism, politics and other stuff that gets people muscle pulls in the brain.\r\n* No muscle pulls in the brain.\r\n* DIR C:\\Rules\\*.*",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779891203,
    "last_online": 1780613426,
    "icon": null,
    "name": "Seek n Destroy | EU Vanilla Solo Monthly",
    "connect": "185.216.144.114:28080",
    "request": "185.216.144.114:28015",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 2,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1711395261,
    "last_update": 1780613426,
    "banned": false,
    "wipe": 1780605031,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2105,
    "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/3592166");
$data = json_decode($json, true);
var_dump($data);