面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11691908
json
{
  "response": {
    "steam_id": "90286705719870495",
    "domain": null,
    "id": 11691908,
    "ip": "114.66.40.153",
    "port": 6019,
    "query": 6025,
    "project_id": null,
    "color": 0,
    "city": "Beijing",
    "description": null,
    "game": 1604030,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780720454,
    "last_online": 1780850472,
    "icon": null,
    "name": "V Rising Dedicated Server",
    "connect": "114.66.40.153:6019",
    "request": "114.66.40.153:6025",
    "map": "VRisingWorld",
    "gamemode": "d7d2f20f-d2ed-4ab6-af52-46515be9ecef",
    "version": "0.0.0.1",
    "numplayers": 0,
    "maxplayers": 40,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CN",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1780225007,
    "last_update": 1780850472,
    "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": 3523,
    "language": "zh",
    "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/11691908");
$data = json_decode($json, true);
var_dump($data);