# Minecraftservers — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search and discover Minecraft servers with real-time player counts, server details, and statistics directly from minecraftservers.org. Find the perfect server by filtering results and viewing comprehensive information like gameplay modes, player capacity, and server ratings.

**Category:** Entertainment | **Website:** [minecraftservers.org/](https://minecraftservers.org/) | **Docs:** [parse.bot/marketplace/164e4bbe-b5fb-461e-81b4-1ea8dc741d81/minecraftservers-org-api](https://parse.bot/marketplace/164e4bbe-b5fb-461e-81b4-1ea8dc741d81/minecraftservers-org-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-minecraftservers-org-api-164e4bbe/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_server_details

Get detailed information for a specific Minecraft server including real-time stats, vote counts, uptime, and historical data (player history, vote history, daily stats). The server_id is obtained from search_servers or list_servers results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `server_id` | string | Yes | Numeric server ID from search_servers or list_servers results (e.g. '400198'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-minecraftservers-org-api-164e4bbe/get_server_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"server_id":"<string>"}'
```

### list_servers

List top Minecraft servers ranked by popularity with pagination. Returns up to 20 servers per page along with pagination links. Page 1 returns the highest-ranked servers.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-minecraftservers-org-api-164e4bbe/list_servers \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>"}'
```

### search_servers

Full-text search for Minecraft servers by name or keyword. Returns matching servers with basic info including IP, online status, and current player counts. Results are not paginated; a single request returns all matches.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search keyword to find servers (e.g. 'survival', 'hypixel', 'skyblock'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-minecraftservers-org-api-164e4bbe/search_servers \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```
