[SEA] tRust SG PvE Monthly Hardcore 的 API

面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/10249299
json
{
  "response": {
    "fps": 203,
    "fps_avg": 111,
    "entities_count": 158800,
    "world_seed": 0,
    "world_size": 5000,
    "steam_id": 90285639835944960,
    "domain": null,
    "id": 10249299,
    "ip": "104.234.180.52",
    "port": 10003,
    "query": 9003,
    "color": 0,
    "city": "Singapore",
    "description": "[SEA] tRust SG PvE Monthly Hardcore\r\nMonthly, forced wipes only - Community, unmodded, hardcore Rust - with rules\r\nRules:\r\nNO Killing (No PvP) except oilrigs/underwater labs/deep sea/self defence\r\nNO Raiding\r\nNO Stealing\r\nNO Cheating\r\nSecure your base - No Twig - upgrade!\r\nMax one car per person, one tug per group, no hoarding.\r\nEnjoy\r\n\r\nThis too hardcore for you? Want something vanilla? Check [SEA] tRust SG PvE Monthly Vanilla\r\n\r\nDiscord: https://discord.gg/FpFyKbj (or click website button)",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1778365984,
    "score": 0,
    "last_online": 1778586617,
    "icon": null,
    "name": "[SEA] tRust SG PvE Monthly Hardcore",
    "connect": "104.234.180.52:10003",
    "request": "104.234.180.52:9003",
    "map": "Procedural Map",
    "gamemode": "Hardcore",
    "version": "2625",
    "numplayers": 5,
    "maxplayers": 69,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "SG",
    "status": true,
    "votes": 0,
    "points": 63,
    "add_date": 1756984144,
    "last_update": 1778586617,
    "banned": false,
    "wipe": 1778176190,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1305,
    "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/10249299");
$data = json_decode($json, true);
var_dump($data);