面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/9543736
json
{
  "response": {
    "fps": 85,
    "fps_avg": 84,
    "entities_count": 60449,
    "world_seed": 1337,
    "world_size": 4500,
    "steam_id": "90286604200206339",
    "domain": null,
    "id": 9543736,
    "ip": "89.28.237.41",
    "port": 28010,
    "query": 28011,
    "color": 0,
    "city": "Dallas",
    "description": "![Rust Legion - US | PvE | 2x | Monthly](https://i.imgur.com/kZNHwS3.png)\nThis is a friendly, super chilled PvE server. Excellent for weekend players that can't be online every day.\r\n\r\nMonthly Wipe schedule,\r\nRookies & Experienced players welcome,\r\n\r\nFeatures:\r\nDaily Rewards\r\n2x Gather,\r\nBuild A Basement under your base.\r\nAirEvent,\r\nRaidable NPC Boats,\r\nRaidable NPC Bases,\r\nRaidable NPC Convoy's,\r\nSpawn Your Own Mini,\r\nLonger Days - Shorter Nights,\r\nRoaming NPC's to practice PVP & to Farm.\r\nOffline Raid Protection (Purchased Through TC)\r\nTeam Limit 5.\r\n\r\nAbove all Have Fun!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780470420,
    "last_online": 1780597836,
    "icon": null,
    "name": "Rust Legion - US | PvE | 2x | Monthly",
    "connect": "89.28.237.41:28010",
    "request": "89.28.237.41:28011",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1750544957,
    "last_update": 1780597836,
    "banned": false,
    "wipe": 1780596674,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2895,
    "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/9543736");
$data = json_decode($json, true);
var_dump($data);