面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11511499
json
{
  "response": {
    "fps": 120,
    "fps_avg": 119,
    "entities_count": 8714,
    "world_seed": 1337,
    "world_size": 1000,
    "steam_id": "90285804934017036",
    "domain": null,
    "id": 11511499,
    "ip": "66.51.96.53",
    "port": 28010,
    "query": 28011,
    "color": 0,
    "city": "Ashburn",
    "description": "![Buildable Monuments 3x Loot 3x | InstaCraft | Kits](https://i.ibb.co/TwnSdCM/Rust-Header-Image-Raised.png)\nThis is a normal server with normal people. Anyone is welcome to join, and we encourage you to invite others. we have a discord> https://discord.gg/jXMyepy3KD\r\n\r\nCommands:\r\n/kit - opens kit menu\r\n/fs - opens furnace splitter menu\r\n/fs on - activates furnace splitter\r\n/fs off - deactivates furnace splitter",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779353851,
    "last_online": 1780593633,
    "icon": null,
    "name": "Buildable Monuments 3x Loot 3x | InstaCraft | Kits",
    "connect": "66.51.96.53:28010",
    "request": "66.51.96.53:28011",
    "map": "Custom 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": 1779353851,
    "last_update": 1780593633,
    "banned": false,
    "wipe": 1778882187,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4955,
    "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/11511499");
$data = json_decode($json, true);
var_dump($data);