面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11759408
json
{
  "response": {
    "fps": 162,
    "fps_avg": 162,
    "entities_count": 28786,
    "world_seed": 1514150584,
    "world_size": 2500,
    "steam_id": "90286912474030085",
    "domain": null,
    "id": 11759408,
    "ip": "95.217.108.108",
    "port": 20560,
    "query": 20561,
    "project_id": null,
    "color": 0,
    "city": "Helsinki",
    "description": "Добро пожаловать на Harbor Rust!\r\n-Сервер с рейтами X1\r\n-Полу-классика\r\n-Не играющая администрация\r\n-Админы следят за сервером 24/7\r\n-Наш дискорд: https://discord.gg/mfzCz9BQsQ",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1781248432,
    "last_online": 1781349627,
    "icon": null,
    "name": "Harbor Rust | X1 | Semi-Classic",
    "connect": "95.217.108.108:20560",
    "request": "95.217.108.108:20561",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "FI",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780931712,
    "last_update": 1781349627,
    "banned": false,
    "wipe": 1781248567,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5956,
    "language": "fi",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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