面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/4261879
json
{
  "response": {
    "fps": 86,
    "fps_avg": 82,
    "entities_count": 112321,
    "world_seed": 13976,
    "world_size": 4500,
    "steam_id": "90286609984707596",
    "domain": null,
    "id": 4261879,
    "ip": "205.209.105.43",
    "port": 28145,
    "query": 28015,
    "project_id": null,
    "color": 0,
    "city": "Englewood Cliffs",
    "description": "![Blue Torrent Gaming PvP](https://www.dropbox.com/s/bnpi1zvxw83fryy/finished_product_for_blue.png?dl=1)\nWelcome to The Blue Torrent PvP Server!  \r\nVanilla Gather Rates | Modified Stacks \r\nRadiation Present - so wear underwear! \r\nRaidable Bases | Custom AI NPC's \r\nBuilding Grades | Building Skins | Remover Tool \r\nTiered Bradleys | Buyable Tugs | Backpack \r\nKits | SkinBox | Teleports | Ganja | Cooking",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780088616,
    "last_online": 1780679435,
    "icon": null,
    "name": "Blue Torrent Gaming PvP",
    "connect": "205.209.105.43:28145",
    "request": "205.209.105.43:28015",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1715849049,
    "last_update": 1780679435,
    "banned": false,
    "wipe": 1778290654,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3471,
    "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.cn/servers/4261879");
$data = json_decode($json, true);
var_dump($data);