面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11261202
json
{
  "response": {
    "fps": 163,
    "fps_avg": 158,
    "entities_count": 146202,
    "world_seed": 632244421,
    "world_size": 4000,
    "steam_id": "90286340512053255",
    "domain": null,
    "id": 11261202,
    "ip": "175.205.187.241",
    "port": 28025,
    "query": 28027,
    "color": 0,
    "city": "Cheongju-si",
    "description": "![KR Vanilla+ X3 초보 서버 05-29 초기화](https://data.myrustserver.com/mrsimg/logo.jpg)\n러스트 바닐라+\r\n자원3배,드랍3배(일부제외)\r\n매주 금요일 초기화\r\n맵 사이즈 4250\r\n어드민은 참여하지 않습니다.\r\n\r\n\r\nThis server is available to players connecting from Korea only.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780566214,
    "last_online": 1780110619,
    "icon": null,
    "name": "KR Vanilla+ X3 초보 서버 05-29 초기화",
    "connect": "175.205.187.241:28025",
    "request": "175.205.187.241:28027",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 200,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "KR",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1774555225,
    "last_update": 1780566214,
    "banned": false,
    "wipe": 1780013311,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 10941,
    "language": "ko",
    "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/11261202");
$data = json_decode($json, true);
var_dump($data);