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

text
https://api.gamemonitoring.in/servers/10292389
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 10292389,
    "ip": null,
    "port": null,
    "query": null,
    "project_id": null,
    "color": 0,
    "city": null,
    "description": "[\n    {\n        \"id\": \"RzkgbrdY6s\",\n        \"type\": \"header\",\n        \"data\": {\n            \"text\": \"Piwination Transports. \",\n            \"level\": 2\n        }\n    },\n    {\n        \"id\": \"RccdFWUhfB\",\n        \"type\": \"paragraph\",\n        \"data\": {\n            \"text\": \"Sans traffic, sans DLC, sans mods.\"\n        }\n    },\n    {\n        \"id\": \"HbvsJDdQ57\",\n        \"type\": \"paragraph\",\n        \"data\": {\n            \"text\": \"Serveur privé. Rejoignez-nous via https://piwination.fr\"\n        }\n    }\n]",
    "game": 227300,
    "owner": 135823,
    "boosts": 1,
    "last_offline": 1760853211,
    "last_online": 1758212418,
    "icon": null,
    "name": "Piwination - Vanilla 1.55",
    "connect": null,
    "request": null,
    "map": "/map/europe.mbd",
    "gamemode": "Piwination Transports. Sans traffic, sans DLC, sans mods.",
    "version": null,
    "numplayers": 0,
    "maxplayers": 8,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "FR",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1758006403,
    "last_update": 1760853211,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": 1,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1757,
    "language": "fr",
    "parked": true,
    "app": {
      "id": 1980,
      "steam_id": 227300,
      "name": "Euro Truck Simulator 2",
      "url": "euro-truck-simulator-2"
    },
    "server_owner": {
      "username": "Princess_Peshi",
      "avatar": "cc3db96e-01af-4635-b619-18265a420234.jpg"
    },
    "mods": [],
    "disabled_modules": []
  }
}

कोड उदाहरण

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