面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11743392
json
{
  "response": {
    "steam_id": "90286537256946688",
    "domain": null,
    "id": 11743392,
    "ip": "43.249.195.72",
    "port": 10134,
    "query": 10136,
    "project_id": null,
    "color": 0,
    "city": "Jinan",
    "description": null,
    "game": 346110,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780824810,
    "last_online": 1780528384,
    "icon": null,
    "name": "4.1 SDSI野性附加 互通服 孤岛",
    "connect": "43.249.195.72:10134",
    "request": "43.249.195.72:10136",
    "map": "TheIsland",
    "gamemode": "TestGameMode_C",
    "version": "361.7",
    "numplayers": 0,
    "maxplayers": 30,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "CN",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1780518550,
    "last_update": 1780824810,
    "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": 17349,
    "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/11743392");
$data = json_decode($json, true);
var_dump($data);