JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/9846663
json
{
  "response": {
    "steam_id": "90286631802899461",
    "domain": null,
    "id": 9846663,
    "ip": "5.183.8.50",
    "port": 28015,
    "query": 28016,
    "project_id": null,
    "color": 0,
    "city": "Phoenix",
    "description": "![(US) The Rust of Us - 3x - Solo/Duo/Trio/LootX3](https://res.cloudinary.com/dtlied51v/image/upload/v1754322399/rustofus-v2_ev4d5t.png)\nWelcome to The Rust of US\r\nA brutal wasteland where competition thrives — but beginners are always welcome.\r\n\r\n-Bi-Weekly Wipes – On Thursday’s\r\n-3x Gather Rate – Less grind, more action\r\n-Instant Crafting/Quick Smelting – Gear up fast and get back in the fight\r\n-Whole Building Workbench – Craft anywhere in your base\r\n-Max Team Size: 3 – Small squads, big plays\r\n-Active Admins – Fair play, always\r\n-Balanced Loot Tables – Better chances for cool stuff\r\n-Short Nights – Spend more time surviving, less time stumbling in the dark\r\n\r\nJoin the chaos. Survive the wasteland. Rule The Rust of US.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780901603,
    "last_online": 1780792230,
    "icon": null,
    "name": "(US) The Rust of Us - 3x - Solo/Duo/Trio/LootX3",
    "connect": "5.183.8.50:28015",
    "request": "5.183.8.50:28016",
    "map": "Custom Map",
    "gamemode": "Rust",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 150,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1753203228,
    "last_update": 1780901603,
    "banned": false,
    "wipe": 1780663653,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 9643,
    "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/9846663");
$data = json_decode($json, true);
var_dump($data);