Valve Left4Dead US SouthWest Server (srcds2001-lax2.389.9) 的 API

面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/4682438
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 4682438,
    "ip": "162.254.195.155",
    "port": 27023,
    "query": 27023,
    "color": 0,
    "city": "Los Angeles",
    "description": "",
    "game": 500,
    "owner": null,
    "boosts": 1,
    "last_offline": 1775076733,
    "score": 0,
    "last_online": 1776433317,
    "icon": null,
    "name": "Valve Left4Dead US SouthWest Server (srcds2001-lax2.389.9)",
    "connect": "162.254.195.155:27023",
    "request": "162.254.195.155:27023",
    "map": "l4d_hospital01_apartment",
    "gamemode": "L4D - Co-op - Expert",
    "version": "1.0.4.5",
    "numplayers": 0,
    "maxplayers": 4,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1717697739,
    "last_update": 1776433317,
    "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": 882,
    "language": "en",
    "parked": false,
    "app": {
      "id": 18,
      "steam_id": 500,
      "name": "Left 4 Dead",
      "url": "left-4-dead"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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