JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/1108614
json
{
  "response": {
    "steam_id": "90285116804886537",
    "domain": null,
    "id": 1108614,
    "ip": "108.85.39.133",
    "port": 7783,
    "query": 27006,
    "color": 0,
    "city": "Birmingham",
    "description": "[Starwars](https://steamcommunity.com/sharedfiles/filedetails/?id=2945105457)\r\n[Sawtalo](https://steamcommunity.com/sharedfiles/filedetails/?id=3123835470)\r\n[Geonosis](https://steamcommunity.com/sharedfiles/filedetails/?id=3459680733)",
    "game": 736590,
    "owner": null,
    "boosts": 1,
    "last_offline": 1777452800,
    "score": null,
    "last_online": 1777533620,
    "icon": null,
    "name": "Bigbutts69",
    "connect": "108.85.39.133:7783",
    "request": "108.85.39.133:27006",
    "map": "Geonosis Small AAS",
    "gamemode": "Advance and Secure",
    "version": "89",
    "numplayers": 0,
    "maxplayers": 48,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1688789988,
    "last_update": 1777533620,
    "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": 3,
    "language": "en",
    "parked": false,
    "app": {
      "id": 52393,
      "steam_id": 736590,
      "name": "Operation: Harsh Doorstop",
      "url": "operation-harsh-doorstop"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

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