> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.wynncraft.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.wynncraft.com/_mcp/server.

# List visible player locations

GET https://api.wynncraft.com/v3/map/locations/player

This endpoint is cached for 15 seconds in the USER cache source.   See [Caching](/welcome#caching).  This endpoint belongs to the MAP rate-limit bucket. See [Throttling and Rate Limits](/welcome#throttling-and-rate-limits).

Try it will not return usable data for this route. It depends on authentication and IP-aware context, so test it against the live API outside the docs.

Reference: https://docs.wynncraft.com/modules/map/list-player-locations

## Response

### 200

Visible player locations.

- `list of PlayerLocation`

## Errors

### 403 Forbidden Error

No eligible online player location could be resolved.

- `error` (string, required)
- `detail` (string, required)
- `code` (integer, required)

## Types

### PlayerLocation

- `uuid` (string, required)
- `name` (string, required)
- `nickname` (string, required, nullable)
- `character` (string, required)
- `server` (string, required, nullable)
- `x` (integer, required)
- `y` (integer, required)
- `z` (integer, required)
- `friends` (list of PlayerLocationMember, required)
- `party` (list of PlayerLocationMember, required)
- `guild` (list of PlayerLocationMember, required)

### PlayerLocationMember

- `uuid` (string, required)
- `name` (string, required)
- `nickname` (string, required, nullable)
- `character` (string, required)
- `server` (string, required, nullable)
- `x` (integer, required)
- `y` (integer, required)
- `z` (integer, required)

## Examples

**Response**

```json
[
  {
    "uuid": "98bc2236-ada5-4039-b560-8aaa4cc50384",
    "name": "Nepmia",
    "nickname": "Neplicopter",
    "character": "5b6ab8a0-8f7c-4f50-bd2c-bfabe22d74bc",
    "server": "WC1",
    "x": 100,
    "y": 64,
    "z": -100,
    "friends": [
      {
        "uuid": "98bc2236-ada5-4039-b560-8aaa4cc50384",
        "name": "Nepmia",
        "nickname": "Neplicopter",
        "character": "5b6ab8a0-8f7c-4f50-bd2c-bfabe22d74bc",
        "server": "WC1",
        "x": 100,
        "y": 64,
        "z": -100
      }
    ],
    "party": [
      {
        "uuid": "98bc2236-ada5-4039-b560-8aaa4cc50384",
        "name": "Nepmia",
        "nickname": "Neplicopter",
        "character": "5b6ab8a0-8f7c-4f50-bd2c-bfabe22d74bc",
        "server": "WC1",
        "x": 100,
        "y": 64,
        "z": -100
      }
    ],
    "guild": [
      {
        "uuid": "98bc2236-ada5-4039-b560-8aaa4cc50384",
        "name": "Nepmia",
        "nickname": "Neplicopter",
        "character": "5b6ab8a0-8f7c-4f50-bd2c-bfabe22d74bc",
        "server": "WC1",
        "x": 100,
        "y": 64,
        "z": -100
      }
    ]
  }
]
```

**SDK Code**

```python Visible player location list
import requests

url = "https://api.wynncraft.com/v3/map/locations/player"

response = requests.get(url)

print(response.json())
```

```javascript Visible player location list
const url = 'https://api.wynncraft.com/v3/map/locations/player';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Visible player location list
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.wynncraft.com/v3/map/locations/player"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Visible player location list
require 'uri'
require 'net/http'

url = URI("https://api.wynncraft.com/v3/map/locations/player")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
```

```java Visible player location list
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.wynncraft.com/v3/map/locations/player")
  .asString();
```

```php Visible player location list
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.wynncraft.com/v3/map/locations/player');

echo $response->getBody();
```

```csharp Visible player location list
using RestSharp;

var client = new RestClient("https://api.wynncraft.com/v3/map/locations/player");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift Visible player location list
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://api.wynncraft.com/v3/map/locations/player")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```