JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/6125502
json
{
  "response": {
    "fps": 58,
    "fps_avg": 58,
    "entities_count": 99136,
    "world_seed": 5072026,
    "world_size": 4096,
    "steam_id": "90286546883355651",
    "domain": null,
    "id": 6125502,
    "ip": "147.135.65.173",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Oakton",
    "description": "![[US] PvExile Island Survival - Events | Bosses | Skills](https://i.postimg.cc/gJG62mrt/exploding-banner1.png)\nAll players have access to skinbox, trade, backpacks after death, sign artist, and daily gifts.\r\n \r\n Server Features:\r\n - Long Days/Short Nights\r\n - Faster Recycling\r\n - 2x gather rate with possibility for more using Skill Tree XP  with prestige options that carries over (never wipe)\r\n - Player's Market / Stock Market\r\n - Custom NPCs, raid  bases, events, and attack heli\r\n - Teleport with Map Locations\r\n - Shop, Kits, and Playtime Rewards\r\n - Custom UIs\r\n \r\n For more information and VIP visit https://www.shop.pvexileisland.com or use /info in-game.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780470420,
    "last_online": 1780545029,
    "icon": null,
    "name": "[US] PvExile Island Survival - Events | Bosses | Skills",
    "connect": "147.135.65.173:28015",
    "request": "147.135.65.173:28017",
    "map": "discord.gg/pvexile",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1727883379,
    "last_update": 1780545029,
    "banned": false,
    "wipe": 1778187266,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2623,
    "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/6125502");
$data = json_decode($json, true);
var_dump($data);