面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/10979110
json
{
  "response": {
    "fps": 193,
    "fps_avg": 189,
    "entities_count": 62098,
    "world_seed": 106702949,
    "world_size": 2850,
    "steam_id": "90286670255769601",
    "domain": null,
    "id": 10979110,
    "ip": "40.160.20.231",
    "port": 28015,
    "query": 28016,
    "project_id": null,
    "color": 0,
    "city": "Reston",
    "description": "![BotWorld PVE AI Player70 Live Bots 5X](https://image.myrustserver.com/logo/upperking_6572d4aee0bfe.jpg)\nAIBOT PLAYERS\r\nWelcome to BOTWORLD Bot PVP server We run multiple balanced plugins to improve quality of the game. AI bots that play as realistic players building, gathering, raiding and teaming.\r\n\r\n>3x Gather Rates\r\n>2x Crafting Speed\r\n>Back pack 18 slot safe on death\r\n>Fast Smelt\r\n>BetterTC\r\n>Chest and furnace stacks\r\nhttps://discord.gg/5NzyCDXe5z",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780746265,
    "last_online": 1780775432,
    "icon": null,
    "name": "BotWorld PVE AI Player70 Live Bots 5X",
    "connect": "40.160.20.231:28015",
    "request": "40.160.20.231:28016",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 6,
    "maxplayers": 200,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1769901053,
    "last_update": 1780775432,
    "banned": false,
    "wipe": 1780596771,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2888,
    "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/10979110");
$data = json_decode($json, true);
var_dump($data);