面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/9570605
json
{
  "response": {
    "fps": 10,
    "fps_avg": 10,
    "entities_count": 90057,
    "world_seed": 123456789,
    "world_size": 4000,
    "steam_id": 90286747216447490,
    "domain": null,
    "id": 9570605,
    "ip": "85.190.162.219",
    "port": 12300,
    "query": 12301,
    "project_id": null,
    "color": 0,
    "city": "Frankfurt am Main",
    "description": "![For Science by Oceansoul76 & der_arbeitslose_Pirat](https://makis.world/media/a38b/61b6/f358/959b/2c1d560896264d77.jpg)\nDer Seed des Monats: 123456789\r\n \r\n \r\nNützliche Konsolen Commands: \r\n \r\nTageszeit auf 09:00 Uhr setzen: env.time 09 \r\n \r\nAusgewählten Gegenstand verschwinden lassen: ent.kill \r\n \r\nMinicopter spawnen: entity.spawn minicopter \r\n \r\nChinook spawnen: spawn ch47.entity \r\n \r\nGod mode an/aus: god true oder god false \r\n \r\nWeitere Tipps sind jederzeit willkommen. ;) \r\n \r\nHier könnte etwas sinnvolles stehen.  \r\n \r\nTut es aber nicht.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780835064,
    "last_online": 1780918834,
    "icon": null,
    "name": "For Science by Oceansoul76 & der_arbeitslose_Pirat",
    "connect": "85.190.162.219:12300",
    "request": "85.190.162.219:12301",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1750594384,
    "last_update": 1780918834,
    "banned": false,
    "wipe": 1780599488,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3565,
    "language": "de",
    "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/9570605");
$data = json_decode($json, true);
var_dump($data);