JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11771344
json
{
  "response": {
    "fps": 77,
    "fps_avg": 74,
    "entities_count": 122516,
    "world_seed": 478443036,
    "world_size": 4500,
    "steam_id": "90286874942630934",
    "domain": null,
    "id": 11771344,
    "ip": "157.211.209.246",
    "port": 28015,
    "query": 28018,
    "project_id": null,
    "color": 0,
    "city": "Morwell",
    "description": "Server Featues:\r\n This is a balanced, PVE x5 server. \r\n Deep Sea and Raid Bases are PVP \r\n No TC Upkeep. \r\n No pay to win, racism, cheating, or toxic gameplay.\r\n Wipes monthly or when the server dies.\r\n  Recyclers at most monuments.\r\n Active Admins.\r\n Custom loot tables.\r\n  Remover Tool.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1781172266,
    "last_online": 1781223031,
    "icon": null,
    "name": "[AUS] PEACE 5x PVE+ DeepSea PVP",
    "connect": "157.211.209.246:28015",
    "request": "157.211.209.246:28018",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "AU",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780996895,
    "last_update": 1781223031,
    "banned": false,
    "wipe": 1780962460,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 6086,
    "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/11771344");
$data = json_decode($json, true);
var_dump($data);