面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11267033
json
{
  "response": {
    "steam_id": "90284399333736477",
    "domain": null,
    "id": 11267033,
    "ip": "5.9.32.167",
    "port": 28190,
    "query": 28190,
    "color": 0,
    "city": "Falkenstein",
    "description": "goon sesh",
    "game": 108600,
    "owner": null,
    "boosts": 1,
    "last_offline": 1775497287,
    "score": 0,
    "last_online": 1776289211,
    "icon": null,
    "name": "goon corner",
    "connect": "5.9.32.167:28190",
    "request": "5.9.32.167:28190",
    "map": "Muldraugh, KY",
    "gamemode": "Project Zomboid",
    "version": "42.16",
    "numplayers": 3,
    "maxplayers": 8,
    "bots": 0,
    "secured": true,
    "private": true,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 78,
    "add_date": 1774555490,
    "last_update": 1776289211,
    "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": 42,
    "language": "de",
    "parked": false,
    "app": {
      "id": 71,
      "steam_id": 108600,
      "name": "Project Zomboid",
      "url": "project-zomboid"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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