面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/686064
json
{
  "response": {
    "fps": 155,
    "fps_avg": 146,
    "entities_count": 110052,
    "world_seed": 277,
    "world_size": 4500,
    "steam_id": "90286585384646679",
    "domain": null,
    "id": 686064,
    "ip": "23.94.186.226",
    "port": 28016,
    "query": 28019,
    "color": 0,
    "city": "Buffalo",
    "description": "![! Volten Gaming Vanilla East!](https://hosting.photobucket.com/images/i/voltengaming/volten_logo.png)\nVolten Gaming Vanilla East \r\n Server specific rules and information. \r\n Weekly wipe schedule. \r\n Monthly blueprint. \r\n Active staff members. \r\n Online since February 2021. \r\n Volten Gaming rules are available on our website.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780560266,
    "last_online": 1780591836,
    "icon": null,
    "name": "! Volten Gaming Vanilla East!",
    "connect": "23.94.186.226:28016",
    "request": "23.94.186.226:28019",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 300,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1670760209,
    "last_update": 1780591836,
    "banned": false,
    "wipe": 1780002571,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2502,
    "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/686064");
$data = json_decode($json, true);
var_dump($data);