JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/6125195
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 6125195,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": null,
    "description": "![BASTION RUST#2 SOLO DUO TRUO](https://gspics.org/images/2024/10/31/Ik66Uy.png)\nВайп:\r\nКарта-Weekly @Пятница 15:00 UTC+3\r\nBPs-Biweekly @Пятница\r\nДля новичков\r\nО сервере:\r\n→Лимит игроков в команде MAX 3\r\n→Переработчики в рыбачках\r\n→Система AntiCheat\r\n→Круглосуточная поддержка\r\n→Неигровая Администрация",
    "game": 252490,
    "owner": 103790,
    "boosts": 1,
    "last_offline": 1751367240,
    "last_online": 1748725228,
    "icon": null,
    "name": "[EU/UA] Warriors RUST | X2 | MAX 3",
    "connect": null,
    "request": null,
    "map": "Custom Map",
    "gamemode": "Vanilla",
    "version": null,
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "FI",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1727883296,
    "last_update": 1751367240,
    "banned": false,
    "wipe": 1746124249,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 13288,
    "language": "fi",
    "parked": true,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": {
      "username": "0killrest",
      "avatar": "9b6baa3a-7563-4300-810f-a395edb428ce.jpg"
    },
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

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