GamerzHost.de Serverhosting 的 API

面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/8113411
json
{
  "response": {
    "steam_id": "90284383052044305",
    "domain": null,
    "id": 8113411,
    "ip": "84.200.132.176",
    "port": 28010,
    "query": 28012,
    "color": 0,
    "city": "Frankfurt am Main",
    "description": null,
    "game": 290080,
    "owner": null,
    "boosts": 1,
    "last_offline": 1771978893,
    "score": 0,
    "last_online": 1776218457,
    "icon": null,
    "name": "GamerzHost.de Serverhosting",
    "connect": "84.200.132.176:28010",
    "request": "84.200.132.176:28012",
    "map": null,
    "gamemode": "Life is Feudal: Your Own",
    "version": "yo_1.4.4.5",
    "numplayers": 0,
    "maxplayers": 10,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1741716206,
    "last_update": 1776218457,
    "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": 49,
    "language": "de",
    "parked": false,
    "app": {
      "id": 85,
      "steam_id": 290080,
      "name": "Life is Feudal: Your Own",
      "url": "life-is-feudal-your-own"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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