RUSTLAB | Solo/Duo | Vanilla | Just Wiped 18/04 10:00 CET 的 API

面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11131049
json
{
  "response": {
    "fps": 152,
    "fps_avg": 165,
    "entities_count": 110552,
    "world_seed": 1,
    "world_size": 3750,
    "steam_id": "90284797674703885",
    "domain": null,
    "id": 11131049,
    "ip": "157.85.95.53",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Frankfurt am Main",
    "description": "![RUSTLAB | Solo/Duo | Vanilla | Just Wiped 18/04 10:00 CET](https://rustservers.gg/banner-5978778-0.gif?nocache=1772708653server.headerimage)\nMap - Monthly @ Force\r\nBPs - Monthly @ FacePunch Update, \r\n→ Group limit: 2\r\n→ 50% upkeep\r\n→ Mini's spawn on roads\r\n→ Map size: 3750+FPS,  \r\nRules:\r\n- No hacking / scripting\r\n- No intentional bug abuse\r\n- No EAC / FP banned alt\r\n- No ban evading\r\n- No racism,   \r\nActive non playing admins",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776833598,
    "score": 0,
    "last_online": 1776838818,
    "icon": null,
    "name": "RUSTLAB | Solo/Duo | Vanilla | Just Wiped 18/04 10:00 CET",
    "connect": "157.85.95.53:28015",
    "request": "157.85.95.53:28016",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2623",
    "numplayers": 2,
    "maxplayers": 75,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1770397331,
    "last_update": 1776838818,
    "banned": false,
    "wipe": 1776497522,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1851,
    "language": "de",
    "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/11131049");
$data = json_decode($json, true);
var_dump($data);