
Lightweight Fabric mod exposing locally MC player coords through HTTP API
A lightweight Fabric mod that exposes your Minecraft player coordinates via a local HTTP API.
PlayerCoordsAPI provides real-time access to your Minecraft player coordinates through a simple HTTP endpoint. This enables external applications to track your position without needing to read Minecraft's memory or capture the screen.
playercoordsapi-x.x.x+mcx.x.x.jar from the releases page.minecraft/mods folder| Endpoint | Method | Description |
|---|---|---|
/api/coords |
GET |
Returns the player's current coordinates and world infos |
{
"x": 123.45,
"y": 64.00,
"z": -789.12,
"yaw": 180.00,
"pitch": 12.50,
"world": "overworld",
"biome": "plains",
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"username": "PlayerName"
}
| Field | Type | Description |
|---|---|---|
x |
number |
East-West |
y |
number |
Height |
z |
number |
North-South |
yaw |
number |
Horizontal rotation (degrees) |
pitch |
number |
Vertical rotation (degrees) |
world |
string |
Minecraft world |
biome |
string |
Minecraft biome |
uuid |
string |
Player UUID |
username |
string |
Player username |
| Status | Message |
|---|---|
403 |
Access denied |
404 |
Player not in world |
For security reasons, the API server:
127.0.0.125565 by defaultAccess-Control-Allow-Origin: *) for easy integration with web applicationscurl http://localhost:25565/api/coords
import requests
response = requests.get("http://localhost:25565/api/coords")
data = response.json()
print(f"Player {data['username']} (UUID: {data['uuid']}) at X: {data['x']}, Y: {data['y']}, Z: {data['z']}")
fetch("http://localhost:25565/api/coords")
.then(response => response.json())
.then(data => console.log(`Player ${data.username} (UUID: ${data.uuid}) at X: ${data.x}, Y: ${data.y}, Z: ${data.z}`));