प्रोग्राम, वेबसाइट और अन्य के लिए JSON

text
https://api.gamemonitoring.in/servers/10651853
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 10651853,
    "ip": null,
    "port": null,
    "query": null,
    "project_id": null,
    "color": 0,
    "city": "Moscow",
    "description": null,
    "game": 9000035,
    "owner": 147450,
    "boosts": 1,
    "last_offline": 1766469662,
    "last_online": 1765541414,
    "icon": null,
    "name": "SKILLIX RP I BONUS I X2",
    "connect": null,
    "request": null,
    "map": "San Andreas",
    "gamemode": "Role Play",
    "version": null,
    "numplayers": 0,
    "maxplayers": 500,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "RU",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1763724017,
    "last_update": 1766469662,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": 3,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1358,
    "language": "ru",
    "parked": true,
    "app": {
      "id": 168,
      "steam_id": 9000035,
      "name": "Samp",
      "url": "samp"
    },
    "server_owner": {
      "username": "yat_yat",
      "avatar": "6e8efb36-9df2-4720-86b3-49a574231929.jpg"
    },
    "mods": [
      {
        "id": 5,
        "name": "Admin System"
      },
      {
        "id": 4,
        "name": "Admin List"
      },
      {
        "id": 49,
        "name": "CheckCheats"
      },
      {
        "id": 909,
        "name": "InfoPanel"
      }
    ],
    "disabled_modules": []
  }
}

कोड उदाहरण

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