JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11502859
json
{
  "response": {
    "fps": 120,
    "fps_avg": 119,
    "entities_count": 47010,
    "world_seed": 50000,
    "world_size": 2750,
    "steam_id": "90286546022471708",
    "domain": null,
    "id": 11502859,
    "ip": "103.15.237.99",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Melbourne",
    "description": "COLDASF — AU Main DeepFreeze Survival | Stay Warm or Die Trying Welcome to the coldest Rust server on the planet. Where your only hope for survival is keeping warm this will be your harshest challenge yet gamers kit real quick in order to get a jump start on the frost that settles in quick!\r\nActive Playing Admin | Admin Bases | Team UI 16 | Kits | 25 Auto Turret Limit \r\n0.5x Gather Rate | Modded NPC Vendors | Auto Pickup Barrels & Sighs, Modded Workbench | Kits | Furnace Splitter and much more.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779843204,
    "last_online": 1780589439,
    "icon": null,
    "name": "COLDASF - AU Main",
    "connect": "103.15.237.99:28015",
    "request": "103.15.237.99:28016",
    "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": 1779207223,
    "last_update": 1780589439,
    "banned": false,
    "wipe": 1778333539,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5002,
    "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/11502859");
$data = json_decode($json, true);
var_dump($data);