Server hosted by Physgun.com 的 API

面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/10871093
json
{
  "response": {
    "fps": 60,
    "fps_avg": 60,
    "entities_count": 89870,
    "world_seed": 1337,
    "world_size": 4000,
    "steam_id": "90283694343985155",
    "domain": null,
    "id": 10871093,
    "ip": "91.229.114.45",
    "port": 28087,
    "query": 28089,
    "color": 0,
    "city": "Chicago",
    "description": "![NA | Rust Station 5x Solo/Duo/Trio/Quad|TP|Homes|Kits](https://imgur.com/a/XdRCSMD)\nWelcome To Rust Station 5x !  \r\n  \r\nWipe Schedule: \r\n Full Wipe Every Other Friday 4:00PM EST \r\n \r\n Features: \r\n  • Max Group: 4 \r\n  • 5x Gather | 5x Loot | Instant Barrels \r\n  • BetterTC / Auto Base Upgrading \r\n  • Balanced Kits \r\n  • Fast Recycle / Fast Smelt \r\n  • Increased Stack Size \r\n  • Custom Loot Tables \r\n  • Free bgrade and kits \r\n  • Instant Barrels and Crafting \r\n  • Short Nights",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776777803,
    "score": 0,
    "last_online": 1776840621,
    "icon": null,
    "name": "Server hosted by Physgun.com",
    "connect": "91.229.114.45:28087",
    "request": "91.229.114.45:28089",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2622",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1768318514,
    "last_update": 1776840621,
    "banned": false,
    "wipe": 1772838264,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4216,
    "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/10871093");
$data = json_decode($json, true);
var_dump($data);