面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11744575
json
{
  "response": {
    "fps": 50,
    "fps_avg": 47,
    "entities_count": 191040,
    "world_seed": 648252,
    "world_size": 4096,
    "steam_id": "90286612365628417",
    "domain": null,
    "id": 11744575,
    "ip": "185.150.189.121",
    "port": 28016,
    "query": 28018,
    "color": 0,
    "city": "Piscataway",
    "description": "![[NA] Grumpy Gamers 2x | Hybrid PvP/PvE | Quad | No Offlines](https://i.imgur.com/PRSSpW8.png)\nTired of getting offline raided while you are at work? Grumpy Gamers is built for busy adults who want to enjoy Rust without the 24/7 No-Life grind.\r\n\r\nHYBRID SYSTEM\r\n- Opt-In PvP/PvE: Toggle your playstyle safely inside Safe Zones (Team must agree).\r\n- Anti-Abuse Cooldowns: prevent combat logging or abuse.\r\n- Offline Protection: 48-hour raid protection activates 20 minutes after logout.\r\n\r\nSERVER FEATURES & RATES\r\n- Balanced 2x: 2x Loot, 2x Stacks, and Shorter Nights / Longer Days.\r\n- Reduced Upkeep: Keep your base standing without farming like a second job.\r\n- Skill Tree Progression: Earn permanent character perks as you play.\r\n- Extended Workbenches: Craft items anywhere within your base radius.\r\n\r\nENDGAME & PVE CONTENT\r\n- Raid-able Bases: Test your raiding skills against AI-defended bases.\r\n- Defendable Homes: Trigger an AI raid on your own base to test your defenses.\r\n- Tuned NPCs: Smart AI that provides a fun challenge without aim-bot beaming you.\r\n- Custom Map\r\n- PvP RP PvE",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780604059,
    "last_online": 1780617627,
    "icon": null,
    "name": "[NA] Grumpy Gamers 2x | Hybrid PvP/PvE | Quad | No Offlines",
    "connect": "185.150.189.121:28016",
    "request": "185.150.189.121:28018",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 3,
    "maxplayers": 40,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 62,
    "add_date": 1780518708,
    "last_update": 1780617627,
    "banned": false,
    "wipe": 1780597322,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1815,
    "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/11744575");
$data = json_decode($json, true);
var_dump($data);