JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/5942010
json
{
  "response": {
    "fps": 128,
    "fps_avg": 142,
    "entities_count": 87160,
    "world_seed": 3437,
    "world_size": 4000,
    "steam_id": "90286604205669394",
    "domain": null,
    "id": 5942010,
    "ip": "104.128.58.51",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Chicago",
    "description": "![Rustpocalypse Map 100X |US Monthly| - No Backpack Wipe](https://i.imgur.com/j5W3GA9.png)\nRustpocalypse US Wiped 11 06 Backpacks Dont Wipe\n\n- Decay and Upkeep Disabled\n- XP Stats  /XPStats\n- New User Protection\n- /UPALL \n- HOME  /Home\n-Modded Loot Tables\n-GUI Store Buy and Sell\n\nBackpack contents dont wipe. Carry things into next wipe.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779921824,
    "last_online": 1780601432,
    "icon": null,
    "name": "Rustpocalypse Map 100X |US Monthly| - No Backpack Wipe",
    "connect": "104.128.58.51:28015",
    "request": "104.128.58.51:28016",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1726346849,
    "last_update": 1780601432,
    "banned": false,
    "wipe": 1780596717,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2551,
    "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/5942010");
$data = json_decode($json, true);
var_dump($data);