面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/8616817
json
{
  "response": {
    "steam_id": "90286591870474269",
    "domain": null,
    "id": 8616817,
    "ip": "194.163.44.140",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Phoenix",
    "description": "![[US] VisionRust - Solo Monthly Vanilla](https://i.imgur.com/jxcScVY.png)\nWelcome to Vision Rust!\r\n\r\nMAP WIPES Monthly on Force Wipe - Every First Thursday\r\n\r\nThis is a SOLO ONLY server.\r\n\r\nPlease join Discord for our full list of rules.\r\nDiscord: https://discord.gg/dakZvFks7P\r\n\r\nTeaming Limits\r\n- Maximum Team Limit: 1.\r\n- Maximum Authorized Players on TC is: 1.\r\n- Maximum Authorized Players on Code Locks is: 1.\r\n- Maximum Authorized Players on Auto Turrets is: 1.\r\n\r\nTeaming Rules\r\n- Players must not roam, raid or complete any monuments or events with more than 1 player.\r\n- When countering raids, events or monuments, you must follow the KOS rules.\r\n- Giving away loot and/or bases is not permitted.\r\n- If you are quitting for the wipe, you must keep all doors locked and allow the base to decay or be raided.\r\n- You must not assist in the defense of another players base for any reason.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780573465,
    "last_online": 1780581637,
    "icon": null,
    "name": "[US] VisionRust - Solo Monthly Vanilla",
    "connect": "194.163.44.140:28015",
    "request": "194.163.44.140:28016",
    "map": "Custom Map",
    "gamemode": "Rust",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 120,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1745032442,
    "last_update": 1780581637,
    "banned": false,
    "wipe": 1778188372,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3280,
    "language": "en",
    "parked": false,
    "app": {
      "id": 252490,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/8616817");
$data = json_decode($json, true);
var_dump($data);