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

text
https://api.gamemonitoring.in/servers/10880604
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 10880604,
    "ip": null,
    "port": null,
    "query": null,
    "project_id": null,
    "color": 0,
    "city": "Orangeburg",
    "description": "[{\"id\":\"78lSvvEYLo\",\"type\":\"paragraph\",\"data\":{\"text\":\"🚫 No Player Killing! This is PVE only until PVP is enabled for events. Prepare now for possible battle later. Including hordes 🧟🧟🧟\\n🚫 No Raiding bases unless we are in PVP.\\n🚫 No building in Mines, Military bases, Major / Rare POI's or the Prison.\\n🚫 No Griefing. This includes but is not limited to: disruptive behaviors like team-killing, stealing resources, destroying structures, or exploiting mechanics to harass players.\\n\\n✅ Focus: Building • Looting • Co-op Survival-you'll need it later 😏\\n✅ Respect Bases & Loot. Even if a door is unlocked, you are NOT allowed in the base unless the base owner is present and allows you in. Remember, admins can see logs of everything.\\n\\n⚠ Toxic Behavior = Ban\\n\\nAt the moment there are a limited amount of slots open. If we gain more interest, I will add slots. If you are having issues getting in, make a ticket 🎫 in discord and let me know you are interested but cannot get in. This will help me keep track of interest.\"}}]",
    "game": 1857950,
    "owner": 169038,
    "boosts": 1,
    "last_offline": 1773554485,
    "last_online": 1772662813,
    "icon": null,
    "name": "Fogs Wasteland",
    "connect": null,
    "request": null,
    "map": "Champlain Valley",
    "gamemode": "VEIN",
    "version": null,
    "numplayers": 0,
    "maxplayers": 10,
    "bots": 0,
    "secured": false,
    "private": true,
    "country": "US",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1768319799,
    "last_update": 1773554485,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 1,
    "pvp": null,
    "list_hidden": false,
    "hide_address": true,
    "hide_query": false,
    "position_game": 1388,
    "language": "en",
    "parked": true,
    "app": {
      "id": 1530675,
      "steam_id": 1857950,
      "name": "VEIN",
      "url": "vein"
    },
    "server_owner": {
      "username": "fogger80",
      "avatar": "a6709966-0ab5-4cec-aac9-2460fae4dbb0.png"
    },
    "mods": [],
    "disabled_modules": []
  }
}

कोड उदाहरण

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