JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11252134
json
{
  "response": {
    "fps": 81,
    "fps_avg": 78,
    "entities_count": 67647,
    "world_seed": 49924,
    "world_size": 3500,
    "steam_id": "90285875485393921",
    "domain": null,
    "id": 11252134,
    "ip": "81.16.176.157",
    "port": 7201,
    "query": 7203,
    "color": 0,
    "city": "Solihull",
    "description": "![RustyRing Solo/Duo, Softcore, EU, 50% Decay](https://www.dropbox.com/scl/fi/5w929b0kf8pjgilmkowpf/Rusty-Ring-Banner-12.png?rlkey=n46q26hgl353mii947otfqwly&st=b348xbqz&dl=1)\nWelcome to RustyRing \r\n Monthly solo/duo \r\n Softcore mode \r\n Running a few Mods as follows  \r\n 50% upkeep \r\n Better chat \r\n Building skins \r\n Plants dont die \r\n Starter Kits \r\n Monument Recyclers \r\n Player Challenges \r\n Spin Drop (to see dropped items)\r\n Daily gifts \r\n Dangerous Treasures Event \r\n There is also a server shop",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780554811,
    "last_online": 1780252234,
    "icon": null,
    "name": "RustyRing Solo/Duo, Softcore, EU, 50% Decay",
    "connect": "81.16.176.157:7201",
    "request": "81.16.176.157:7203",
    "map": "Procedural Map",
    "gamemode": "Softcore",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 150,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1773301990,
    "last_update": 1780554811,
    "banned": false,
    "wipe": 1778179350,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 10912,
    "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/11252134");
$data = json_decode($json, true);
var_dump($data);