面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11607082
json
{
  "response": {
    "modded": true,
    "fps": 60,
    "fps_avg": 58,
    "entities_count": 80351,
    "world_seed": 1984091538,
    "world_size": 3300,
    "steam_id": "90286437942637586",
    "domain": null,
    "id": 11607082,
    "ip": "91.229.114.156",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Chicago",
    "description": "![NamelessNoobs 2x | Vanilla+ | Monthly | Wiped 5/10](https://rust-server-images.physgun.com/824c3d806031f946b10c5d6309330e174571e7fb851d0ede72de6709c86c5280.jpg)\nMap wipe schedule: Monthly \r\nWiped May 10th @ 2 pm EST \r\nNext wipe: June 4th@ 2 pm EST\r\nBP Wipe: Monthly\r\nMax group limit 8.\r\nServer rules: https://namelessrust.com/rules\r\nNo Rust game banned ALTS.\r\nOr any other game bans in past 180 days\r\n\r\nCheck out our community! namelessnoobs.com",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779915494,
    "last_online": 1780230635,
    "icon": null,
    "name": "NamelessNoobs 2x | Vanilla+ | Monthly | Wiped 5/10",
    "connect": "91.229.114.156:28015",
    "request": "91.229.114.156:28017",
    "map": "NamelessNoobs Monthly Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779915494,
    "last_update": 1780230635,
    "banned": false,
    "wipe": 1778433613,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5731,
    "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/11607082");
$data = json_decode($json, true);
var_dump($data);