JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11159809
json
{
  "response": {
    "fps": 56,
    "fps_avg": 56,
    "entities_count": 84255,
    "world_seed": 1304643971,
    "world_size": 3750,
    "steam_id": "90285467421896716",
    "domain": null,
    "id": 11159809,
    "ip": "66.51.96.53",
    "port": 28040,
    "query": 28041,
    "color": 0,
    "city": "Ashburn",
    "description": "Welcome to Paradise Lost – our Vanilla Rust PvP server!\\\r\n\\\r\nRules:\\\r\n• No cheating or hacking\\\r\n• No exploiting or glitch abuse\\\r\n• Respect all players\\\r\n• No racism, hate speech, or excessive toxicity\\\r\n• No offensive language\\\r\n\\\r\nServer Info:\\\r\n• 100% Vanilla Gameplay\\\r\n• No Kits | No TP | No Mods\\\r\n• Standard Gather & Loot Rates\\\r\n• Full PvP & Raiding\\\r\n• Active Admins\\\r\n\\\r\nSurvive. Build. Raid. Dominate.\\\r\n\\\r\nHave fun and survive!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1778178186,
    "last_online": 1779201620,
    "icon": null,
    "name": "Paradise Lost",
    "connect": "66.51.96.53:28040",
    "request": "66.51.96.53:28041",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2624",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1772228140,
    "last_update": 1779201620,
    "banned": false,
    "wipe": 1778178236,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4198,
    "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/11159809");
$data = json_decode($json, true);
var_dump($data);