JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/5387845
json
{
  "response": {
    "fps": 137,
    "fps_avg": 138,
    "entities_count": 114605,
    "world_seed": 1309209684,
    "world_size": 4500,
    "steam_id": "90286608555846674",
    "domain": null,
    "id": 5387845,
    "ip": "145.40.185.11",
    "port": 28015,
    "query": 28014,
    "color": 0,
    "city": "Southampton",
    "description": "![Tactical Tea Time - PvE](https://imgur.com/yIAPcDh.jpg)\nWelcome to Tactical Tea Time, the PvE server where survival challenges blend seamlessly with quirky camaraderie.\r\nPrepare to fortify, fight, and forge alliances amidst the unpredictable wilderness of Rust. Join us to strategize and survive, and maybe even relax a little between the battles. \r\n\r\nSee our Discord for full rules, info and to join our community.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780603462,
    "last_online": 1780607014,
    "icon": null,
    "name": "Tactical Tea Time - PvE",
    "connect": "145.40.185.11:28015",
    "request": "145.40.185.11:28014",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1722420265,
    "last_update": 1780607014,
    "banned": false,
    "wipe": 1780595413,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3266,
    "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/5387845");
$data = json_decode($json, true);
var_dump($data);