面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/1204814
json
{
  "response": {
    "fps": 94,
    "fps_avg": 91,
    "entities_count": 177392,
    "world_seed": 1212116624,
    "world_size": 4500,
    "steam_id": "90286551716626433",
    "domain": null,
    "id": 1204814,
    "ip": "108.181.36.187",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Los Angeles",
    "description": "Welcome to Dragon PvE.\r\n \r\n5x Resources 3x Components\r\n \r\nHome teleport, Personal minicopter and recycler, Monument bots, NPC raid bases, Automated events and much more\r\n \r\nJoin our discord for rules and support.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780481070,
    "last_online": 1780552836,
    "icon": null,
    "name": "Dragon PvE - [5x|Bots|Events]",
    "connect": "108.181.36.187:28015",
    "request": "108.181.36.187:28017",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1691954659,
    "last_update": 1780552836,
    "banned": false,
    "wipe": 1779412465,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2131,
    "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/1204814");
$data = json_decode($json, true);
var_dump($data);