# Bedrock Server Status

## Overview

There is only one method for retrieving the status of a Bedrock Edition Minecraft server, unlike the many methods used by Java Edition. The documentation below will show you how to use the method, and its return value.

## Methods

### `statusBedrock()`

This will retrieve the status of any version Bedrock Edition or Pocket Edition Minecraft server.

```javascript
const util = require('minecraft-server-util');

const options = {
    enableSRV: true // SRV record lookup
};

// The port and options arguments are optional, the
// port will default to 19132.
util.statusBedrock('localhost', 19132, options)
    .then((result) => console.log(result))
    .catch((error) => console.error(error));
```

```json
{
        "edition": "MCPE",
        "motd": {
                "raw": "§fDedicated Server\nBedrock level",
                "clean": "Dedicated Server\nBedrock level",
                "html": "<span><span style=\"color: #FFFFFF;\">Dedicated Server\nBedrock level</span></span>"
        },
        "version": {
                "name": "1.17.41",
                "protocol": 471
        },
        "players": {
                "online": 0,
                "max": 10
        },
        "serverGUID": "-7097232759481786137",
        "serverID": "11349511314227765479",
        "gameMode": "Survival",
        "gameModeID": 1,
        "portIPv4": 19132,
        "portIPv6": 19133,
        "srvRecord": { "host": "...", "port": 25565 }
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://passthemayo.gitbook.io/minecraft-server-util/api/bedrock-server-status.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
