面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11018224
json
{
  "response": {
    "fps": 109,
    "fps_avg": 106,
    "entities_count": 133996,
    "world_seed": 1337,
    "world_size": 4500,
    "steam_id": "90286627861622784",
    "domain": null,
    "id": 11018224,
    "ip": "66.51.99.41",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Dallas",
    "description": "![Ducks PVE Community Server](https://www.dropbox.com/scl/fi/ch5sn07e34a3safvrsc1i/Ducks-PVE-Project.jpg?rlkey=76nsahisumuvbg4m8oldezqye&st=kq1peuuo&dl=1)\nWelcome to Ducks PVE Community Server!\r\nA chill, friendly Rust experience built for players who want to build, explore, and survive without the constant threat of PvP.\r\n\r\nServer Features:\r\nCustom maps for fresh exploration\r\nVanilla decay\r\nMonthly map wipes / Quarterly BP wipes\r\nSolo, Duo, Trio + Quads allowed\r\nAlliances welcome\r\nNoobs encouraged — everyone can learn and grow here\r\nDaily restarts at 3:00 AM PST\r\n\r\nEnglish-speaking server & admins\r\n\r\nPVE Rules:\r\nNO killing other players — includes sleepers.\r\nNO stealing — this covers bases, loot, horses, vehicles, and anything that isn’t yours.\r\nBase Protection & Entity Protection enabled to keep your builds safe when you upgrade higher then Twig.\r\n\r\nBradley Day:\r\nBegins 2 days before force wipe — a perfect time to gear up and take on the challenge together.\r\n\r\nPlaystyle:\r\nBuild, explore, farm, and enjoy Rust without the stress of PvP. Work together, form alliances, and create your own community stories.\r\n\r\nRule:\r\nNo VPN usage allowed.\r\nUser must not have been banned within the last 182 days.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779876805,
    "last_online": 1780671029,
    "icon": null,
    "name": "Ducks PVE Community Server",
    "connect": "66.51.99.41:28015",
    "request": "66.51.99.41:28016",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 1,
    "maxplayers": 25,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 62,
    "add_date": 1769944477,
    "last_update": 1780671029,
    "banned": false,
    "wipe": 1780596641,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2001,
    "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/11018224");
$data = json_decode($json, true);
var_dump($data);