Skip to content

PlayerCoordsAPI

Lightweight Fabric mod exposing locally MC player coords through HTTP API

FabricQuilt
Loaders
FabricQuilt
Downloads on Modrinth
1.5K
Followers on Modrinth
3
versions
12
Updated
September 29, 2026Sep 29
Published
in 2025
Mod Menu · swipe

At a glance

Runs on Fabric and Quilt
For Minecraft 1.21.11, 26.1.2–26.3 …
Client only — no need to install it on the server
Latest version — 0.2.1+mc26.3 from September 29, 2026
Requires Cloth Config API and Fabric API
License MIT — free
Where it's needed
In gamerequiredOn servernot needed

Install in the game only; not needed on the server

Game versions1.21.8, 1.21.11, 26.1.2–26.3 …

PlayerCoordsAPI icon  PlayerCoordsAPI

A lightweight Fabric mod that exposes your Minecraft player coordinates via a local HTTP API.

Modrinth Modrinth

📋 Overview

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.

✨ Features

  • Lightweight HTTP server running only on localhost providing your coordinates
  • Client-side only - no server-side components needed
  • Works in singleplayer and multiplayer
  • Mod menu integration allowing you to enable/disable the API, change its port, and configure requests with or without an Origin header

🚀 Installation

  1. Install Fabric Loader for a supported Minecraft version
  2. Download the latest playercoordsapi-x.x.x+mcx.x.x.jar from the releases page
  3. Place the jar in your .minecraft/mods folder
  4. Launch Minecraft with the Fabric profile

⚙️ Configuration

The API is read-only and only accepts loopback connections such as 127.0.0.1 and ::1. From Mod Menu, you can configure:

  • Whether the API is enabled
  • Which port it listens on (default: 25565)
  • How requests without a CORS Origin header are handled
  • How requests with a CORS Origin header are handled

Requests with an Origin can be handled in three different modes:

  • Allow all
  • Local origins
  • Whitelist

In Whitelist mode, you can configure each allowed origin with a scheme, host/IP, and optional port.

🔌 API Usage

EndpointMethodDescription
/api/coordsGET, OPTIONSReturns the player's current coordinates and world infos

Response Fields

FieldTypeDescription
xnumberEast-West
ynumberHeight
znumberNorth-South
yawnumberHorizontal rotation (degrees)
pitchnumberVertical rotation (degrees)
worldstringMinecraft world registry ID
biomestringMinecraft biome registry ID
uuidstringPlayer UUID
usernamestringPlayer username

Error Responses

StatusMessage
403Access denied / Origin not allowed
404Player not in world
405Method not allowed

Response Format Example

{
  "x": 123.45,
  "y": 64.00,
  "z": -789.12,
  "yaw": 180.00,
  "pitch": 12.50,
  "world": "minecraft:overworld",
  "biome": "minecraft:plains",
  "uuid": "550e8400-e29b-41d4-a716-446655440000",
  "username": "PlayerName"
}

🛠️ Examples

Replace 25565 with your configured port if you changed it in the Mod Menu.

cURL

curl http://localhost:25565/api/coords

Python

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']}")

JavaScript

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}`));

Crafted by Sukikui

FAQ

How to install PlayerCoordsAPI?

Install Fabric for your Minecraft version, download PlayerCoordsAPI for the same version and loader, put the file into the mods folder and launch the game with the loader profile.

Which Minecraft versions does PlayerCoordsAPI support?

PlayerCoordsAPI has builds for Minecraft 1.21.3–1.21.4, 1.21.8, 1.21.11, 26.1.2–26.3.

Is PlayerCoordsAPI needed on the server?

Client only — no need to install it on the server

License and source
MIT Licensefree to use and share with credit to the author
Original — Modrinth↗Files unchanged, verified with SHA-512Is this your mod? For rights holders

The site uses cookies: the necessary ones for sign-in and the theme, plus the Yandex Metrica and LiveInternet visit counters — they show us how the site is used. We have no advertising cookies. More