面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11607068
json
{
  "response": {
    "fps": 60,
    "fps_avg": 60,
    "entities_count": 81255,
    "world_seed": 1808046862,
    "world_size": 3750,
    "steam_id": "90286592467780611",
    "domain": null,
    "id": 11607068,
    "ip": "91.229.114.205",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Chicago",
    "description": "Chill Spot | Don't take this serious \r\n\r\nServer Rules\r\nOnline Raids Only\r\nTeaming for PvE is Allowed\r\nPlayers may team up for PvE activities such as taking Oil Rig, monuments, or events.\r\nNo Teaming in PvP\r\nTeaming or forming alliances to fight other players is not allowed. \r\nAll PvP engagements must remain solo unless contested in PVE.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780505037,
    "last_online": 1780599034,
    "icon": null,
    "name": "oFn Hideout | Solo Only | TP",
    "connect": "91.229.114.205:28015",
    "request": "91.229.114.205:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 30,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779915493,
    "last_update": 1780599034,
    "banned": false,
    "wipe": 1778201234,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4765,
    "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/11607068");
$data = json_decode($json, true);
var_dump($data);