面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11305679
json
{
  "response": {
    "fps": 60,
    "fps_avg": 60,
    "entities_count": 81696,
    "world_seed": 1337,
    "world_size": 3850,
    "steam_id": "90286042713658394",
    "domain": null,
    "id": 11305679,
    "ip": "91.229.114.68",
    "port": 28031,
    "query": 28033,
    "color": 0,
    "city": "Chicago",
    "description": "![Cobalt Corporation | PvX Hybrid Modded](https://rust-server-images.physgun.com/3954eb406b7881312b5e911d254713b272201cc97d42fc181f3ce2a2f2aa8725.png)\nWelcome to Cobalt Corporation — a PvX Hybrid server with a near-vanilla feel. Farm, build, and explore across a protected PvE world, then step into the monuments where PvP goes live and the best loot is up for grabs.\r\n• PvE everywhere — your base and farm stay safe \r\n• PvP enabled at all major monuments\r\n• Near-vanilla gameplay with a light gather boost\r\n• Monthly Wipes — first Thursday force wipe\r\n• Active, friendly staff team• In-game events, shop & quests\r\n• VIP tiers: Scrap Supporter, Metal Member, Sulfur Elite Chill when you want it. Fight when you choose it.Join the community: https://discord.gg/2nTJqPZmCZ",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780470419,
    "last_online": 1780552831,
    "icon": null,
    "name": "Cobalt Corporation | PvX Hybrid Modded",
    "connect": "91.229.114.68:28031",
    "request": "91.229.114.68:28033",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1774592896,
    "last_update": 1780552831,
    "banned": false,
    "wipe": 1779296225,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4453,
    "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/11305679");
$data = json_decode($json, true);
var_dump($data);