面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11759455
json
{
  "response": {
    "fps": 86,
    "fps_avg": 86,
    "entities_count": 70193,
    "world_seed": 139496792,
    "world_size": 3500,
    "steam_id": "90286745908320272",
    "domain": null,
    "id": 11759455,
    "ip": "5.42.223.44",
    "port": 28015,
    "query": 28017,
    "project_id": null,
    "color": 0,
    "city": "Tehran",
    "description": "NeoIran Rust Server\r\n\r\nWipe Schedule:\r\n- Map Wipe: Every Week\r\n- BP Wipe: Monthly\r\n\r\nGamemode:\r\n- Solo / Duo / Trio / Quad\r\n\r\nServer Features:\r\n- Vanilla-Focused Experience\r\n- 1.5x Sulfur\r\n- No Kits\r\n- No Pay-to-Win (P2W)\r\n- Minimal Modifications\r\n\r\nJoin Discord for updates!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780931715,
    "last_online": 1780964430,
    "icon": null,
    "name": "[IR] NeoIran | Solo/Duo/Trio/Quad | 2x",
    "connect": "5.42.223.44:28015",
    "request": "5.42.223.44:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 60,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "IR",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780931715,
    "last_update": 1780964430,
    "banned": false,
    "wipe": 1780769886,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 6065,
    "language": "fa",
    "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/11759455");
$data = json_decode($json, true);
var_dump($data);