面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/10239165
json
{
  "response": {
    "fps": 250,
    "fps_avg": 250,
    "entities_count": 15055,
    "world_seed": 1855552109,
    "world_size": 2000,
    "steam_id": "90285922557661210",
    "domain": null,
    "id": 10239165,
    "ip": "148.251.131.242",
    "port": 28018,
    "query": 28019,
    "color": 0,
    "city": "Falkenstein",
    "description": "![NIGHTRUST | 2X | SOLO/DUO](https://i.imgur.com/VxJOuD7.png)\nWelcome to NightRust Solo/Duo server.\r\n\r\nWe offer a top-quality gaming experience,\r\nensuring lag-free servers, fair gameplay\r\nand a variety of plugins and features designed\r\nto enhance your Rust adventure.\r\n\r\n• Wipes:\r\nMap Wipe every week,\r\nFull Wipe every 2 weeks.\r\nAll wipes happen on Saturdays 13AM (UTC).\r\n\r\nGive us a chance and tryout our server.\r\n\r\n• Support us and find more information at:\r\nWebsite: https://nightrust.com\r\nDiscord: https://discord.gg/fH8KKCW6dX\r\nTwitter/X: https://x.com/HostNightRust",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779129774,
    "last_online": 1779201022,
    "icon": null,
    "name": "NIGHTRUST | 2X | SOLO/DUO",
    "connect": "148.251.131.242:28018",
    "request": "148.251.131.242:28019",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2624",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1756887986,
    "last_update": 1779201022,
    "banned": false,
    "wipe": 1778178099,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3455,
    "language": "de",
    "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/10239165");
$data = json_decode($json, true);
var_dump($data);