JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/10533179
json
{
  "response": {
    "fps": 252,
    "fps_avg": 250,
    "entities_count": 65929,
    "world_seed": 495702191,
    "world_size": 3500,
    "steam_id": "90286603621602319",
    "domain": null,
    "id": 10533179,
    "ip": "51.75.240.3",
    "port": 28215,
    "query": 28216,
    "color": 0,
    "city": "Roubaix",
    "description": "![[EU] Heatline.gg - 2x | Fridays | Solo/Duo | JUST WIPED 04.06](https://idms.heatline.gg/images/heatline-fridays-server-banner-min-v4.png)\nLast Wipe: 04.06\n\n★ Welcome to Heatline.gg\n★★ No P2W 2x Fridays Server\n★★★ Join us: discord.heatline.gg\n\n— Features:\n★ Map wipes every Friday at 20:00 Europe/Berlin (skips after Force)\n★ Fullwipe on Force Wipe\n★ Max Team: 2 Players\n★ Electric BP's are unlocked\n★ BP's Shared in Team\n★ 2x Gather & Loot (incl. Excav & Quarries)\n★ Faster Smelt & Furnace Sorter\n★ Minicopter spawn on Road\n★ '/stats' Ingame Leaderboard & Stats\n★ ... other QoL Plugins\n\n⸻\n• Discord Help: discord.heatline.gg\n• Support the Server: heatline.gg/shop\n⸻\n\nActive admins | High-end EU hardware | Stable performance\n\nBattleMetrics token: rs02gJtdGxC(0S&x70S>%%",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780595060,
    "last_online": 1780604432,
    "icon": null,
    "name": "[EU] Heatline.gg - 2x | Fridays | Solo/Duo | JUST WIPED 04.06",
    "connect": "51.75.240.3:28215",
    "request": "51.75.240.3:28216",
    "map": "discord.heatline.gg",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "FR",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1762518563,
    "last_update": 1780604432,
    "banned": false,
    "wipe": 1780595139,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3763,
    "language": "fr",
    "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/10533179");
$data = json_decode($json, true);
var_dump($data);