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

text
https://api.gamemonitoring.in/servers/6281992
json
{
  "response": {
    "fps": 84,
    "fps_avg": 82,
    "entities_count": 209351,
    "world_seed": 14152,
    "world_size": 6000,
    "steam_id": "90284797359936529",
    "domain": null,
    "id": 6281992,
    "ip": "185.180.2.29",
    "port": 28400,
    "query": 27400,
    "color": 0,
    "city": "Prague",
    "description": "Discord: https://discord.gg/ktas7pRkqG\r\nRules & Settings:\r\n- Skilled PvP players must play solo. Otherwise, no group limit.\r\n- Chat & voice: English only (other languages = ban).\r\n- Bad behavior = ban.\r\n- Be respectful.\r\n- Wipe: BP and map on force wipe.\r\n- Upkeep: 1/5 of normal\r\n- Normal drop rates.\r\n\r\nBad Behavior Examples:\r\n- TCs Blocking (external TCs around your base are allowed).\r\n- Big groups raiding solo players without valid reason.\r\n- Toxicity in chat & voice.\r\n- Excessive or repeated door & roof camping without valid reason.\r\n- Any form of harassment or toxicity.\r\n\r\nValid Reasons for Big Group Raiding Solo Players:\r\n- Solo player door & roof camps you.\r\n- Solo player trying to get to your base.\r\n- Solo player camping around your base (only if it happened multiple times in a row).\r\n\r\nExceptions (if agreed in in-game chat):\r\n- Big groups can raid solos.\r\n- Door & roof camping.\r\n\r\nDefinitions:\r\n- Swear word => A swear word is a word or phrase that people see as rude or offensive, and it’s usually said when someone is angry, frustrated, or trying to make a strong point.\r\n  For example: https://en.wikipedia.org/wiki/Category:English_profanity\r\n- Small Group => 2-3 people\r\n- Big Group => When I speak about a group, I mean 4+ people\r\n\r\nRepetitive breaking of rules will result in a long-term ban from the server",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776227513,
    "score": 0,
    "last_online": 1776872419,
    "icon": null,
    "name": "Rusterlands.com - EU Main - No BP wipe",
    "connect": "185.180.2.29:28400",
    "request": "185.180.2.29:27400",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2623",
    "numplayers": 3,
    "maxplayers": 30,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CZ",
    "status": true,
    "votes": 0,
    "points": 64,
    "add_date": 1729463007,
    "last_update": 1776872419,
    "banned": false,
    "wipe": 1775156215,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1164,
    "language": "cs",
    "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/6281992");
$data = json_decode($json, true);
var_dump($data);