面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11644961
json
{
  "response": {
    "fps": 119,
    "fps_avg": 118,
    "entities_count": 62404,
    "world_seed": 1337,
    "world_size": 5500,
    "steam_id": "90286569971656709",
    "domain": null,
    "id": 11644961,
    "ip": "185.172.175.236",
    "port": 28145,
    "query": 28146,
    "color": 0,
    "city": "City of London",
    "description": "![Nexus Rust 2.0 | Creative Build | All Features Unlocked](https://i.ibb.co/CK1LWwGF/CREATIVE.png)\nNexus Rust is officially BACK!\r\nDiscord: discord.gg/NexusRustUK\r\n\r\n| MAIN SERVER FEATURES |\r\n\r\n> Custom Creative Build Plugin\r\n> All Features unlocked by default\r\n> Build as a Team or Solo\r\n> Auto Base Upgrader with the click of a button\r\n>Professional Staff Team\r\n> 99.9% Lag Free Enironment",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780557867,
    "last_online": 1780552231,
    "icon": null,
    "name": "Nexus Rust 2.0 | Creative Build | All Features Unlocked",
    "connect": "185.172.175.236:28145",
    "request": "185.172.175.236:28146",
    "map": "WWW.NEXUSRUST.CO.UK",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1780177440,
    "last_update": 1780557867,
    "banned": false,
    "wipe": 1779800461,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 12537,
    "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/11644961");
$data = json_decode($json, true);
var_dump($data);