面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/10533870
json
{
  "response": {
    "fps": 147,
    "fps_avg": 148,
    "entities_count": 107421,
    "world_seed": 1636084454,
    "world_size": 4500,
    "steam_id": "90284866765349905",
    "domain": null,
    "id": 10533870,
    "ip": "176.125.232.140",
    "port": 28050,
    "query": 28052,
    "color": 0,
    "city": "Stabekk",
    "description": "![RustBreeder](https://www.dropbox.com/s/bc6cf0tpn4gow6z/rust_wallpaper.jpg?dl=1)\nRustBreeder proudly presents our own Rust server!\r\nWe created an environment to safely learn how crossbreeding works without the hassle of collecting seeds by hand and hoping for the right genes to appear.\r\n\r\nWe offer:\r\n- a crossbreeding plugin specially developed for farmers (not the rock-hitting ones)\r\n- building plugins\r\n- free & instant crafting\r\n- grief & player protection\r\n- teleport\r\n- and other QoL stuff\r\n\r\nA list of currently available commands can be accessed in-game via button in the top right corner.\r\n\r\nJoin the RustBreeder Discord: https://discord.gg/Va5475pqFw",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776967402,
    "score": 0,
    "last_online": 1776982222,
    "icon": null,
    "name": "RustBreeder",
    "connect": "176.125.232.140:28050",
    "request": "176.125.232.140:28052",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2623",
    "numplayers": 0,
    "maxplayers": 25,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "NO",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1762518616,
    "last_update": 1776982222,
    "banned": false,
    "wipe": 1775157120,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3901,
    "language": "no",
    "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/10533870");
$data = json_decode($json, true);
var_dump($data);