ᴘᴏᴋᴇ ɢᴀʟᴀxɪᴀ ᴇᴠᴇɴᴛᴏ 𝟤x ꜱᴘᴀᴡɴ ʟᴇɢᴇɴᴅᴀʀɪᴏꜱ ʏ ꜱʜɪɴɪᴇꜱ 的 API

面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/10671809
json
{
  "response": {
    "steam_id": null,
    "domain": "play.pokegalaxia.com",
    "id": 10671809,
    "ip": "135.148.137.66",
    "port": 25565,
    "query": 25565,
    "color": 0,
    "city": "Warrenton",
    "description": null,
    "game": 9000034,
    "owner": null,
    "boosts": 1,
    "last_offline": 1770460868,
    "score": 0,
    "last_online": 1776117624,
    "icon": null,
    "name": "ᴘᴏᴋᴇ ɢᴀʟᴀxɪᴀ ᴇᴠᴇɴᴛᴏ 𝟤x ꜱᴘᴀᴡɴ ʟᴇɢᴇɴᴅᴀʀɪᴏꜱ ʏ ꜱʜɪɴɪᴇꜱ",
    "connect": "play.pokegalaxia.com:25565",
    "request": "135.148.137.66:25565",
    "map": null,
    "gamemode": "FML",
    "version": "Velocity 1.7.2-1.21.10",
    "numplayers": 51,
    "maxplayers": 999,
    "bots": 0,
    "secured": null,
    "private": null,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 32,
    "add_date": 1764579600,
    "last_update": 1776117624,
    "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": 1350,
    "language": "en",
    "parked": false,
    "app": {
      "id": 169,
      "steam_id": 9000034,
      "name": "Minecraft",
      "url": "minecraft"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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