面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11685918
json
{
  "response": {
    "steam_id": 90286969835256860,
    "domain": null,
    "id": 11685918,
    "ip": "140.143.96.74",
    "port": 20139,
    "query": 11020,
    "project_id": null,
    "color": 0,
    "city": "Chengdu",
    "description": null,
    "game": 346110,
    "owner": null,
    "boosts": 1,
    "last_offline": 1781364837,
    "last_online": 1781375571,
    "icon": null,
    "name": "【0311无印痕单通剧情服】迷失岛 需瓦尔盖罗飞�",
    "connect": "140.143.96.74:20139",
    "request": "140.143.96.74:11020",
    "map": "LostIsland",
    "gamemode": "TestGameMode_C",
    "version": "1.0.0.0",
    "numplayers": 0,
    "maxplayers": 70,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CN",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1780224602,
    "last_update": 1781375571,
    "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": 11164,
    "language": "zh",
    "parked": false,
    "app": {
      "id": 67,
      "steam_id": 346110,
      "name": "ARK: Survival Evolved",
      "url": "ark-survival-evolved"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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