JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11502751
json
{
  "response": {
    "steam_id": "90286368104824843",
    "domain": null,
    "id": 11502751,
    "ip": "72.62.255.222",
    "port": 28017,
    "query": 28018,
    "color": 0,
    "city": "Kuala Lumpur",
    "description": "![RustaNode Vanilla 2x | Solo  JUST WIPED](https://cdn.discordapp.com/attachments/1490378695016186178/1499676910840582254/75BB4D8E-D0A2-4317-AF02-511A06E7BBB1.jpg?ex=69f5aa76&is=69f458f6&hm=30288a19a2208b38d877288e5b5f5abf2de2b340acf675caaa2d66a5708da457&)\nRustaNode Vanilla 2x | Solo\r\n\r\n[ SERVER INFO ]\r\n• Region: Malaysia [SEA]\r\n• Wipe Schedule: Weekly (Friday)\r\n• Map Size: 3000(PVP Focus)\r\n\r\n[ THE EXPERIENCE ]\r\n• 2x Resources (Gathering)\r\n• Pure Vanilla Loot Tables (No Junk Removed)\r\n• Vanilla Crafting\r\n• Balanced QoL (No Pay-To-Win)\r\n\r\n[ SERVER RULES ]\r\n• Group Limit: 1 Max (Strictly Enforced)\r\n• No Cheating, Scripting, or Exploiting\r\n• No Game Bans or Recent VAC Bans\r\n• Respect Players / No Toxicity\r\n\r\n[ COMMUNITY ]\r\nActive, non-playing staff. High-speed Malaysian hosting for a lag-free experience.\r\n\r\nJoin RustaNode, build up, and dominate the island",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780072422,
    "last_online": 1780549834,
    "icon": null,
    "name": "RustaNode Vanilla 2x | Solo  JUST WIPED",
    "connect": "72.62.255.222:28017",
    "request": "72.62.255.222:28018",
    "map": "Procedural Map",
    "gamemode": "Rust",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 150,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "MY",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779207216,
    "last_update": 1780549834,
    "banned": false,
    "wipe": 1780072563,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5019,
    "language": "ms",
    "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/11502751");
$data = json_decode($json, true);
var_dump($data);