面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11692028
json
{
  "response": {
    "steam_id": "90286740468963331",
    "domain": null,
    "id": 11692028,
    "ip": "118.127.60.51",
    "port": 27155,
    "query": 27156,
    "project_id": null,
    "color": 0,
    "city": "Sydney",
    "description": null,
    "game": 1604030,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780647261,
    "last_online": 1780939847,
    "icon": null,
    "name": "Jinx and NK are Vampies",
    "connect": "118.127.60.51:27155",
    "request": "118.127.60.51:27156",
    "map": "VRisingWorld",
    "gamemode": "4f8030c9-bdb3-4b87-98ac-c0ac282f1560",
    "version": "0.0.0.1",
    "numplayers": 2,
    "maxplayers": 10,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "AU",
    "status": true,
    "votes": 0,
    "points": 40,
    "add_date": 1780225014,
    "last_update": 1780939847,
    "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": 114,
    "language": "en",
    "parked": false,
    "app": {
      "id": 55075,
      "steam_id": 1604030,
      "name": "V Rising",
      "url": "v-rising"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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