> For the complete documentation index, see [llms.txt](https://realmsplus.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://realmsplus.gitbook.io/docs/developers/api.md). Agents can also search and read this documentation through its [MCP server](https://realmsplus.gitbook.io/docs/~gitbook/mcp).

# API

Explanation on Developer Resource: API

Our API allows developers (who have been granted access) to interact with our public database of realm hackers and harmful discord users in their applications!\
\
**How do I get access?**\
You may open a ticket in our [Discord Server](https://realmsplus.gitbook.io/docs/help/support-server.md) and request an API key, or contact us at **<support@realmsplus.com>**. We control access to this resource to avoid abuse of our services and to be able to provide them for free!

## Prerequisites&#x20;

* Node.js 22.0.0 or higher
* A valid Realms+ API key

## Get Started

```bash
npm install realmsplus-api
```

Usage:

```js
import { RealmsPlusAPI } from "realmsplus-api";

const client = new RealmsPlusAPI("your-api-key");

(async () => {
    // Check service health
    const health = await client.getHealth();
    console.log(health);

    // Query the hacker database
    const result = await client.getHackerDB("all");
    console.log(result);
})();
```

For more code examples check out the [GitHub Repository!](https://github.com/All-Realms-Are-Safe/realmsplus-api)
