JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11158629
json
{
  "response": {
    "fps": 165,
    "fps_avg": 184,
    "entities_count": 72213,
    "world_seed": 1449881993,
    "world_size": 3500,
    "steam_id": "90286423857353756",
    "domain": null,
    "id": 11158629,
    "ip": "157.85.95.100",
    "port": 25725,
    "query": 25726,
    "color": 0,
    "city": "Frankfurt am Main",
    "description": "![[EU] SwedenWarzone SOLO/DUO/TRIO/QUAD 2X 50% Upkeep](https://i.imgur.com/VSqi047.jpeg)\nSwedenWarzone 2x Weekly EU\r\n2x Gather\r\n2x Loot\r\nFast Smelting \r\nFast Recycling\r\nSolo Duo Trio Quad\r\nNo cheats, scripts or exploits No racism or hate speech No intentional server lag or glitch abuse Max team size 6 (no teaming beyond limit) No ban evasion Admin decisions are final  Be kind to your local beginner.\r\nJoin our Discord for wipes\r\nAnd info! https://discord.gg/mXTQ2MNnm7\r\nWeekly\r\n50% upkeep,",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1778626377,
    "last_online": 1780604437,
    "icon": null,
    "name": "[EU] SwedenWarzone SOLO/DUO/TRIO/QUAD 2X 50% Upkeep",
    "connect": "157.85.95.100:25725",
    "request": "157.85.95.100:25726",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 75,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1772228113,
    "last_update": 1780604437,
    "banned": false,
    "wipe": 1778626766,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4141,
    "language": "de",
    "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/11158629");
$data = json_decode($json, true);
var_dump($data);