面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11698865
json
{
  "response": {
    "fps": 59,
    "fps_avg": 58,
    "entities_count": 103782,
    "world_seed": 682084151,
    "world_size": 4300,
    "steam_id": "90286605604866075",
    "domain": null,
    "id": 11698865,
    "ip": "102.135.245.21",
    "port": 29021,
    "query": 29022,
    "color": 0,
    "city": "Cape Town",
    "description": "![Rust CPT 10x PVE Domination | RaidBases | Kits](https://www.dropbox.com/scl/fi/sgq5tp1wybjzphp17htup/RUST-CPT-GAMING-flyer.jpg?rlkey=agp0k8rx6r6dk9oox7q6bwb6g&st=4204n9m4&dl=1)\n# Welcome to Domination - Enjoy your Stay\r\n# This is a non-toxic PVE (player vs environment)10x Server \r\n# The server map wipes bi-weekly, Force wipe monthly\r\n# Reminder: Don't be a DOO$, be LEKKA\r\n# Maximum team size is 8, no allies\r\n# The Owner is active and does not play, only trolls ;-)\r\n# Mods: Roam Bradley, Zombies, Bots, Raid Bases, Bosses, Skins.....\r\n# Have fun and enjoy the PVE journey and experience",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780597470,
    "last_online": 1780617629,
    "icon": null,
    "name": "Rust CPT 10x PVE Domination | RaidBases | Kits",
    "connect": "102.135.245.21:29021",
    "request": "102.135.245.21:29022",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 60,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "ZA",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780227278,
    "last_update": 1780617629,
    "banned": false,
    "wipe": 1780597823,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5710,
    "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/11698865");
$data = json_decode($json, true);
var_dump($data);