面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/445936
json
{
  "response": {
    "fps": 30,
    "fps_avg": 30,
    "entities_count": 101981,
    "world_seed": 1984513,
    "world_size": 3900,
    "steam_id": "90286588237138958",
    "domain": null,
    "id": 445936,
    "ip": "208.52.153.221",
    "port": 29982,
    "query": 29915,
    "color": 0,
    "city": "Dallas",
    "description": "Welcome!!\r\n\r\n Map wipe every Thursday 10am PST/ 1pm EST\r\n 2-Week BP cycles, next BP wipes: June 4, June 18 \r\n\r\n restarts 2am PST/ 5am EST\r\n \r\n Recent changes:\r\n Tech Tree disabled the first week of every month. Tier2 20% tax, Tier3 40% tax\r\n Twig is breakable!! Don't leave your base twig!! \r\n \r\n Growing pop, join the fun!\r\n Map size ~3800. \r\n No PVP ever\r\n Vanilla loot tables. some larger stack sizes\r\n Zombies, NPCEvents, Bradleys and more NPC added at monuments, \r\n Cargo runs every hour (only two crates spawn)\r\n Raidable Bases \r\n /commands\r\n /rules\r\n \r\n Mods for furnace, quests, backpack, placeable locks on vehicles\r\n \r\n Server based off Tx\r\n No VIP system \r\n Join our discord@WEBPAGE",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780607656,
    "last_online": 1780596630,
    "icon": null,
    "name": "Heterika PvE 5/28",
    "connect": "208.52.153.221:29982",
    "request": "208.52.153.221:29915",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 60,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1630779738,
    "last_update": 1780607656,
    "banned": false,
    "wipe": 1779988215,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 9704,
    "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/445936");
$data = json_decode($json, true);
var_dump($data);