面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/10439383
json
{
  "response": {
    "steam_id": "90286640648148993",
    "domain": null,
    "id": 10439383,
    "ip": "193.25.252.39",
    "port": 2602,
    "query": 27018,
    "project_id": null,
    "color": 0,
    "city": "Frankfurt am Main",
    "description": "Deadfall�.� ���Dabs Framework�Ưh��\\C",
    "game": 221100,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779668608,
    "last_online": 1780694427,
    "icon": null,
    "name": "We Like DayZ,PVE,Vanilla,no stamina,Groups,FRESHWIPE 31/5",
    "connect": "193.25.252.39:2602",
    "request": "193.25.252.39:27018",
    "map": "Deadfall",
    "gamemode": null,
    "version": "1.29.163047",
    "numplayers": 2,
    "maxplayers": 40,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 63,
    "add_date": 1759911595,
    "last_update": 1780694427,
    "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": 3987,
    "language": "de",
    "parked": false,
    "app": {
      "id": 63,
      "steam_id": 221100,
      "name": "DayZ",
      "url": "dayz"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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