面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11759349
json
{
  "response": {
    "fps": 60,
    "fps_avg": 59,
    "entities_count": 67355,
    "world_seed": 8675309,
    "world_size": 3500,
    "steam_id": "90286775264881690",
    "domain": null,
    "id": 11759349,
    "ip": "66.51.97.67",
    "port": 28050,
    "query": 28051,
    "project_id": null,
    "color": 0,
    "city": "City of London",
    "description": "![skull breakers rust NOOB FRIENDLY :) pve](https://i.ibb.co/TwnSdCM/Rust-Header-Image-Raised.png)\nwe are a pve server that means do not raid kill or do anything that means hurting people but teammates or a RP please do abide by this rules if not you will get a ban thank you for reading this and also on fridays we have free loot friday but we will have it through 3 to 6 pm me or someone will be on and thank you for youre time and good night.[also only on summers.] and 50% less upkeep",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780970057,
    "last_online": 1781349630,
    "icon": null,
    "name": "skull breakers rust NOOB FRIENDLY :) pve",
    "connect": "66.51.97.67:28050",
    "request": "66.51.97.67:28051",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780931710,
    "last_update": 1781349630,
    "banned": false,
    "wipe": 1780711442,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5940,
    "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/11759349");
$data = json_decode($json, true);
var_dump($data);