JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11511141
json
{
  "response": {
    "fps": 147,
    "fps_avg": 159,
    "entities_count": 81522,
    "world_seed": 631951799,
    "world_size": 3850,
    "steam_id": "90286629793829915",
    "domain": null,
    "id": 11511141,
    "ip": "208.115.196.34",
    "port": 28215,
    "query": 28216,
    "color": 0,
    "city": "Dallas",
    "description": "![Fox PvE Vanilla+ FR|PT|ES|EU|EVENTS](https://i.imgur.com/U2kteUT.png)\nWELCOME TO FOX PVE VANILLA+\r\n\r\n Vanilla+ Loot|Backpacks|Teleportation|Remove|TC Upgrades\r\n Raid Bases|Events|Skill Tree light|Shop|Vehicle Licenses\r\n Short Nights|Longer Days\r\n Loot and gear are enhanced: 5k resources and 2x equipment with improved drops\r\n Player turrets are disabled so everyone can enjoy events\r\n This new server runs alongside FOX PvE, offering more events and expanded gameplay\r\n\r\n VIP IS VALID ON BOTH SERVERS",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780658660,
    "last_online": 1780660836,
    "icon": null,
    "name": "Fox PvE Vanilla+ FR|PT|ES|EU|EVENTS",
    "connect": "208.115.196.34:28215",
    "request": "208.115.196.34:28216",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779353838,
    "last_update": 1780660836,
    "banned": false,
    "wipe": 1780603078,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4945,
    "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/11511141");
$data = json_decode($json, true);
var_dump($data);