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

text
https://api.gamemonitoring.in/servers/762897
json
{
  "response": {
    "fps": 194,
    "fps_avg": 187,
    "entities_count": 100126,
    "world_seed": 4305433,
    "world_size": 4250,
    "steam_id": "90286608735778821",
    "domain": null,
    "id": 762897,
    "ip": "45.58.127.244",
    "port": 28080,
    "query": 28015,
    "color": 0,
    "city": "Miami",
    "description": "![PUERTO RUST LATAM ESP SOLO/DUO/TRIO](https://www.dropbox.com/scl/fi/x7rf230w0t2cy7u5ck0xi/bannerv2.5.png?rlkey=a49clcdtamf0gysk7ej7dj61w&dl=1)\nPUERTO RUST / LATAM - ESP - 7 Years of Hosting Experience\r\n\r\nDETALLES:\r\nWipe: Bisemanal\r\nTeam Size: Máximo 3\r\nModo: VANILLA\r\nLanguage: Spanish/English\r\n\r\nReglas:\r\n1. Max Team 3, No Alianzas, No Comunidades.\r\n2. Se prohíbe grifear o sellar bases.\r\n3. Se prohíbe el lenguaje ofensivo o discriminatorio.\r\n4. Se prohíbe todo tipo de conducta toxica o innecesaria.\r\n5. Para ayudas, quejas o reportes abre Ticket en Discord. https://discord.gg/gUuck7EQDr\r\n6. Wipe BP's primer jueves de cada mes\r\n\r\nINFRACTORES SERAN BANEADOS SIN AVISO.\r\n\r\n\r\nPUERTO RUST / LATAM - ESP\r\nDETAILS:\r\nMap: Puerto Rico FPS+\r\nWipe: Biweekly\r\nTeam Size: Maximum 3\r\nMode: VANILLA\r\nLanguage: Spanish/English\r\n\r\nRULES:\r\n1. Max Team 3, No Alliances, Not Communities.\r\n2. Griffin or sealing bases is prohibited.\r\n3. Offensive or discriminatory language is prohibited.\r\n4. All types of toxic or unnecessary behavior are prohibited.\r\n5. For help, complaints or reports, open Ticket in Discord. Our discord is https://discord.gg/gUuck7EQDr\r\n6. BP's Wipe first Thursday of every month\r\n\r\nOFFENDERS WILL BE BANNED WITHOUT WARNING.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780346652,
    "last_online": 1780649427,
    "icon": null,
    "name": "PUERTO RUST LATAM ESP SOLO/DUO/TRIO",
    "connect": "45.58.127.244:28080",
    "request": "45.58.127.244:28015",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 1,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1680789811,
    "last_update": 1780649427,
    "banned": false,
    "wipe": 1780603863,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1885,
    "language": "en",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

कोड उदाहरण

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