JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/4785207
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 4785207,
    "ip": "212.46.36.105",
    "port": 7777,
    "query": 7777,
    "color": 0,
    "city": "Kazan'",
    "description": "",
    "game": 9000035,
    "owner": null,
    "boosts": 1,
    "last_offline": 1773754280,
    "score": 0,
    "last_online": 1776365517,
    "icon": null,
    "name": "Матрешка Role Play | 02 (production)",
    "connect": "212.46.36.105:7777",
    "request": "212.46.36.105:7777",
    "map": "Russia",
    "gamemode": "BUILD: 15.04.2026 17:19:54",
    "version": "0.3.7-R2",
    "numplayers": 0,
    "maxplayers": 1000,
    "bots": 0,
    "secured": null,
    "private": true,
    "country": "RU",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1718269551,
    "last_update": 1776365517,
    "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": 377,
    "language": "ru",
    "parked": false,
    "app": {
      "id": 168,
      "steam_id": 9000035,
      "name": "Samp",
      "url": "samp"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

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