面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11782086
json
{
  "response": {
    "steam_id": "90287001979248653",
    "domain": null,
    "id": 11782086,
    "ip": "66.51.98.54",
    "port": 28015,
    "query": 28016,
    "project_id": null,
    "color": 0,
    "city": "Los Angeles",
    "description": "![[US] Skully Town | 3x | Max 6 | Kits | TP | Loot+ | Wiped 6/11](https://i.imgur.com/oOxMk4S.png)\nWelcome to Skully Town 3x! \r\n  A balanced Rust experience with faster progression while keeping the vanilla feel. \r\n \r\n Wipes \r\n • Map: Weekly \r\n • Blueprints: Monthly (Force Wipe) \r\n \r\n Server Info \r\n • Max Team Size: 6 \r\n • Active Non-Playing Admins \r\n • Premium Raidable Bases \r\n • Offline Raid Protection \r\n • Dangerous Treasures \r\n • Faster Crafting \r\n • Backpacks \r\n • Homes \r\n • Kits \r\n \r\n Rules \r\n • No Cheating or Exploits \r\n • No Racism or Toxic Behavior \r\n • Report players with F7 or Discord",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1781376799,
    "last_online": 1781476231,
    "icon": null,
    "name": "[US] Skully Town | 3x | Max 6 | Kits | TP | Loot+ | Wiped 6/11",
    "connect": "66.51.98.54:28015",
    "request": "66.51.98.54:28016",
    "map": "Procedural Map",
    "gamemode": "Rust",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1781376799,
    "last_update": 1781476231,
    "banned": false,
    "wipe": 1781201841,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 6242,
    "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/11782086");
$data = json_decode($json, true);
var_dump($data);