面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/8985084
json
{
  "response": {
    "fps": 22,
    "fps_avg": 26,
    "entities_count": 90279,
    "world_seed": 7726,
    "world_size": 3500,
    "steam_id": "90286579241345027",
    "domain": null,
    "id": 8985084,
    "ip": "142.132.204.113",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Falkenstein",
    "description": "![RustyMain.eu X50X | MAX 6 | Skills | Kits | PvP | TP | Loot+](https://cdn.tip4serv.com/shop/ALL_STORES/15747/templates/default_bis/assets/images/8833f1e0a36469436bf65ca7aab19e81.png)\nRustyMain - The Rust Community! Thursday Mapwipes 14:00 CET/GMT+1 \r\n-No Blueprints or Workbenches needed. Perfect for beginners and pros \r\n-Over 100 Plugins for excellent Gaming \r\n-Active, non-playing Staff",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779969225,
    "last_online": 1780568426,
    "icon": null,
    "name": "RustyMain.eu X50X | MAX 6 | Skills | Kits | PvP | TP | Loot+",
    "connect": "142.132.204.113:28015",
    "request": "142.132.204.113:28017",
    "map": "store.rustymain.eu",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 5,
    "maxplayers": 128,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 62,
    "add_date": 1746808880,
    "last_update": 1780568426,
    "banned": false,
    "wipe": 1779969601,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1188,
    "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/8985084");
$data = json_decode($json, true);
var_dump($data);