JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/8677961
json
{
  "response": {
    "steam_id": "85568392932670375",
    "domain": null,
    "id": 8677961,
    "ip": "212.192.29.50",
    "port": 27017,
    "query": 27017,
    "color": 0,
    "city": "Dallas",
    "description": null,
    "game": 304930,
    "owner": null,
    "boosts": 1,
    "last_offline": 1775194331,
    "score": 0,
    "last_online": 1776118232,
    "icon": "https://cdn.discordapp.com/attachments/324698914915745802/980915824791543828/resize_trans.png",
    "name": "Kodak Semivanilla #2 [5x] [Germany]",
    "connect": "212.192.29.50:27017",
    "request": "212.192.29.50:27017",
    "map": "Germany",
    "gamemode": "[Wiped August 1]",
    "version": "3.26.2.2",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1745544806,
    "last_update": 1776118232,
    "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": 218,
    "language": "en",
    "parked": false,
    "app": {
      "id": 48,
      "steam_id": 304930,
      "name": "Unturned",
      "url": "unturned"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

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