面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/10413424
json
{
  "response": {
    "fps": 57,
    "fps_avg": 57,
    "entities_count": 206896,
    "world_seed": 1480355751,
    "world_size": 6000,
    "steam_id": "90286625515962374",
    "domain": null,
    "id": 10413424,
    "ip": "66.51.99.84",
    "port": 28000,
    "query": 28001,
    "color": 0,
    "city": "Dallas",
    "description": "![Paradise and Tranquility PvE with Purge!](https://i.ibb.co/TwnSdCM/Rust-Header-Image-Raised.png)\nWelcome and thanks for playing Paradise and Tranquility PvE with Purge! \r\nRules are the same as any other pve server,.\r\n1. No killing raiding, stealing unless its purge!\r\n2. No hate speech or racism this will lead to auto perm ban!\r\n3. Looting decay is ok and the sleepers/players inside of decay is ok but do not loot any sleeper/players that is not in decay.\r\n4. No trolling or roll playing pvp or raiding, that means tc blocking other players.\r\nAny rule broken will lead to perm ban!\r\nIf you need admin help, have questions, want to donate and for full set of rules please join the discord at: https://discord.gg/2xd7hux5h",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780601069,
    "last_online": 1780657828,
    "icon": null,
    "name": "Paradise and Tranquility PvE with Purge!",
    "connect": "66.51.99.84:28000",
    "request": "66.51.99.84:28001",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 1,
    "maxplayers": 75,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1759823840,
    "last_update": 1780657828,
    "banned": false,
    "wipe": 1780601184,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3624,
    "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/10413424");
$data = json_decode($json, true);
var_dump($data);