# X Minus — 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 millions of karaoke and backing tracks from X-Minus.Pro to find the perfect songs for singing, complete with lyrics and track details. Discover top-charted karaoke tracks and access everything you need to perform your favorite songs.

**Category:** Music | **Website:** [x-minus.pro/](https://x-minus.pro/) | **Docs:** [parse.bot/marketplace/8415ad85-9ea7-4704-a384-3b2ca722a23f/x-minus-pro-api](https://parse.bot/marketplace/8415ad85-9ea7-4704-a384-3b2ca722a23f/x-minus-pro-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-x-minus-pro-api-8415ad85/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_top_tracks

Retrieve the TOP 50 most popular karaoke tracks on x-minus.pro, ranked by listen count. Returns a fixed list of 50 tracks with no input parameters. Each track carries the same summary fields as search_tracks results (id, title, artist, duration, url, slug, info).

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-x-minus-pro-api-8415ad85/get_top_tracks \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_track

Fetch full detail for a single karaoke track including lyrics, duration, file info, rating, version info, and a list of related tracks by the same artist. Requires both the numeric track ID and the URL slug (both available from search_tracks or get_top_tracks results). Returns stale_input if the track does not exist.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | URL slug for the track, from the slug field in search_tracks or get_top_tracks results (e.g. 'killer-queen'). |
| `track_id` | string | Yes | Numeric track ID from search_tracks or get_top_tracks results (e.g. '23315'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-x-minus-pro-api-8415ad85/get_track \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug":"<string>","track_id":"<string>"}'
```

### search_tracks

Full-text search over karaoke backing tracks by song name or artist name. Returns matching tracks with metadata (duration, bitrate, type) and matching artist names. Results are a single page of up to ~70 tracks ordered by relevance. Each returned track summary carries an id and slug suitable for fetching full details via get_track.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search query - can be a song name, artist name, or keywords. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-x-minus-pro-api-8415ad85/search_tracks \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```
