面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/7468100
json
{
  "response": {
    "fps": 115,
    "fps_avg": 115,
    "entities_count": 117225,
    "world_seed": 1720993786,
    "world_size": 4500,
    "steam_id": "90286581444448281",
    "domain": null,
    "id": 7468100,
    "ip": "85.114.134.155",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Düsseldorf",
    "description": "![RO|EU | Rust EvoPixel | 2x Survival | Long-Term | Non-Toxic](https://rust.evopixel.ro/assets/img/banner.png)\nRust EvoPixel - Evolution of Gaming\r\n\r\nDescription:\r\nA long-term Rust server focused on building, progression, and stability.\r\nNo constant wipes. No rush gameplay.\r\nOffline raid mitigation for fair play.\r\nDynamic Karma System that rewards positive behavior and discourages griefing.\r\nA place where your base and progress actually matter.\r\nBuilt for players who want to play and stay.\r\n\r\nAbout Server:\r\nNo Wipe (Only Map wipe on Rust updates), 4.5k Map size, x2 Gather, x2 Barrel, Homes, Kits, Cases, Building Grade Upgrade, Vote System, Level System, Economy, Karma, Offline Raid Mitigation\r\n\r\nSites:\r\nWebsite: rust.evopixel.ro\r\nStore: store.rust.evopixel.ro\r\nVote: vote.rust.evopixel.ro\r\nDiscord: discord.evopixel.ro",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780470420,
    "last_online": 1780579243,
    "icon": null,
    "name": "RO|EU | Rust EvoPixel | 2x Survival | Long-Term | Non-Toxic",
    "connect": "85.114.134.155:28015",
    "request": "85.114.134.155:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 1,
    "maxplayers": 150,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1739234792,
    "last_update": 1780579243,
    "banned": false,
    "wipe": 1778177621,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3033,
    "language": "de",
    "parked": false,
    "app": {
      "id": 252490,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/7468100");
$data = json_decode($json, true);
var_dump($data);