面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11159758
json
{
  "response": {
    "fps": 54,
    "fps_avg": 55,
    "entities_count": 81493,
    "world_seed": 1470519689,
    "world_size": 3750,
    "steam_id": "90286576221510684",
    "domain": null,
    "id": 11159758,
    "ip": "66.51.96.69",
    "port": 28080,
    "query": 28081,
    "color": 0,
    "city": "Ashburn",
    "description": "![Altopia - Modded | Raid Bases | Community | Biplane](https://i.ibb.co/zWYqVwZQ/altopia2024header.png)\nWelcome to Altopia!  A friendly rust community Featuring Submarine Water Event, Armored Train, Convoy, Biplanes and\r\nparachutes at Airfield, lockable vehicles, increased stack sizes and TC decay protection!\r\n\r\nPlease be kind to each other, no toxicity, racism or harassment will be tolerated\r\n\r\nServer still growing, events rotated monthly.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1778177585,
    "last_online": 1780584035,
    "icon": null,
    "name": "Altopia - Modded | Raid Bases | Community | Biplane",
    "connect": "66.51.96.69:28080",
    "request": "66.51.96.69:28081",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1772228139,
    "last_update": 1780584035,
    "banned": false,
    "wipe": 1778177802,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4318,
    "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/11159758");
$data = json_decode($json, true);
var_dump($data);