HytaleWelten.de 7 Days to Die Server 的 API

面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11138704
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 11138704,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": "Berlin",
    "description": null,
    "game": 251570,
    "owner": 124805,
    "boosts": 1,
    "last_offline": 1772862707,
    "score": 0,
    "last_online": 1771986614,
    "icon": null,
    "name": "HytaleWelten.de 7 Days to Die Server",
    "connect": null,
    "request": null,
    "map": "Navezgane",
    "gamemode": "7 Days To Die",
    "version": null,
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "DE",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1770505607,
    "last_update": 1772862707,
    "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": 10347,
    "language": "de",
    "parked": true,
    "app": {
      "id": 49,
      "steam_id": 251570,
      "name": "7 Days to Die",
      "url": "7-days-to-die"
    },
    "server_owner": {
      "username": "Matthias_Brenzel",
      "avatar": "dbcdb449-5597-44a4-8eab-de47f27a2f54.jpg",
      "last_online": 1775231445
    },
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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