# Crafty — 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.

> Look up the complete username history for any Minecraft player to see all their previous names and when they changed them. Track how a player's identity has evolved over time on the Minecraft platform.

**Category:** Entertainment | **Website:** [crafty.gg/](https://crafty.gg/) | **Docs:** [parse.bot/marketplace/3a09a823-7801-4c75-a7f6-d67eedbe527c/crafty-gg-api](https://parse.bot/marketplace/3a09a823-7801-4c75-a7f6-d67eedbe527c/crafty-gg-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-crafty-gg-api-3a09a823/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_player_name_history

Retrieves the full username history of a Minecraft player. Given a current or previous username, returns the player's UUID and an ordered list of all usernames they have held, with timestamps of each name change. The first entry with a null changed_at is the player's original username.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `username` | string | Yes | Minecraft Java Edition username (1-16 alphanumeric characters or underscores). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-crafty-gg-api-3a09a823/get_player_name_history \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"username":"<string>"}'
```
