JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11753286
json
{
  "response": {
    "build": 117753,
    "extraFlags": 0,
    "nameHeaderRaw": "90bf1c000003",
    "statusFlags": 0,
    "type": 0,
    "unknownStatusFlags": 0,
    "steam_id": null,
    "domain": null,
    "id": 11753286,
    "ip": "117.24.7.15",
    "port": 21536,
    "query": 21536,
    "color": 0,
    "city": "Wenquan",
    "description": null,
    "game": 513710,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780519378,
    "last_online": 1780600213,
    "icon": null,
    "name": "[CN]『福星#13』免加速/PVP+PVE/萌新高倍特色魔改/1ucky俱乐部/Q群:234876077 Yy:396737",
    "connect": "117.24.7.15:21536",
    "request": "117.24.7.15:21536",
    "map": null,
    "gamemode": "community-direct",
    "version": "1.3.0.0.117753",
    "numplayers": 111,
    "maxplayers": 128,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "CN",
    "status": true,
    "votes": 0,
    "points": 117,
    "add_date": 1780519378,
    "last_update": 1780600213,
    "banned": false,
    "wipe": null,
    "official": false,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 19,
    "language": "zh",
    "parked": false,
    "app": {
      "id": 11540,
      "steam_id": 513710,
      "name": "SCUM",
      "url": "scum"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/11753286");
$data = json_decode($json, true);
var_dump($data);