EU|Lost in Space|Reforged Eden 2|Mods|PvE|UK|GER|ESP 的 API

面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/9892633
json
{
  "response": {
    "steam_id": "90284855217454087",
    "domain": null,
    "id": 9892633,
    "ip": "185.216.144.66",
    "port": 30400,
    "query": 30401,
    "color": 0,
    "city": "City of London",
    "description": null,
    "game": 383120,
    "owner": null,
    "boosts": 1,
    "last_offline": 1775187731,
    "score": 0,
    "last_online": 1776970238,
    "icon": null,
    "name": "EU|Lost in Space|Reforged Eden 2|Mods|PvE|UK|GER|ESP",
    "connect": "185.216.144.66:30400",
    "request": "185.216.144.66:30401",
    "map": null,
    "gamemode": "Empyrion - Galactic Survival",
    "version": "v1.16.1",
    "numplayers": 2,
    "maxplayers": 20,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 35,
    "add_date": 1753709511,
    "last_update": 1776970238,
    "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": 28,
    "language": "en",
    "parked": false,
    "app": {
      "id": 140,
      "steam_id": 383120,
      "name": "Empyrion - Galactic Survival",
      "url": "empyrion-galactic-survival"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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