面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/10979117
json
{
  "response": {
    "fps": 60,
    "fps_avg": 60,
    "entities_count": 13161,
    "world_seed": 0,
    "world_size": 3000,
    "steam_id": "90286588316280861",
    "domain": null,
    "id": 10979117,
    "ip": "40.160.20.99",
    "port": 29015,
    "query": 29016,
    "color": 0,
    "city": "Reston",
    "description": "![RustGames.gg | Rust Raiders - NA EAST 1](https://assets.rustgames.gg/BRANDING/Server_Banner.png)\nWelcome to the RustGames.gg minigame network!\r\n\r\nRules:\r\n• No cheating, scripting, exploiting, or bug abuse.\r\n• No harassment, hate speech, threats, or excessive toxicity.\r\n• No spam, advertising, or impersonation.\r\n• Respect staff decisions and other players.\r\n• Do not intentionally disrupt games, lobbies, queues, or events.\r\n\r\nThis server description only includes the basic rules.\r\nThe full rules, updates, support, appeals, and announcements are available in our Discord.\r\n\r\nJoin the Discord for the complete rule list:\r\nrustgames.gg/discord",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1775157139,
    "last_online": 1780579243,
    "icon": null,
    "name": "RustGames.gg | Rust Raiders - NA EAST 1",
    "connect": "40.160.20.99:29015",
    "request": "40.160.20.99:29016",
    "map": "RustGames.gg",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1769901054,
    "last_update": 1780579243,
    "banned": false,
    "wipe": 1778187258,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4108,
    "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/10979117");
$data = json_decode($json, true);
var_dump($data);