面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11511107
json
{
  "response": {
    "modded": true,
    "fps": 49,
    "fps_avg": 48,
    "entities_count": 97970,
    "world_seed": 1337,
    "world_size": 4250,
    "steam_id": "90286604034110481",
    "domain": null,
    "id": 11511107,
    "ip": "51.38.125.15",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Limburg an der Lahn",
    "description": "![Spectre - EU 3X Monthly Solo/Duo | 50% UPKEEP | NO P2W](https://iili.io/C3xTn4V.png)\nWelcome to Spectre - EU 3X Monthly Solo/Duo | 50% UPKEEP | NO P2W \r\n \r\n --- Info--- \r\n - Max Team Size : 2 \r\n - Absolutely no P2W! \r\n - 3x Rates (1.5x Sulfur) \r\n - 24h wipeblock on Tier 2 (T2) items \r\n - 48h wipeblock on Tier 3 (T3) & Military items \r\n - No raiding during the first 48 hours \r\n - 50 minute days & 10 minute nights \r\n --- QOL plugins--- \r\n - Custom Loot tables! \r\n - Automatic Auth for Samsites/Turrets & Code locks \r\n - Furnace Splitter \r\n - Quick smelt \r\n - Sort Button \r\n - Increased Stack Sizes \r\n - Increased Turret Limit \r\n - RaidAlarm- No more setting up Smart Alarms \r\n --- Rules--- \r\n - No VAC, Game Bans OR EAC bans within last 365 days. \r\n - No racism or homophobia. \r\n - Cheating is strictly forbidden. \r\n - Abusing exploits is strictly forbidden. \r\n - For a full list of rules join our discord: PbDshfBYhN",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780571070,
    "last_online": 1780601429,
    "icon": null,
    "name": "Spectre - EU 3X Monthly Solo/Duo | 50% UPKEEP | NO P2W",
    "connect": "51.38.125.15:28015",
    "request": "51.38.125.15:28017",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 6,
    "maxplayers": 40,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 65,
    "add_date": 1779353838,
    "last_update": 1780601429,
    "banned": false,
    "wipe": 1780595970,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1057,
    "language": "de",
    "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/11511107");
$data = json_decode($json, true);
var_dump($data);