面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11511429
json
{
  "response": {
    "fps": 78,
    "fps_avg": 75,
    "entities_count": 38317,
    "world_seed": 788777969,
    "world_size": 2750,
    "steam_id": "90286091483499532",
    "domain": null,
    "id": 11511429,
    "ip": "153.75.247.119",
    "port": 25616,
    "query": 25617,
    "color": 0,
    "city": "Atlanta",
    "description": "![Rustara | 2x Trio Vanilla Small](https://i.imgur.com/YVBw4G1.jpeg)\nWelcome To Rustara! \r\n \r\nWipes Every Friday! \r\nFeatures: \r\n-2X Trees \r\n-2x Stone/Metal \r\n-1.4x Sulfur \r\n-1.5x Quarry \r\n-2x Plants \r\n-2.5x Pickups \r\n-Custom Loot Tables \r\nRules: \r\n-No teams more than three \r\n-No raiding with other people \r\n-No roaming with other people \r\n-No trying to find loophole \r\nDiscord: \r\ndiscord.gg/QQVWSm5P9p",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779489811,
    "last_online": 1780607435,
    "icon": null,
    "name": "Rustara | 2x Trio Vanilla Small",
    "connect": "153.75.247.119:25616",
    "request": "153.75.247.119:25617",
    "map": "Procedural 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": 1779353847,
    "last_update": 1780607435,
    "banned": false,
    "wipe": 1779490084,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4947,
    "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/11511429");
$data = json_decode($json, true);
var_dump($data);