面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11305839
json
{
  "response": {
    "fps": 55,
    "fps_avg": 55,
    "entities_count": 150598,
    "world_seed": 748120817,
    "world_size": 5100,
    "steam_id": "90286588765431808",
    "domain": null,
    "id": 11305839,
    "ip": "156.236.84.11",
    "port": 28020,
    "query": 28021,
    "color": 0,
    "city": "Dallas",
    "description": "![Jersey Devil Origins PVP|Duo|Trio](https://www.dropbox.com/scl/fi/q1aocudwm0tauvu3mc7p1/image_579be4de.png?rlkey=9xlnj6tb599xtxif84n3qbypr&st=5u7qk4aq&dl=1)\nThe Jersey Devil Origins is a PVP Survival Server\r\nCome Play PVP with some QOL plugins\r\nCraftable Recycler, Chest Stacks, Remover Tool\r\nPlaytime Signal, Buyable Breaking Bad Motorhome\r\nCorpse Callback with Scrap Payment\r\nIf you love it lock it up or lose it!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780187582,
    "last_online": 1780570233,
    "icon": null,
    "name": "Jersey Devil Origins PVP|Duo|Trio",
    "connect": "156.236.84.11:28020",
    "request": "156.236.84.11:28021",
    "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": 1774592903,
    "last_update": 1780570233,
    "banned": false,
    "wipe": 1778177650,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4508,
    "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/11305839");
$data = json_decode($json, true);
var_dump($data);