面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11744537
json
{
  "response": {
    "fps": 30,
    "fps_avg": 29,
    "entities_count": 114408,
    "world_seed": 178734867,
    "world_size": 4500,
    "steam_id": "90286536883999775",
    "domain": null,
    "id": 11744537,
    "ip": "194.50.234.143",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "City of London",
    "description": "![RFL Test Server](https://i.imgur.com/JmH9Mif.jpeg)\nThis server is used only for testing. \r\n \r\nServer availability is not guaranteed and may change without warning. \r\n \r\nRandom uptime, restarts, and shutdowns should be expected. \r\n \r\nProgress here is not permanent! \r\n \r\nDiscord Community! - https://discord.gg/rflservers",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780518703,
    "last_online": 1780579237,
    "icon": null,
    "name": "RFL Test Server",
    "connect": "194.50.234.143:28015",
    "request": "194.50.234.143:28016",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780518703,
    "last_update": 1780579237,
    "banned": false,
    "wipe": 1780440190,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 6071,
    "language": "en",
    "parked": false,
    "app": {
      "id": 252490,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11744537");
$data = json_decode($json, true);
var_dump($data);