面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/6233855
json
{
  "response": {
    "fps": 60,
    "fps_avg": 59,
    "entities_count": 116609,
    "world_seed": 1337,
    "world_size": 4500,
    "steam_id": "90286575504453634",
    "domain": null,
    "id": 6233855,
    "ip": "156.236.84.13",
    "port": 28100,
    "query": 28101,
    "color": 0,
    "city": "Dallas",
    "description": "![Rust Misfits X5 Gather Large Stacking Workshop Skins PVP](https://i.imgur.com/bFBx1jZ.jpeg)\nWelcome to Rust Misfits Offline Raid Protection Workshop Skins  Combined Outpost Bandit Camp \r\n I'M doing some testing on this server for my main server. So Plugins could change from time to time Player Commands /rep /bounty <player> <amount>  /orp\r\n No Racism No Politics \r\n Only one Vac or game ban allowed. if the Vac or game ban is under a year you will be banned \r\n For more info goto www.therustmisfits.com Have Fun!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1778264586,
    "last_online": 1780581637,
    "icon": null,
    "name": "Rust Misfits X5 Gather Large Stacking Workshop Skins PVP",
    "connect": "156.236.84.13:28100",
    "request": "156.236.84.13:28101",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1728486250,
    "last_update": 1780581637,
    "banned": false,
    "wipe": 1778264883,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2902,
    "language": "en",
    "parked": false,
    "app": {
      "id": 252490,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/6233855");
$data = json_decode($json, true);
var_dump($data);