面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11607262
json
{
  "response": {
    "fps": 60,
    "fps_avg": 60,
    "entities_count": 97930,
    "world_seed": 1337,
    "world_size": 3500,
    "steam_id": "90286546903954436",
    "domain": null,
    "id": 11607262,
    "ip": "66.51.99.45",
    "port": 28010,
    "query": 28011,
    "color": 0,
    "city": "Dallas",
    "description": "![BEAR CLAW SERVERS | 2X | SOLO | MONTHLY | KITS | NOOB FRIENDLY](https://i.imgur.com/HWSNl4x.png)\nBEAR CLAW SERVERS [NA SERVER]\r\nMAX GROUP 1 (Solo Only)\r\n\r\n- X2 STACK SIZE \r\n- X2 GATHER RATES\r\n- X2 CRAFTING SPEED\r\n- X2 SMELTING SPEED\r\n- X2 RECYCLER SPEED\r\n- MINI'S SPAWN ON ROADS\r\n- MINI'S AUTO HOVER (PRESS X)\r\n- EXTENDED DAY & SHORT NIGHTS\r\n- JUNK LOOT REMOVED FROM LOOT POOL\r\n- EXTENDED WORKBENCH RANGE IN BASE\r\n- RECYCLERS AT ADDITIONAL MONUMENTS / FISHING VILLAGES\r\n- IN SERVER SHOP TYPE /SHOP (USES BC_CASH) EARNED THROUGH PLAYTIME\r\n\r\nEVENTS:\r\n- EXPLOSIVE'S BOX EVENT\r\n- GUESS THE NUMBER EVENT\r\n\r\nDISCORD & STORE: BEARCLAWSERVERS.STORE\r\n\r\nTHANK YOU FOR CHOOSING BEAR CLAW SERVERS!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780158167,
    "last_online": 1780551034,
    "icon": null,
    "name": "BEAR CLAW SERVERS | 2X | SOLO | MONTHLY | KITS | NOOB FRIENDLY",
    "connect": "66.51.99.45:28010",
    "request": "66.51.99.45: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": 1779915501,
    "last_update": 1780551034,
    "banned": false,
    "wipe": 1778190738,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5564,
    "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/11607262");
$data = json_decode($json, true);
var_dump($data);