JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11159819
json
{
  "response": {
    "fps": 55,
    "fps_avg": 54,
    "entities_count": 102628,
    "world_seed": 389358487,
    "world_size": 4000,
    "steam_id": "90286602416647198",
    "domain": null,
    "id": 11159819,
    "ip": "66.51.96.71",
    "port": 28035,
    "query": 28036,
    "color": 0,
    "city": "Ashburn",
    "description": "![TheApocalypse|Zombies|SkillTree|RaidBases|LegendaryItems](https://www.dropbox.com/scl/fi/xgacpl67ligz873l5m0v3/ApacalypseServerIMG2.jpg?rlkey=ghwdsgfype5oppnc7a2cimmp0&st=77ip047m&dl=1)\nWelcome to The Apocalypse — a PvE survival experience where loot is earned, not handed out.\r\nFight through the infected, progress your skills, and hunt down powerful bosses.\r\n\r\nFeatures:\r\n• Zombies roaming the world\r\n• Skill Tree progression system\r\n• Raid Bases with real rewards\r\n• Legendary items to discover\r\n• Unique Boss encounters\r\n• Custom plugins you won't find anywhere else\r\n• No Tech Tree — explore/experiment/research to unlock gear \r\n• Balanced PvE progression\r\n• Advanced Cooking\r\n• Active development (WIP)\r\n\r\nSurvive. Progress. Conquer the Apocalypse.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780170813,
    "last_online": 1780594234,
    "icon": null,
    "name": "TheApocalypse|Zombies|SkillTree|RaidBases|LegendaryItems",
    "connect": "66.51.96.71:28035",
    "request": "66.51.96.71:28036",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1772228140,
    "last_update": 1780594234,
    "banned": false,
    "wipe": 1778178017,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3933,
    "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/11159819");
$data = json_decode($json, true);
var_dump($data);