面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/9175538
json
{
  "response": {
    "fps": 169,
    "fps_avg": 169,
    "entities_count": 117389,
    "world_seed": 1337,
    "world_size": 4250,
    "steam_id": "90286550818295834",
    "domain": null,
    "id": 9175538,
    "ip": "89.213.214.39",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Ashburn",
    "description": "![RustPunch.Net PVE |10X|PVE|Kits|Skins|NOBP|Skilltree|](https://www.dropbox.com/scl/fi/76ebjejbu5h9nqyc0lyk7/ServerBanner.png?rlkey=ignrrzkronctyeqlv8de0xq6p&dl=1)\nRustPunch.Net PVE |10X|PVE|Kits|Skins|NOBP|Skilltree| \r\nWipe: Thursdays @ 14:00 EST \r\n\r\nFeatures: \r\n> 10X Scrap & Loot\r\n> 10X Faster Recyclers, Crafting, & Smelting\r\n> 10X Gather Rates for Everything\r\n> Starter Kit: Use /kit to claim!\r\n> Premium Loot Tables\r\n> Free Skinbox & VIP1 when you /vote\r\n\r\nDont forget to add our server to your favorites!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780470420,
    "last_online": 1780566032,
    "icon": null,
    "name": "RustPunch.Net PVE |10X|PVE|Kits|Skins|NOBP|Skilltree|",
    "connect": "89.213.214.39:28015",
    "request": "89.213.214.39:28016",
    "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": 1747243157,
    "last_update": 1780566032,
    "banned": false,
    "wipe": 1778177684,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3129,
    "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/9175538");
$data = json_decode($json, true);
var_dump($data);