JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/10809862
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 10809862,
    "ip": "217.156.22.232",
    "port": 27015,
    "query": 27015,
    "color": 0,
    "city": "Berceni",
    "description": "[{\"id\":\"HwSNOD13nN\",\"type\":\"paragraph\",\"data\":{\"text\":\"Welcome to Game Night [CoD:MW4]\\nFirst Ever Non-Bot CoD:MW4 Server | Pure PvP Action | No Bots\\nIP ADDRESS: 217.156.22.232:27015\\nDISCORD LINK: https://discord.gg/RPmARKDc6f\"}}]",
    "game": 10,
    "owner": 132055,
    "boosts": 1,
    "last_offline": 1774553516,
    "score": 5,
    "last_online": 1776180010,
    "icon": null,
    "name": "Game Night [CoD:MW4] [Free Vip + 50LVL + FastXP]",
    "connect": "217.156.22.232:27015",
    "request": "217.156.22.232:27015",
    "map": "de_dust2002",
    "gamemode": "Counter-Strike",
    "version": "1.1.2.7/Stdio",
    "numplayers": 2,
    "maxplayers": 32,
    "bots": 9,
    "secured": true,
    "private": false,
    "country": "RO",
    "status": true,
    "votes": 6,
    "points": 103,
    "add_date": 1767090095,
    "last_update": 1776180010,
    "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": 100,
    "language": "en",
    "parked": false,
    "app": {
      "id": 3,
      "steam_id": 10,
      "name": "Counter-Strike",
      "url": "counter-strike"
    },
    "server_owner": {
      "username": "DasingDevil_DD",
      "avatar": "32cd9805-5544-4d0b-8a1d-7274a1cab3fe.jpg",
      "last_online": 1775391482
    },
    "mods": [
      {
        "id": 379,
        "name": "VIP"
      },
      {
        "id": 343,
        "name": "Skins"
      },
      {
        "id": 435,
        "name": "VIP FREE"
      },
      {
        "id": 436,
        "name": "Weapon Skins"
      },
      {
        "id": 381,
        "name": "VIP Bhop"
      },
      {
        "id": 391,
        "name": "Vips"
      },
      {
        "id": 437,
        "name": "Shop"
      },
      {
        "id": 14,
        "name": "Advertisement"
      },
      {
        "id": 34,
        "name": "Bhop"
      },
      {
        "id": 362,
        "name": "Tag"
      },
      {
        "id": 42,
        "name": "Buy Vip"
      },
      {
        "id": 1712,
        "name": "Vault"
      },
      {
        "id": 1634,
        "name": "AMX-Mod-X"
      }
    ],
    "disabled_modules": []
  }
}

Exemple de cod

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