面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/6795529
json
{
  "response": {
    "fps": 59,
    "fps_avg": 58,
    "entities_count": 99722,
    "world_seed": 586144884,
    "world_size": 4250,
    "steam_id": "90286210267537421",
    "domain": null,
    "id": 6795529,
    "ip": "156.236.84.24",
    "port": 28000,
    "query": 28001,
    "color": 0,
    "city": "Dallas",
    "description": "![Rusty Sheep 2.0 US | 50% Upkeep | No BP Wipe](https://www.dropbox.com/scl/fi/1jbwsxru747eji9ejc60t/NEWRUSTYHEADER.jpg?rlkey=d6u5gpjz03e3pnlkbdfsj5abz&st=vfgxz8ss&dl=1)\nWelcome to Rusty Sheep 2.1! \r\n NA | 0.5x Decay | 8-Man Max \r\n Monthly Map Wipes | BP Wipe Every New Year’s Day \r\n Chill, long-term focused server with reduced upkeep and steady progression. Build bigger, play at your own pace, and enjoy balanced PvP without constant resets. No pay-to-win. Active, fair moderation.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1778176987,
    "last_online": 1780567826,
    "icon": null,
    "name": "Rusty Sheep 2.0 US | 50% Upkeep | No BP Wipe",
    "connect": "156.236.84.24:28000",
    "request": "156.236.84.24:28001",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 1,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1733248602,
    "last_update": 1780567826,
    "banned": false,
    "wipe": 1778177386,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1464,
    "language": "en",
    "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/6795529");
$data = json_decode($json, true);
var_dump($data);