JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11744653
json
{
  "response": {
    "fps": 230,
    "fps_avg": 226,
    "entities_count": 71744,
    "world_seed": 1449881993,
    "world_size": 3500,
    "steam_id": "90286470740122628",
    "domain": null,
    "id": 11744653,
    "ip": "103.15.236.171",
    "port": 24728,
    "query": 24729,
    "color": 0,
    "city": "Melbourne",
    "description": "Welcome to Hazelton 3X  The perfect battleground for Solo Duo Trio players who want faster progression fair PvP and protection from brutal offline raids. No giant clans no nonsense just a better Rust experience.\r\nServer Features:\r\n• 3X Gather / Faster Progression\r\n• Solo Duo Trio Team Limit\r\n• Offline Raid Protection ORP\r\n• Raidable Bases\r\n• Faster Smelting\r\n• Furnace Splitter\r\n• Backpack\r\n• Active Admins\r\n• Balanced PvP & Raiding.\r\nWhether you’re building a hidden bunker farming for war or roaming for loot Hazelton is built for action without the grind.  Join today and carve your name into Hazelton.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780518717,
    "last_online": 1780575633,
    "icon": null,
    "name": "Hazelton 3x, SOLO, DUO, TRIO. ORP, Skinbox.",
    "connect": "103.15.236.171:24728",
    "request": "103.15.236.171:24729",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 40,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "AU",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780518717,
    "last_update": 1780575633,
    "banned": false,
    "wipe": 1778181044,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 6100,
    "language": "en",
    "parked": false,
    "app": {
      "id": 252490,
      "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/11744653");
$data = json_decode($json, true);
var_dump($data);