面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/216142
json
{
  "response": {
    "oxide": true,
    "modded": true,
    "fps": 30,
    "fps_avg": 30,
    "entities_count": 109046,
    "steam_id": "90286188403139598",
    "domain": null,
    "id": 216142,
    "ip": "208.103.169.201",
    "port": 28010,
    "query": 28015,
    "color": 0,
    "city": "London",
    "description": "![Rustoria.co - 10X | No BPs | Kits | Shop -> JUST WIPED](https://fs.rustoria.co/dylan/cc6dd239-3746-45d9-89e9-eeec90e1d9df.png)\nRustoria.co No BPs / Workbench 10x\r\n\\tTuesday & Friday map wipes at 4PM UK\r\n\r\nAll blueprints unlocked by default with no requirements for workbenches. Increased PVP interaction with events.\r\n\r\nKits & VIP available at donate.rustoria.co\r\n\r\nActive non playing admins. 24/7 admin support. Custom plugins. Amazing performance. Frequent airdrops.\r\n\r\nView our range of specialised servers at https://rustoria.co/servers",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1778242986,
    "last_online": 1779759018,
    "icon": null,
    "name": "Rustoria.co - 10X | No BPs | Kits | Shop -> JUST WIPED",
    "connect": "208.103.169.201:28010",
    "request": "208.103.169.201:28015",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 10,
    "maxplayers": 250,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 62,
    "add_date": 1582969549,
    "last_update": 1779759018,
    "banned": false,
    "wipe": 1779461816,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1228,
    "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/216142");
$data = json_decode($json, true);
var_dump($data);