面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/10780561
json
{
  "response": {
    "fps": 236,
    "fps_avg": 235,
    "entities_count": 89221,
    "world_seed": 1337,
    "world_size": 3800,
    "steam_id": "90286684707372035",
    "domain": null,
    "id": 10780561,
    "ip": "185.248.134.167",
    "port": 28014,
    "query": 28015,
    "project_id": null,
    "color": 0,
    "city": "London",
    "description": "![Survivors.gg [ 2x Solo/Duo ] FULLWIPED 29.05](https://www.survivors.gg/temp/server2.png)\nJoin Us: www.discord.survivors.gg \r\n\r\n \r\n - Fullwipes every Friday at 16:00 CEST \r\n Map wipes every Tuesday at 14:00 CEST \r\n - Max Team: 2 \r\n - Electric BP's are unlocked \r\n - 2x Gather Rates. \r\n - Half smelt, crafting speeds \r\n - 5min nights \r\n - Fishing Village and Large Barn with Recycler",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780749864,
    "last_online": 1780789827,
    "icon": null,
    "name": "My Untitled Rust Server",
    "connect": "185.248.134.167:28014",
    "request": "185.248.134.167:28015",
    "map": "High FPS | Wiped - 5h ago",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 2,
    "maxplayers": 75,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1766872417,
    "last_update": 1780789827,
    "banned": false,
    "wipe": 1780769516,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2504,
    "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/10780561");
$data = json_decode($json, true);
var_dump($data);