JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/686382
json
{
  "response": {
    "fps": 93,
    "fps_avg": 94,
    "entities_count": 113418,
    "world_seed": 199921627,
    "world_size": 4500,
    "steam_id": "90286604583808016",
    "domain": null,
    "id": 686382,
    "ip": "23.94.102.82",
    "port": 28026,
    "query": 28029,
    "color": 0,
    "city": "Dallas",
    "description": "![! The Alamo Texas Solo](https://hosting.photobucket.com/1aa12785-51be-401b-bc6c-35cf0ef43d30/1229a50f-f589-42f7-98c8-64109663959d.png)\nThe Alamo Texas Solo a Volten Gaming Server \r\n Server specific rules and information. \r\n Weekly wipe schedule. \r\n Monthly blueprint. \r\n Solo only no teaming. \r\n Active staff members. \r\n Online since December 2020. \r\n Volten Gaming rules are available on our website.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780597469,
    "last_online": 1780633231,
    "icon": null,
    "name": "! The Alamo Texas Solo",
    "connect": "23.94.102.82:28026",
    "request": "23.94.102.82:28029",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 1,
    "maxplayers": 200,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1670760350,
    "last_update": 1780633231,
    "banned": false,
    "wipe": 1780597717,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2397,
    "language": "en",
    "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/686382");
$data = json_decode($json, true);
var_dump($data);