Obsidian-MC Ламповый ◆ Выживание 的 API

面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/586356
json
{
  "response": {
    "steam_id": null,
    "domain": "lamp.obsidian-mc.ru",
    "id": 586356,
    "ip": "78.107.237.25",
    "port": 25565,
    "query": 25565,
    "color": 0,
    "city": "Moscow",
    "description": "[\n    {\n        \"id\": \"iK4_jeb4pT\",\n        \"type\": \"paragraph\",\n        \"data\": {\n            \"text\": \"Для игры на сервере используйте адрес [lamp.obsidian-mc.ru](https://obsidian-mc.ru/servers/lamp.6) . Сервер, который не содержит плагинов сильно упрощающих геймплей.\"\n        }\n    }\n]",
    "game": 9000034,
    "owner": 132484,
    "boosts": 1,
    "last_offline": 1773006172,
    "score": 5,
    "last_online": 1776081011,
    "icon": null,
    "name": "Obsidian-MC Ламповый ◆ Выживание",
    "connect": "lamp.obsidian-mc.ru:25565",
    "request": "78.107.237.25:25565",
    "map": null,
    "gamemode": null,
    "version": "Paper 1.20.4",
    "numplayers": 0,
    "maxplayers": 25,
    "bots": 0,
    "secured": null,
    "private": null,
    "country": "RU",
    "status": true,
    "votes": 0,
    "points": 90,
    "add_date": 1669156470,
    "last_update": 1776081011,
    "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": 29,
    "language": "ru",
    "parked": false,
    "app": {
      "id": 169,
      "steam_id": 9000034,
      "name": "Minecraft",
      "url": "minecraft"
    },
    "server_owner": {
      "username": "electron",
      "avatar": "fd951653-6357-4faf-a8a2-a3dae80784e6.jpg",
      "last_online": 1756305656
    },
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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