面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/6769683
json
{
  "response": {
    "fps": 58,
    "fps_avg": 58,
    "entities_count": 113799,
    "world_seed": 121014628,
    "world_size": 4500,
    "steam_id": "90286605499909139",
    "domain": null,
    "id": 6769683,
    "ip": "156.236.84.62",
    "port": 28030,
    "query": 28031,
    "color": 0,
    "city": "Dallas",
    "description": "![The Wooden Shrimp - PvP, No Offline, Solo/Duo, Biweekly](https://i.ibb.co/TwnSdCM/Rust-Header-Image-Raised.png)\nExperience Rust the way it’s meant to be played! Our server features: Bi-Weekly Wipe Cycle: Fresh starts every two weeks for a balanced experience. Offline Raid Protection: Protect your base while you’re offline. Custom Safe Zones: Unique areas to trade, rest, and gear up safely. Quality of Life Plugins: Enhanced gameplay with useful features and conveniences. Active Admins: Friendly and fair staff ensuring a fun, cheat-free environment. Join us for a mix of adventure, community, and fair play!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1778183584,
    "last_online": 1780633225,
    "icon": null,
    "name": "USP PVE US SYCA",
    "connect": "156.236.84.62:28030",
    "request": "156.236.84.62:28031",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 1,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1732811139,
    "last_update": 1780633225,
    "banned": false,
    "wipe": 1780600343,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2091,
    "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/6769683");
$data = json_decode($json, true);
var_dump($data);