The�Spooky�Server�[Boo!] 的 API

面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/9560709
json
{
  "response": {
    "steam_id": "90284383326013446",
    "domain": null,
    "id": 9560709,
    "ip": "107.173.148.127",
    "port": 7707,
    "query": 28852,
    "color": 0,
    "city": "Santa Clara",
    "description": null,
    "game": 1250,
    "owner": null,
    "boosts": 1,
    "last_offline": 1775718683,
    "score": 0,
    "last_online": 1776252028,
    "icon": null,
    "name": "The�Spooky�Server�[Boo!]",
    "connect": "107.173.148.127:7707",
    "request": "107.173.148.127:28852",
    "map": "KF-WestLondon",
    "gamemode": "Killing Floor",
    "version": "1.0.6.5",
    "numplayers": 0,
    "maxplayers": 6,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1750586214,
    "last_update": 1776252028,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 253,
    "language": "en",
    "parked": false,
    "app": {
      "id": 50,
      "steam_id": 1250,
      "name": "Killing Floor",
      "url": "killing-floor"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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