面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11781809
json
{
  "response": {
    "fps": 220,
    "fps_avg": 221,
    "entities_count": 69082,
    "world_seed": 989472446,
    "world_size": 3500,
    "steam_id": "90286947120874515",
    "domain": null,
    "id": 11781809,
    "ip": "208.92.235.196",
    "port": 25565,
    "query": 28017,
    "project_id": null,
    "color": 0,
    "city": "Toronto",
    "description": "Welcome to RobCo Gaming PvE!\n\nA relaxed, friendly Rust server built to chill, run monuments, build beyond what you can on pvp!!\nFEATURES\n• PvE Gameplay\n• No Raiding\n• No Griefing\n• Active Staff Team\n• Regular Community Events - Coming Soon\n• New Player Friendly\n\nSERVER RULES\n\n1. No raiding or damaging player bases. \n2. No stealing from players or griefing.\n3. No PvP outside of designated event zones. - Coming Soon\n4. No harassment, racism, hate speech, or excessive toxicity.\n5. No cheating, scripting, exploiting, or bug abuse.\n6. Respect all players, staff, and community spaces.\n7. Do not impersonate staff members.\n8. Keep chat chill.\n\nBuild. Explore. Relax. Enjoy Rust.\n\nDiscord Coming Soon",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1781524386,
    "last_online": 1781439035,
    "icon": null,
    "name": "RobCo Gaming | PvE | Monthly Wipes | QoL Enhance | Noob Friendl",
    "connect": "208.92.235.196:25565",
    "request": "208.92.235.196:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CA",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1781376787,
    "last_update": 1781524386,
    "banned": false,
    "wipe": 1781119982,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 12637,
    "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/11781809");
$data = json_decode($json, true);
var_dump($data);