面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11577388
json
{
  "response": {
    "steam_id": "90286069277424661",
    "domain": null,
    "id": 11577388,
    "ip": "178.220.255.154",
    "port": 7777,
    "query": 27016,
    "color": 0,
    "city": "Belgrade",
    "description": null,
    "game": 232090,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779356874,
    "last_online": 1779474616,
    "icon": null,
    "name": "NBG 124FPS.ONLINE | CUSTOM TAKEOVER",
    "connect": "178.220.255.154:7777",
    "request": "178.220.255.154:27016",
    "map": "KF-ASHWOODASYLUM",
    "gamemode": "NBG 124FPS.ONLINE | Custom HOE",
    "version": "1150",
    "numplayers": 2,
    "maxplayers": 6,
    "bots": 5,
    "secured": true,
    "private": false,
    "country": "RS",
    "status": true,
    "votes": 0,
    "points": 93,
    "add_date": 1779356874,
    "last_update": 1779474616,
    "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": 22,
    "language": "sr",
    "parked": false,
    "app": {
      "id": 51,
      "steam_id": 232090,
      "name": "Killing Floor 2",
      "url": "killing-floor-2"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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