Claire and Ashley's Convoy Server 的 API

面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/7480200
json
{
  "response": {
    "steam_id": "85568392932131515",
    "domain": null,
    "id": 7480200,
    "ip": "62.30.119.168",
    "port": 27015,
    "query": 27016,
    "color": 0,
    "city": "Cheltenham",
    "description": null,
    "game": 227300,
    "owner": null,
    "boosts": 1,
    "last_offline": 1772179892,
    "score": 0,
    "last_online": 1775998863,
    "icon": null,
    "name": "Claire and Ashley's Convoy Server",
    "connect": "62.30.119.168:27015",
    "request": "62.30.119.168:27016",
    "map": "europe",
    "gamemode": "Euro Truck Simulator 2",
    "version": null,
    "numplayers": 0,
    "maxplayers": 8,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1739268913,
    "last_update": 1775998863,
    "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": 213,
    "language": "en",
    "parked": false,
    "app": {
      "id": 1980,
      "steam_id": 227300,
      "name": "Euro Truck Simulator 2",
      "url": "euro-truck-simulator-2"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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