# Lyrics — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.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 and retrieve song lyrics, artist biographies, and album information across multiple genres and artists. Browse music content by artist, letter, or genre, and discover new or random songs to explore.

**Category:** Music | **Website:** [lyrics.com/](https://lyrics.com/) | **Docs:** [parse.bot/marketplace/d63d91a6-022f-4864-bbe1-b3816204b51c/lyrics-com-api](https://parse.bot/marketplace/d63d91a6-022f-4864-bbe1-b3816204b51c/lyrics-com-api)

Pay-per-use API proxy for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/lyrics/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## Endpoints

### Browse artists by letter

Browse artists alphabetically by letter. Returns a paginated list of artist names and profile URLs.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `letter` | string | No | Letter to browse (A-Z or #) |
| `page` | string | No | Page number for pagination |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/lyrics/browse-artists-by-letter \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"letter":"<string>","page":"<string>"}'
```

### Browse genre

Browse songs by genre. Returns a list of songs with title, artist, and album information. Note: some large genres like Rock may be slow to load.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `genre` | string | Yes | Genre name. Confirmed working values: Pop, Jazz, Hip Hop, Blues, Latin, Reggae, Electronic, Classical, Folk World & Country, Funk / Soul, Non-Music, Spiritual, Stage & Screen, Brass & Military, Children |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/lyrics/browse-genre \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"genre":"<string>"}'
```

### Get album

Retrieve album details and tracklist including track numbers, titles, URLs, and durations.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | Full URL of the album page (e.g., https://www.lyrics.com/album/3273098/25) |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/lyrics/get-album \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"url":"<string>"}'
```

### Get artist

Retrieve detailed artist information including biography, similar artists, and album discography. Use artist URLs obtained from search_artists results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | Full URL of the artist page obtained from search_artists (e.g., https://www.lyrics.com/artist/The-Beatles/3644) |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/lyrics/get-artist \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"url":"<string>"}'
```

### Get new lyrics

Retrieve recently added user-submitted lyrics. Returns a list of songs with title, URL, and artist name.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/lyrics/get-new-lyrics \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Get random lyric

Retrieve a random song lyric.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/lyrics/get-random-lyric \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Get song lyrics

Retrieve full song lyrics and metadata for a given song URL. URLs can be obtained from search_lyrics results or album tracklists. Returns stale_input if the lyrics page no longer exists.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | Full URL of the song lyrics page (e.g., https://www.lyrics.com/lyric-lf/964985/Adele/Hello) |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/lyrics/get-song-lyrics \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"url":"<string>"}'
```

### Search artists

Search for artists by name. Returns a list of matching artist names and their profile URLs.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Artist name to search for |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/lyrics/search-artists \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```

### Search lyrics

Search for songs by lyrics content or title. Returns best matches and regular results with song titles, URLs, and artist information.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search query (lyrics text or song title) |
| `search_type` | string | No | Search type: '0' for lyrics, '1' for song title, '2' for exact match |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/lyrics/search-lyrics \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>","search_type":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://beta.paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://beta.paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://beta.paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://beta.paywithlocus.com/agent/index.md): every Locus agent page.