面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/7468066
json
{
  "response": {
    "fps": 90,
    "fps_avg": 88,
    "entities_count": 137647,
    "world_seed": 1023990768,
    "world_size": 4500,
    "steam_id": "90286454299127809",
    "domain": null,
    "id": 7468066,
    "ip": "81.16.176.157",
    "port": 7009,
    "query": 7011,
    "color": 0,
    "city": "Solihull",
    "description": "![Xenos PvE Noob Friendly No Decay [EU]](https://files.facepunch.com/buck2016/September/20/vanilla-uk-rust-server-banner.png)\nWelcome to Xenos PvE Noob Friendly - NO DECAY\r\n\r\nFor all our Server rules and more join our Discord (view webpage)\r\n\r\nInformation:\r\nBuilding damage disabled but make sure you add windows and locks to stop the trolls!\r\nWipes only when forced [Last wipe: 07/05]  Next wipe: [04/06]\r\nPurge 48hrs leading to Wipe\r\nActive playing admin\r\n\r\nRules\r\nNo raiding, griefing or looting of any sleepers\r\n Anyone found doing so will be dealt with by Admin\r\nNo mic or chat spam, player disrespect, racism or harassment.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780470420,
    "last_online": 1780552827,
    "icon": null,
    "name": "Xenos PvE Noob Friendly No Decay [EU]",
    "connect": "81.16.176.157:7009",
    "request": "81.16.176.157:7011",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 1,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1739234790,
    "last_update": 1780552827,
    "banned": false,
    "wipe": 1778185148,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1173,
    "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/7468066");
$data = json_decode($json, true);
var_dump($data);