面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11260126
json
{
  "response": {
    "fps": 148,
    "fps_avg": 145,
    "entities_count": 72067,
    "world_seed": 41172,
    "world_size": 3500,
    "steam_id": "90286605224559616",
    "domain": null,
    "id": 11260126,
    "ip": "134.255.228.132",
    "port": 28014,
    "query": 28015,
    "color": 0,
    "city": "Frankfurt am Main",
    "description": "![EU Chris macht 1x Monthly Anti Offline Raid Solo/Duo/Trio/Quad ](http://chris-macht.de/rust/header.png)\nEU Chris macht 1x Monthly Anti Offline Raid Solo/Duo/Trio/Quad | No BP Wipes | Noob friendly\r\n\r\nRules:\r\n1. No abusive messages\r\n2. Be beginner friendly\r\n3. Maximum team size: 4 players\r\n4. Use only English or German in chat\r\n\r\nSettings:\r\n- Anti Offline Raid:\r\n- 0-1 hour offline: 100% damage\r\n- 1-24 hours offline: 0% damage\r\n- 24-48 hours offline: 50% damage\r\n- 48-72 hours offline: 100% damage\r\n- 72-96 hours offline: 200% damage\r\n\r\n- Mapsize: 3500\r\n- 25% lower upkeep\r\n- 25% slower decay\r\n- /trade every 10 minutes\r\n- Skinbox with /skin \r\n- /remove every 30 minutes \r\n- /sil custom signs\r\n- Starter help with /kit\r\n- Raid alarm in Rust+\r\n- No BP Wipe\r\n- Furnace splitter\r\n- Recycler at fishing village\r\n- Box sorter\r\n- Custom AntiCheat\r\n- Auto Restart: 05:30 AM CET\r\n\r\nServerwipe:\r\n- First Thursday of the month (No BP wipe, only map wipe)\r\n\r\nStore:\r\nstore.chris-macht.de\r\n- Skip Queue\r\n- No P2W\r\n\r\nOur Discord server: discord.chris-macht.de (Enter in webbrowser)",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780599268,
    "last_online": 1780605036,
    "icon": null,
    "name": "EU Chris macht 1x Monthly Anti Offline Raid Solo/Duo/Trio/Quad",
    "connect": "134.255.228.132:28014",
    "request": "134.255.228.132:28015",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 150,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1774555188,
    "last_update": 1780605036,
    "banned": false,
    "wipe": 1780599657,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4253,
    "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/11260126");
$data = json_decode($json, true);
var_dump($data);