# Lyrics — 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 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. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-lyrics-com-api-d63d91a6/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## 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.paywithlocus.com/api/wrapped/parse-lyrics-com-api-d63d91a6/browse_artists_by_letter \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-lyrics-com-api-d63d91a6/browse_genre \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-lyrics-com-api-d63d91a6/get_album \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-lyrics-com-api-d63d91a6/get_artist \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-lyrics-com-api-d63d91a6/get_new_lyrics \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-lyrics-com-api-d63d91a6/get_random_lyric \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-lyrics-com-api-d63d91a6/get_song_lyrics \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-lyrics-com-api-d63d91a6/search_artists \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-lyrics-com-api-d63d91a6/search_lyrics \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>","search_type":"<string>"}'
```
