面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/6282067
json
{
  "response": {
    "fps": 84,
    "fps_avg": 81,
    "entities_count": 192991,
    "world_seed": 249375085,
    "world_size": 4500,
    "steam_id": "90286581948669968",
    "domain": null,
    "id": 6282067,
    "ip": "64.74.161.94",
    "port": 28018,
    "query": 28020,
    "color": 0,
    "city": "Pointe-Claire",
    "description": "![Fusion 3.64 PvE|200+ Plugins|Optimized](https://www.dropbox.com/scl/fi/lrcysa5y7cyipo0ph9tuc/FusionProdBanner.png?rlkey=rtml9inceyu4brgu4k8tj6bbd&dl=1)\nToday is purge.\n\nThat means all PvE plugins are off.\n\nIf you aren't okay with this return tomorrow after 2:30pm EST and the server should have updated to the most recent patch and all will have returned to normal.\n\nFor the rest of you...\n\nHave fun destroying each other. \n\nFeel free to join the Discord server (Links are on the website). \n \nServer restarts @12:30 am/pm Eastern Standard Time",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780547669,
    "last_online": 1780572037,
    "icon": null,
    "name": "Fusion 3.64 PvE|200+ Plugins|Optimized",
    "connect": "64.74.161.94:28018",
    "request": "64.74.161.94:28020",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CA",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1729463040,
    "last_update": 1780572037,
    "banned": false,
    "wipe": 1778178261,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2737,
    "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/6282067");
$data = json_decode($json, true);
var_dump($data);