JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/3240595
json
{
  "response": {
    "fps": 60,
    "fps_avg": 59,
    "entities_count": 96403,
    "world_seed": 579399755,
    "world_size": 4000,
    "steam_id": "90286333512204304",
    "domain": null,
    "id": 3240595,
    "ip": "156.236.84.27",
    "port": 28070,
    "query": 28071,
    "color": 0,
    "city": "Dallas",
    "description": "![testing](https://cdn.discordapp.com/attachments/1168559706508361741/1190254466667126794/NVG34.png?ex=65a121da&is=658eacda&hm=16140c54e8c26bfa09297a63ec63b58e9119879243d8e55b6ce7846ca72e2f93&)\nPVP Everywhere\r\n No Offline Raiding - If you want to Raid, there is raidable bases or give the base owners a chance to defend. After Raid no taking over or griefing Bases\r\n Stone, Wood and Metal are 2x.\r\n Airfield Event and Mini's spawn on roads.\r\n Low Upkeep\r\nSkinbox and Sign Artist",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780136564,
    "last_online": 1780101021,
    "icon": null,
    "name": "Rust Server - Pinehosting.com",
    "connect": "156.236.84.27:28070",
    "request": "156.236.84.27:28071",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1709657712,
    "last_update": 1780136564,
    "banned": false,
    "wipe": 1779997499,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 9159,
    "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/3240595");
$data = json_decode($json, true);
var_dump($data);