JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11607111
json
{
  "response": {
    "fps": 78,
    "fps_avg": 114,
    "entities_count": 57058,
    "world_seed": 2147483647,
    "world_size": 3000,
    "steam_id": "90286277379041301",
    "domain": null,
    "id": 11607111,
    "ip": "66.11.124.136",
    "port": 28080,
    "query": 28015,
    "color": 0,
    "city": "Charlotte",
    "description": "![[PVE] Fortress Haven [PVE]](https://i.imgur.com/0IPTdl5.jpg)\nWelcome to Fortress Haven.\r\n\r\nThis is not a normal server.\r\nScrap is not given out by barrels, boxes, crates, or by any other means.\r\nYou will have to grind to get scrap.\r\n\r\nNPC's are at monuments and airdrops.\r\n\r\nCrate and barrel item numbers are altered.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780555469,
    "last_online": 1780542034,
    "icon": null,
    "name": "[PVE] Fortress Haven [PVE]",
    "connect": "66.11.124.136:28080",
    "request": "66.11.124.136:28015",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "US",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1779915495,
    "last_update": 1780555469,
    "banned": false,
    "wipe": 1778297624,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 12318,
    "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/11607111");
$data = json_decode($json, true);
var_dump($data);