JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11501798
json
{
  "response": {
    "fps": 60,
    "fps_avg": 60,
    "entities_count": 68252,
    "world_seed": 1,
    "world_size": 3500,
    "steam_id": "90285964179401753",
    "domain": null,
    "id": 11501798,
    "ip": "194.69.160.15",
    "port": 28111,
    "query": 28113,
    "color": 0,
    "city": "City of London",
    "description": "Eulerion.net | Solo/Duo/Trio | 2x\r\nNo zerg. No cheaters. No alt accounts. Bi-weekly wipe (21:00 UTC / 22:00 BST in summer). 3500 map. 75 slots. Pure vanilla 2x, no kits, no skins, no teleports.\r\n\r\n• PlaysafeID enabled — every player identity-verified, bans stick for good\r\n• EAC + BattleMetrics + Gallium anti-cheat\r\n• Auto-kick on recent VAC/Game bans\r\n• Published ban policy at eulerion.net/rules\r\n• Active administration. Admins don't play on the server.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780594416,
    "last_online": 1779870622,
    "icon": null,
    "name": "Eulerion.net | Solo/Duo/Trio | 2x",
    "connect": "194.69.160.15:28111",
    "request": "194.69.160.15:28113",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 75,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1779207181,
    "last_update": 1780594416,
    "banned": false,
    "wipe": 1777742220,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 11212,
    "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/11501798");
$data = json_decode($json, true);
var_dump($data);