JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/96740
json
{
  "response": {
    "modded": true,
    "fps": 173,
    "fps_avg": 175,
    "entities_count": 171870,
    "world_seed": 12765,
    "world_size": 5087,
    "steam_id": "90284383855251465",
    "domain": null,
    "id": 96740,
    "ip": "213.160.32.214",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Zurich",
    "description": "![Swiss-Gamer [PVE] [CH/DE] [Raidable Bases]](http://213.160.32.214/img/R-Banner0001.jpg)\nWillkommen auf dem Server, auf dem PVE PVE bedeutet!  \r\nDu bist neu in Rust, und moechtest ungestoert \r\nGebaeude bauen und die Welt erkunden oder einfach nur Spass haben und quatschen? \r\nDann bist du hier genau richtig!\r\n\r\nEvents:\r\n\r\n- Sputnik\r\n- Sat Dish\r\n- Airfield Event\r\n- Power Plant\r\n- Convoy\r\n- Habor\r\n- Heli Signals\r\n- Defendable Homes\r\n- Boat Control\r\n\r\nPlugins:\r\n\r\n- Stacks +\r\n- Backpack (bleibt erhalten)\r\n- Remove Tool\r\n- Recycler\r\n- Z-Level\r\n- Base Repair/Upgrade\r\n\r\nuvm.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776211315,
    "score": null,
    "last_online": 1776228014,
    "icon": null,
    "name": "Swiss-Gamer [PVE] [CH/DE] [Raidable Bases]",
    "connect": "213.160.32.214:28015",
    "request": "213.160.32.214:28016",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2623",
    "numplayers": 0,
    "maxplayers": 150,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CH",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1521536728,
    "last_update": 1776228014,
    "banned": false,
    "wipe": 1775153693,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2101,
    "language": "de",
    "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/96740");
$data = json_decode($json, true);
var_dump($data);