面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11677584
json
{
  "response": {
    "fps": 210,
    "fps_avg": 198,
    "entities_count": 80872,
    "world_seed": 50000,
    "world_size": 4000,
    "steam_id": "90286581248412672",
    "domain": null,
    "id": 11677584,
    "ip": "157.85.92.227",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Dallas",
    "description": "![Scooby's Wasteland - Solo Duo Trio - Custom Map - New Server](https://raw.githubusercontent.com/psychoScooby96/HeaderLogo/main/ScoobysWastelandLogo.png)\nWelcome to Scooby's Wasteland\r\nRule 1 — Free Speech Trash talk is allowed. You will not be banned for talking shit  but keep it within the game and don’t cross into real-life threats\r\nRule 2 — No Harassment No targeting or hunting a single player or team repeatedly. Play the game don’t grief one group nonstop., Rule 3 — No Crying Don’t complain excessively in chat about PvP\r\nRule 4 -- No walling off monuments. If you build near one  it must have open access (no code locks blocking entry).\r\nRule 5 — No Raiding Admin Shop Raiding or attacking the admin shop = permanent ban.\r\nRule 6 — Have Fun Don’t take it too seriously — it’s Rust. Chaos is part of the experience.\r\nEvery 4 weeks — Monday wipe cycle.\r\nNorth american server",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780216216,
    "last_online": 1780557633,
    "icon": null,
    "name": "Scooby's Wasteland - Solo Duo Trio - Custom Map - New Server",
    "connect": "157.85.92.227:28015",
    "request": "157.85.92.227:28016",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 40,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780216216,
    "last_update": 1780557633,
    "banned": false,
    "wipe": 1779234274,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5958,
    "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/11677584");
$data = json_decode($json, true);
var_dump($data);