面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/4186926
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 4186926,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": null,
    "description": "",
    "game": 1066890,
    "owner": 67280,
    "boosts": 1,
    "last_offline": 1750457066,
    "score": 5,
    "last_online": 1738588855,
    "icon": null,
    "name": "Sheepish Racing",
    "connect": null,
    "request": null,
    "map": "InterlagosKart2",
    "gamemode": null,
    "version": null,
    "numplayers": 0,
    "maxplayers": 16,
    "bots": 0,
    "secured": false,
    "private": true,
    "country": "GB",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1715081185,
    "last_update": 1750457066,
    "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": 201,
    "language": "en",
    "parked": true,
    "app": {
      "id": 48189,
      "steam_id": 1066890,
      "name": "Automobilista 2",
      "url": "automobilista-2"
    },
    "server_owner": {
      "username": "backsheep",
      "avatar": "f53bd814-b9cd-4486-ba36-be350c478b54.jpg",
      "last_online": 1715541502
    },
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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