JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11764811
json
{
  "response": {
    "steam_id": "90286758851082242",
    "domain": null,
    "id": 11764811,
    "ip": "43.249.195.170",
    "port": 26031,
    "query": 26030,
    "project_id": null,
    "color": 0,
    "city": "Jinan",
    "description": null,
    "game": 1604030,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780932291,
    "last_online": 1781032877,
    "icon": null,
    "name": "V Rising Server",
    "connect": "43.249.195.170:26031",
    "request": "43.249.195.170:26030",
    "map": "VRisingWorld",
    "gamemode": "cff33811-c5f6-4451-9a50-cf1ed33c4505",
    "version": "0.0.0.1",
    "numplayers": 0,
    "maxplayers": 8,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CN",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1780932291,
    "last_update": 1781032877,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3884,
    "language": "zh",
    "parked": false,
    "app": {
      "id": 55075,
      "steam_id": 1604030,
      "name": "V Rising",
      "url": "v-rising"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

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