# Spicy Lyrics API
> Community syncs arrive inline from one endpoint, chosen by a documented
> source hierarchy. The `source` field on every response decides which
> attribution you must display.
# Getting started
> Create an application, copy the snippet, run it. Your first real response in about a minute.
You need an application to get a key. Creating one takes a few seconds and gives
you a **secret key** — the one you use from a server you control.
## 1. Create an application [#1-create-an-application]
Go to [the dashboard](/dashboard/applications) and create an application. You
will be shown a secret key exactly once. Store it somewhere your code can read
it, like an environment variable:
```bash
export SPICY_LYRICS_SECRET_KEY="sl_sk_..."
```
Never commit it, and never put it in code that runs in a browser.
## 2. Make a request [#2-make-a-request]
```bash
curl https://api.spicylyrics.org/v1/lyrics/TRACK_ID \
-H "Authorization: Bearer $SPICY_LYRICS_SECRET_KEY"
```
```python
import os, requests
response = requests.get(
"https://api.spicylyrics.org/v1/lyrics/TRACK_ID",
headers={"Authorization": f"Bearer {os.environ['SPICY_LYRICS_SECRET_KEY']}"},
)
lyrics = response.json()
```
```javascript
// Node, or anywhere else you control the environment.
const response = await fetch("https://api.spicylyrics.org/v1/lyrics/TRACK_ID", {
headers: {
Authorization: `Bearer ${process.env.SPICY_LYRICS_SECRET_KEY}`,
},
})
const lyrics = await response.json()
```
`TRACK_ID` can be a Spotify track id, an ISRC or an Apple Music track id. If you
only have a title, [search for it](/docs/finding-tracks).
## 3. Read the response [#3-read-the-response]
```jsonc
{
"Body": {
"Type": "Syllable",
"SongWriters": [
"Stefani Joanne Angelina Germanotta",
"Nādir Ḵayyāṭ"
],
"StartTime": 7.357,
"Content": [...],
"EndTime": 234.731,
"id": "1QV6tiMFM6fSOKOGLMHYYg",
"ids": {
"spotify": "1QV6tiMFM6fSOKOGLMHYYg",
"isrc": "USUM70824409",
"apple_music": "713369399",
"tidal": "77707019",
"youtube": "bESGLojNYSo"
},
"UploadAttribution": {
"Uploader": {
"id": "790942393255329803",
"username": "spikerko",
"avatar": "https://cdn.discordapp.com/avatars/790942393255329803/bb0b32161c04dc75bd06a39f13718a44.webp?size=256",
"hasProfileBanner": true,
"url": "https://spicylyrics.org/uid/790942393255329803"
},
"Maker": {
"id": "816650334255579137",
"username": "gc",
"avatar": "https://cdn.discordapp.com/avatars/816650334255579137/03ec15a143788b3ba3f2549982c2b0ab.webp?size=256",
"hasProfileBanner": false,
"url": "https://spicylyrics.org/uid/816650334255579137"
}
},
"source": "spicy_lyrics"
},
"Status": 200,
"Type": "object"
}
```
## Next [#next]
- [Finding tracks](/docs/finding-tracks): other ids, and search
- [Sync sources](/docs/sync-sources) — which source answers, and why
- [Attribution](/docs/attribution) — what to display, and when
- [Keys](/docs/keys) — if your code does not run on a server you control
# Finding tracks
> Ask for lyrics with a Spotify id, an ISRC or an Apple Music id. If you only have a title, search first.
## Ids you can ask with [#ids-you-can-ask-with]
`GET /v1/lyrics/{id}` takes any of these, and works out which one you sent:
| Kind | Example |
| -------------------- | ------------------------ |
| Spotify track id | `4PTG3Z6ehGkBFwjybzWkR8` |
| ISRC | `GBARL9300135` |
| Apple Music track id | `1438556832` |
`id` in the response is always the Spotify id. `ids` holds the track's id on each
service we can link it to:
```jsonc
"ids": {
"spotify": "4PTG3Z6ehGkBFwjybzWkR8",
"isrc": "GBARL9300135",
"apple_music": "1438556832",
"tidal": "491206012",
"youtube": "7FwDP17XPlk"
}
```
Only `spotify` is always there. A missing key means we do not know that id right
now, so it can appear on a later request.
Use the Spotify id when you have it. An ISRC or Apple Music id links to one
release of a recording, and a community sync belongs to one release, so those
ids can miss a community sync that the Spotify id would find.
An ISRC or Apple Music id we cannot link answers `404` with `track_not_found`. A
`503` means it could not be looked up right now: wait for `Retry-After` and ask
again.
## Search [#search]
```bash
curl "https://api.spicylyrics.org/v1/tracks/search?title=Never%20Gonna%20Give%20You%20Up&artist=Rick%20Astley&duration=213.573" \
-H "Authorization: Bearer $SPICY_LYRICS_SECRET_KEY"
```
Send `title` when you have the fields separately, with `artist`, `album` and
`duration` if you know them. Otherwise send free text as `q`.
```jsonc
{
"Body": {
"results": [
{
"id": "4cOdK2wGLETKBW3PvgPWqT",
"ids": {
"spotify": "4cOdK2wGLETKBW3PvgPWqT",
"isrc": "GBARL9300135",
"apple_music": "1438556832",
"tidal": "491206012",
"youtube": "7FwDP17XPlk"
},
"title": "Never Gonna Give You Up",
"artists": ["Rick Astley"],
"album": "Whenever You Need Somebody",
"duration": 213.573,
"explicit": false,
"artwork": "https://image-cdn-ak.spotifycdn.com/image/ab67616d0000b273baf89eb11ec7c657805d2da0",
"tier": "exact",
"variants": [
{
"id": "4PTG3Z6ehGkBFwjybzWkR8",
"album": "Whenever You Need Somebody",
"duration": 213.573
}
]
}
]
},
"Status": 200,
"Type": "object"
}
```
Pass a result's `id` to `GET /v1/lyrics/{id}`. `variants` lists other releases
of the same recording. All the parameters are in the
[reference](/docs/reference/search.tracks).
Search does not say whether a track has lyrics. Each search counts as one
request against your limit.
## Match tiers [#match-tiers]
Every result has a `tier`, best first:
| Tier | Means |
| -------------- | ---------------------------------------------------------------------- |
| `exact` | The title and artist match, and it is not a different version. |
| `likely` | The title matches, but something could not be confirmed. |
| `version` | The same song in another version: live, remix, acoustic, another cut. |
| `other_artist` | The same title by someone else, such as a cover. |
| `related` | Only part of the title or the artist matches. |
If your code picks a result on its own, only take the first one when its tier is
one you trust, usually `exact`. A different version of a song has different
timings. Send `duration` whenever you know it, since it is what tells versions
apart.
## In the playground [#in-the-playground]
The signed-out playground only serves a few demo tracks. Sign in and choose an
application to search or to ask with an ISRC or Apple Music id.
# Sync sources
> One endpoint returns the best available sync, chosen by a documented hierarchy. The source field tells you which one answered, and that decides your attribution.
Every lyrics response names the source that produced it, in the `source` field.
There is **one lyrics endpoint**. Community syncs are not a separate call, a separate
key, or a separate payload to reconcile — they arrive inline, chosen by the
hierarchy below.
You cannot request a specific source, and you cannot exclude one. The hierarchy
always decides and you branch on the result. That keeps the response shape
constant: one shape, three documented outcomes, instead of six.
## The hierarchy [#the-hierarchy]
Resolution order for a given track:
1. **Community sync**, if one exists for the track. These are made by people,
are usually the most precise, and are why this API exists in the shape it
does.
2. **Apple Music**, if it has a sync of the type requested and the track is
available there.
3. **Spotify**, otherwise.
Steps 2 and 3 are decided together by sync type and availability: a word-level
sync from one commercial source is preferred over a line-level sync from the
other, because the more precise sync is the more useful one.
## Three worked examples [#three-worked-examples]
### A track with a community sync [#a-track-with-a-community-sync]
```jsonc
{
"Body": {
"Type": "Syllable",
"SongWriters": [
"Stefani Joanne Angelina Germanotta",
"Nādir Ḵayyāṭ"
],
"StartTime": 7.357,
"Content": [...],
"EndTime": 234.731,
"id": "1QV6tiMFM6fSOKOGLMHYYg",
"ids": {
"spotify": "1QV6tiMFM6fSOKOGLMHYYg",
"isrc": "USUM70824409",
"apple_music": "713369399",
"tidal": "77707019",
"youtube": "bESGLojNYSo"
},
"UploadAttribution": {
"Uploader": {
"id": "790942393255329803",
"username": "spikerko",
"avatar": "https://cdn.discordapp.com/avatars/790942393255329803/bb0b32161c04dc75bd06a39f13718a44.webp?size=256",
"hasProfileBanner": true,
"url": "https://spicylyrics.org/uid/790942393255329803"
},
"Maker": {
"id": "816650334255579137",
"username": "gc",
"avatar": "https://cdn.discordapp.com/avatars/816650334255579137/03ec15a143788b3ba3f2549982c2b0ab.webp?size=256",
"hasProfileBanner": false,
"url": "https://spicylyrics.org/uid/816650334255579137"
}
},
"source": "spicy_lyrics"
},
"Status": 200,
"Type": "object"
}
```
The community sync wins outright. `uploader` and `maker` are present, and you
must display them — see [Attribution](/docs/attribution).
### A track with no community sync [#a-track-with-no-community-sync]
```jsonc
{
"Body": {
"Type": "Syllable",
"SongWriters": [
"Amala Zandile Dlamini",
"Andrew Wells",
"Anthony Rossomando",
"Rachel Keen"
],
"StartTime": 1.358,
"Content": [...],
"EndTime": 228.888,
"id": "7KNmIjcmGJIBrhP2s5Vioe",
"ids": {
"spotify": "7KNmIjcmGJIBrhP2s5Vioe",
"isrc": "USRC12403763",
"apple_music": "1794222374",
"tidal": "415532247",
"youtube": "s-imlsdMHbE"
},
"source": "apple_music"
},
"Status": 200,
"Type": "object"
}
```
No community sync exists, so a commercial source answers. **`uploader` and
`maker` are absent — not null, absent.** Rendering an empty "uploaded by" line
here is the bug this page exists to prevent.
## What this means for your code [#what-this-means-for-your-code]
Branch on `source`, never on the track. The same track can be answered by a
different source tomorrow — a community sync gets uploaded, a catalogue changes
— and that is a feature, not a breaking change. Code that reads `source` keeps
working. Code that hardcodes an assumption about a given track does not.
# Attribution
> Always display the provider. When source is Spicy Lyrics, also link the uploader and the maker. Those fields are absent for other sources; do not render empty attribution.
Using this API requires displaying attribution. What you display is
**conditional on the `source` field**, so this cannot be hardcoded.
## The rule [#the-rule]
> Always display the provider name. When `source` is `spicy_lyrics`, also link the
> uploader and the maker. Those fields are absent for other sources; do not
> render empty attribution.
That is the whole rule. The rest of this page is why, and what it looks like.
This is a binding condition, not a convention: section 6 of the
[Terms of Service](/terms) makes this page part of the terms you accept when
you create an account. Community syncs reach you under a licence from the
people who made them, and credit is what they asked for in return.
## Why it is conditional [#why-it-is-conditional]
Community syncs are made by people. The uploader and the maker are credited
because they did the work — that credit is the point, not a formality. Those
fields therefore exist **only** on community responses. Commercial sources have
a provider and nothing else to credit.
A consumer who hardcodes attribution rendering gets it wrong in one of two
directions, and both are bad:
- Render uploader and maker unconditionally, and every non-community response
shows an empty or broken credit line.
- Render only the provider, and the people who made the sync you are showing get
no credit at all.
## Response shape per source [#response-shape-per-source]
### `source: "spicy_lyrics"` [#source-spicy_lyrics]
```jsonc
{
"Body": {
"Type": "Syllable",
"SongWriters": [
"Stefani Joanne Angelina Germanotta",
"Nādir Ḵayyāṭ"
],
"StartTime": 7.357,
"Content": [...],
"EndTime": 234.731,
"id": "1QV6tiMFM6fSOKOGLMHYYg",
"ids": {
"spotify": "1QV6tiMFM6fSOKOGLMHYYg",
"isrc": "USUM70824409",
"apple_music": "713369399",
"tidal": "77707019",
"youtube": "bESGLojNYSo"
},
"UploadAttribution": {
"Uploader": {
"id": "790942393255329803",
"username": "spikerko",
"avatar": "https://cdn.discordapp.com/avatars/790942393255329803/bb0b32161c04dc75bd06a39f13718a44.webp?size=256",
"hasProfileBanner": true,
"url": "https://spicylyrics.org/uid/790942393255329803"
},
"Maker": {
"id": "816650334255579137",
"username": "gc",
"avatar": "https://cdn.discordapp.com/avatars/816650334255579137/03ec15a143788b3ba3f2549982c2b0ab.webp?size=256",
"hasProfileBanner": false,
"url": "https://spicylyrics.org/uid/816650334255579137"
}
},
"source": "spicy_lyrics"
},
"Status": 200,
"Type": "object"
}
```
Display: the provider, **and** the uploader, **and** the maker. Link them where
a `url` is given.
### `source: "apple_music"` [#source-apple_music]
```jsonc
{
"Body": {
"Type": "Syllable",
"SongWriters": [
"Amala Zandile Dlamini",
"Andrew Wells",
"Anthony Rossomando",
"Rachel Keen"
],
"StartTime": 1.358,
"Content": [...],
"EndTime": 228.888,
"id": "7KNmIjcmGJIBrhP2s5Vioe",
"ids": {
"spotify": "7KNmIjcmGJIBrhP2s5Vioe",
"isrc": "USRC12403763",
"apple_music": "1794222374",
"tidal": "415532247",
"youtube": "s-imlsdMHbE"
},
"source": "apple_music"
},
"Status": 200,
"Type": "object"
}
```
Display: the provider only.
### `source: "spotify"` [#source-spotify]
```jsonc
{
"Body": {
"Type": "Line",
"StartTime": 10.81,
"EndTime": 183.44,
"id": "2WKGGQ6UmyUZGZgRJyEROB",
"ids": {
"spotify": "2WKGGQ6UmyUZGZgRJyEROB",
"isrc": "SKA011000100",
"apple_music": "1442797526",
"tidal": "7090533"
},
"Content": [...],
"source": "spotify"
},
"Status": 200,
"Type": "object"
}
```
Display: the provider only.
## Where it has to appear [#where-it-has-to-appear]
With the lyrics. It does not have to stay on screen the whole time: it can be
the last thing in the lyrics scroll, so it appears when someone reaches the
end. It cannot be on another page, such as an about page, or behind a tooltip
or anything else a person has to open. It can be small and quiet. It cannot be
absent.
# Keys
> If your code runs on a server you control, use the secret key. If it ships to users, use a client key with an origin allowlist.
## Which one do you need? [#which-one-do-you-need]
**Does your code run on a server you control?**
- **Yes** → **secret key**. Read it from an environment variable.
- **No** → **client access**, and here is what it cannot do.
That is the decision. If you are building a backend, a script, a bot, or
anything where you control the machine, stop reading and use the secret key.
If your code runs on a server you control, use the secret key from an
environment variable. If it runs in a browser, browser extension, or any
client you ship to users, use a publishable key and configure an origin
allowlist. **Never put a secret key in client-side code.**
## The honest comparison [#the-honest-comparison]
If your code runs on a server, use the secret key. It is strictly better: no
per-viewer limit, and rotating it is instant and affects nobody but you.
A publishable key is baked into shipped code, so rotating it breaks every
installed copy until users update, which may take weeks. Its origin allowlist
deters key theft rather than preventing it.
None of that is discouragement if you genuinely have no backend. A widget on a
static site, or a browser extension, cannot keep a secret, and pretending
otherwise by shipping a secret key is much worse than using the key type
designed for the situation.
## Secret keys [#secret-keys]
```bash
export SPICY_LYRICS_SECRET_KEY="sl_sk_..."
```
```python
import os, requests
requests.get(
"https://api.spicylyrics.org/v1/lyrics/TRACK_ID",
headers={"Authorization": f"Bearer {os.environ['SPICY_LYRICS_SECRET_KEY']}"},
)
```
- A per-application limit of its own, with no per-viewer limit on top of it.
- Rotating is instant, and you can optionally keep the old key alive for 15 or
60 minutes if you are coordinating a deploy. If you are rotating because the
key leaked, do not use one. A grace window keeps the leaked key working for
exactly as long as it helps you.
- Shown once, at creation. Only a hash is stored, so it cannot be shown again.
## Client access [#client-access]
Enabled per application from the dashboard, as a deliberate step. The flow will
not issue a key until you supply at least one allowed origin, because a
publishable key with an empty allowlist refuses every request.
```javascript
// Client-side code. This key is public by design: it ships in your code and
// anyone can read it.
const response = await fetch("https://api.spicylyrics.org/v1/lyrics/TRACK_ID", {
headers: { Authorization: "Bearer sl_pk_..." },
})
```
What it gives up:
- **A per-viewer IP limit** on top of its per-application limit. The
application-wide allowance is larger than a secret key's, because everyone
running your code shares it, but no single viewer can use more than their
own window.
- **An origin allowlist to keep current**, and a key with an empty one refuses
every request.
- **Rotation is immediate and has no grace window**, because a grace window
measured in minutes does not help something that takes weeks to propagate
through installed copies.
### Origin allowlists [#origin-allowlists]
An origin allowlist is **abuse deterrence, not authentication**. `Origin` and
`Referer` are trivially forged outside a browser. What an allowlist actually
prevents is someone lifting your key off your site and using it on theirs. It
does not prevent a determined person using the key from curl, and nothing in
this design leans on it as a security boundary.
Supported entries:
| Kind | Example | Notes |
| ------------------ | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Exact origin | `https://example.com` | Scheme, host and port. No path. |
| Wildcard subdomain | `https://*.example.com` | Allows every subdomain, including any a third party controls. |
| Chrome extension | `chrome-extension://` | The id is stable across installs, so this identifies one extension. |
| Firefox extensions | `moz-extension://*` | Firefox gives every _installation_ its own UUID, so a single Firefox extension cannot be allowlisted by origin. This allows any Firefox extension, and is materially weaker than the Chrome case. |
| No origin header | Not applicable | Off by default, behind its own confirmation. It turns the key back into a plain bearer token that any non-browser client can use by omitting a header. For Spicetify and native clients only. |
A `null` origin is not accepted. Browsers send `Origin: null` from sandboxed
iframes and `file://` pages, so any website can send it by loading itself in a
sandboxed iframe, and allowing it would not restrict anything. Allowlist
entries for `null` that were added before this change have been removed, so a
client key that relied on one now refuses those requests.
## Apps you ship to other people [#apps-you-ship-to-other-people]
If your app runs on other people's devices and each of them needs their own
key, do not ask them to sign up and create an application. Submit your app as
an **app template** from [the dashboard](/dashboard/templates) instead.
Once it is approved, you get a link to its page in [the catalog](/catalog).
Each person who opens it clicks Add and gets their own application with the
keys your app needs, already configured: the key type, the origin allowlist and
the rate limit come from the template. It does not use one of their
application slots, and each copy has its own rate limit.
A template is the wrong tool for your own backend. One application and its
secret key serve every one of your users.
## Both at once [#both-at-once]
An application can hold a secret key and client access at the same time. A
project with a web frontend and a backend job legitimately needs both. They are
separate credentials with separate limits, and rotating one does not affect the
other.
# Get Lyrics
> Returns the single best sync available for the track. `Type` names the sync's precision (`Syllable` is word-level, `Line` is line-level, `Static` has no timings) and `source` names the catalogue that answered. `id` can be a Spotify track id, an ISRC or an Apple Music track id. Whichever you send, the track is looked up by its Spotify id, which `id` in the response always is; `ids` holds the track's id on each service we can link it to. An ISRC or Apple Music id links to one release of the recording, so for a recording with several releases, a Spotify id can find a community sync that the others do not.
```http
GET /v1/lyrics/{id}
```
Base URL: `https://api.spicylyrics.org`
## Authorization
- `bearerAuth` (http bearer) — A secret key (`sl_sk_...`) from a server you control, or a publishable key (`sl_pk_...`) from a browser. A publishable key additionally enforces an origin allowlist and a per-viewer IP limit.
## Path parameters
| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | yes | One of: a Spotify track id (22 base62 characters, as in a track URL), an ISRC (12 characters, such as `GBARL9300135`), or an Apple Music track id (digits only, the `i` parameter of a song URL). |
## Responses
### 200
The top sync available for this track.
| Header | Type | Description |
| --- | --- | --- |
| `RateLimit-Limit` | `integer` | Requests permitted in the current window. A secret key and a publishable key each have their own per-application window, and a publishable key also has one per viewer IP; these headers describe whichever of those runs out first. |
| `RateLimit-Remaining` | `integer` | Requests left in the current window. |
| `RateLimit-Reset` | `integer` | Seconds until the current window resets. |
`application/json` — `LyricsEnvelope`
- `Body`: `Lyrics` — **required**
One of:
- `SyllableLyrics`
- `id`: `string` — **required** — The Spotify track id this sync belongs to, whichever kind of id you asked with. An ISRC or Apple Music id can link to a different release of the recording than the one you have in mind.
- `ids`: `TrackIds` — **required** — This track's id on each service we can link it to. A missing key means we do not know the id right now, not that the track is missing from that service, so it can appear on a later request.
- `spotify`: `string` — **required**
- `isrc`: `string`
- `apple_music`: `string`
- `tidal`: `string`
- `youtube`: `string` — A YouTube and YouTube Music video id. Coverage is much smaller than the other services'.
- `source`: `"spicy_lyrics" | "apple_music" | "spotify" | "unknown"` — **required** — Which catalogue answered. `spicy_lyrics` is a community sync; `apple_music` and `spotify` are the commercial catalogues. Branch on this rather than on the track: the same track can be answered by a different source tomorrow, and that is a feature rather than a breaking change.
- `SongWriters`: `string[]`
- `UploadAttribution`: `Attribution` — Present only when `source` is `spicy_lyrics` (a community sync). Credit the uploader, and the maker when one is given. `Maker` is omitted entirely rather than sent empty when there is no distinct maker, so an absent key means 'do not render a maker credit' rather than 'render an empty one'.
- `Uploader`: `Contributor` — **required**
- `id`: `string` — **required**
- `username`: `string` — **required** — Display name where one is set, otherwise the username.
- `url`: `string` — **required** — The contributor's public profile page. Derived from `id`, so it is stable for as long as the account is, and it is the link a credit line should point at.
- `avatar`: `string` — Avatar URL. Absent when the contributor has none.
- `hasProfileBanner`: `boolean`
- `Maker`: `Contributor`
- `id`: `string` — **required**
- `username`: `string` — **required** — Display name where one is set, otherwise the username.
- `url`: `string` — **required** — The contributor's public profile page. Derived from `id`, so it is stable for as long as the account is, and it is the link a credit line should point at.
- `avatar`: `string` — Avatar URL. Absent when the contributor has none.
- `hasProfileBanner`: `boolean`
- `HasTransliterations`: `true` — Present and `true` when this element, or something inside it, carries a transliteration.
- `HasTranslations`: `true` — Present and `true` when this element, or something inside it, carries a translation.
- `Type`: `"Syllable"` — **required**
- `StartTime`: `number`
- `EndTime`: `number`
- `Content`: `SyllableLine[]` — **required**
- `Type`: `"Vocal"` — **required**
- `OppositeAligned`: `boolean` — True when this line belongs to a secondary singer and should be rendered on the opposite side.
- `Lead`: `VocalGroup` — **required** — A timed group of syllables: either the lead vocal of a line, or one background phrase within it. A whole-group `TransliteratedText` and the per-syllable ones can both be present; prefer the syllable-level values when you are rendering word by word.
- `Syllables`: `Syllable[]` — **required**
- `Text`: `string` — **required** — The syllable text, without trailing whitespace.
- `StartTime`: `number` — Seconds from the start of the track.
- `EndTime`: `number` — Seconds from the start of the track.
- `IsPartOfWord`: `boolean` — True when the next syllable continues the same word, so no space is inserted between them.
- `TransliteratedText`: `string` — A romanisation of the text, when the source carries one.
- `TransliteratedIsPartOfWord`: `boolean` — `IsPartOfWord` for the romanisation, present alongside `TransliteratedText`. The romanisation can split words where the text does not (Japanese has no spaces, its romanisation does), so use this instead of `IsPartOfWord` when rendering `TransliteratedText`.
- `StartTime`: `number` — Seconds from the start of the track.
- `EndTime`: `number` — Seconds from the start of the track.
- `TransliteratedText`: `string` — A romanisation of the text, when the source carries one.
- `TranslatedText`: `string` — A translation of the text, when the source carries one.
- `HasTransliterations`: `true` — Present and `true` when this element, or something inside it, carries a transliteration.
- `HasTranslations`: `true` — Present and `true` when this element, or something inside it, carries a translation.
- `Background`: `VocalGroup[]` — Background vocals sung over this line. Absent when the line has none.
- `Syllables`: `Syllable[]` — **required**
- `Text`: `string` — **required** — The syllable text, without trailing whitespace.
- `StartTime`: `number` — Seconds from the start of the track.
- `EndTime`: `number` — Seconds from the start of the track.
- `IsPartOfWord`: `boolean` — True when the next syllable continues the same word, so no space is inserted between them.
- `TransliteratedText`: `string` — A romanisation of the text, when the source carries one.
- `TransliteratedIsPartOfWord`: `boolean` — `IsPartOfWord` for the romanisation, present alongside `TransliteratedText`. The romanisation can split words where the text does not (Japanese has no spaces, its romanisation does), so use this instead of `IsPartOfWord` when rendering `TransliteratedText`.
- `StartTime`: `number` — Seconds from the start of the track.
- `EndTime`: `number` — Seconds from the start of the track.
- `TransliteratedText`: `string` — A romanisation of the text, when the source carries one.
- `TranslatedText`: `string` — A translation of the text, when the source carries one.
- `HasTransliterations`: `true` — Present and `true` when this element, or something inside it, carries a transliteration.
- `HasTranslations`: `true` — Present and `true` when this element, or something inside it, carries a translation.
- `HasTransliterations`: `true` — Present and `true` when this element, or something inside it, carries a transliteration.
- `HasTranslations`: `true` — Present and `true` when this element, or something inside it, carries a translation.
- `LineLyrics`
- `id`: `string` — **required** — The Spotify track id this sync belongs to, whichever kind of id you asked with. An ISRC or Apple Music id can link to a different release of the recording than the one you have in mind.
- `ids`: `TrackIds` — **required** — This track's id on each service we can link it to. A missing key means we do not know the id right now, not that the track is missing from that service, so it can appear on a later request.
- `spotify`: `string` — **required**
- `isrc`: `string`
- `apple_music`: `string`
- `tidal`: `string`
- `youtube`: `string` — A YouTube and YouTube Music video id. Coverage is much smaller than the other services'.
- `source`: `"spicy_lyrics" | "apple_music" | "spotify" | "unknown"` — **required** — Which catalogue answered. `spicy_lyrics` is a community sync; `apple_music` and `spotify` are the commercial catalogues. Branch on this rather than on the track: the same track can be answered by a different source tomorrow, and that is a feature rather than a breaking change.
- `SongWriters`: `string[]`
- `UploadAttribution`: `Attribution` — Present only when `source` is `spicy_lyrics` (a community sync). Credit the uploader, and the maker when one is given. `Maker` is omitted entirely rather than sent empty when there is no distinct maker, so an absent key means 'do not render a maker credit' rather than 'render an empty one'.
- `Uploader`: `Contributor` — **required**
- `id`: `string` — **required**
- `username`: `string` — **required** — Display name where one is set, otherwise the username.
- `url`: `string` — **required** — The contributor's public profile page. Derived from `id`, so it is stable for as long as the account is, and it is the link a credit line should point at.
- `avatar`: `string` — Avatar URL. Absent when the contributor has none.
- `hasProfileBanner`: `boolean`
- `Maker`: `Contributor`
- `id`: `string` — **required**
- `username`: `string` — **required** — Display name where one is set, otherwise the username.
- `url`: `string` — **required** — The contributor's public profile page. Derived from `id`, so it is stable for as long as the account is, and it is the link a credit line should point at.
- `avatar`: `string` — Avatar URL. Absent when the contributor has none.
- `hasProfileBanner`: `boolean`
- `HasTransliterations`: `true` — Present and `true` when this element, or something inside it, carries a transliteration.
- `HasTranslations`: `true` — Present and `true` when this element, or something inside it, carries a translation.
- `Type`: `"Line"` — **required**
- `StartTime`: `number`
- `EndTime`: `number`
- `Content`: `LineLine[]` — **required**
- `Type`: `"Vocal"` — **required**
- `OppositeAligned`: `boolean`
- `Text`: `string` — **required** — The full line. Background vocals, if any, are appended in parentheses.
- `StartTime`: `number` — Seconds from the start of the track.
- `EndTime`: `number` — Seconds from the start of the track.
- `TransliteratedText`: `string` — A romanisation of the text, when the source carries one.
- `TranslatedText`: `string` — A translation of the text, when the source carries one.
- `HasTransliterations`: `true` — Present and `true` when this element, or something inside it, carries a transliteration.
- `HasTranslations`: `true` — Present and `true` when this element, or something inside it, carries a translation.
- `StaticLyrics`
- `id`: `string` — **required** — The Spotify track id this sync belongs to, whichever kind of id you asked with. An ISRC or Apple Music id can link to a different release of the recording than the one you have in mind.
- `ids`: `TrackIds` — **required** — This track's id on each service we can link it to. A missing key means we do not know the id right now, not that the track is missing from that service, so it can appear on a later request.
- `spotify`: `string` — **required**
- `isrc`: `string`
- `apple_music`: `string`
- `tidal`: `string`
- `youtube`: `string` — A YouTube and YouTube Music video id. Coverage is much smaller than the other services'.
- `source`: `"spicy_lyrics" | "apple_music" | "spotify" | "unknown"` — **required** — Which catalogue answered. `spicy_lyrics` is a community sync; `apple_music` and `spotify` are the commercial catalogues. Branch on this rather than on the track: the same track can be answered by a different source tomorrow, and that is a feature rather than a breaking change.
- `SongWriters`: `string[]`
- `UploadAttribution`: `Attribution` — Present only when `source` is `spicy_lyrics` (a community sync). Credit the uploader, and the maker when one is given. `Maker` is omitted entirely rather than sent empty when there is no distinct maker, so an absent key means 'do not render a maker credit' rather than 'render an empty one'.
- `Uploader`: `Contributor` — **required**
- `id`: `string` — **required**
- `username`: `string` — **required** — Display name where one is set, otherwise the username.
- `url`: `string` — **required** — The contributor's public profile page. Derived from `id`, so it is stable for as long as the account is, and it is the link a credit line should point at.
- `avatar`: `string` — Avatar URL. Absent when the contributor has none.
- `hasProfileBanner`: `boolean`
- `Maker`: `Contributor`
- `id`: `string` — **required**
- `username`: `string` — **required** — Display name where one is set, otherwise the username.
- `url`: `string` — **required** — The contributor's public profile page. Derived from `id`, so it is stable for as long as the account is, and it is the link a credit line should point at.
- `avatar`: `string` — Avatar URL. Absent when the contributor has none.
- `hasProfileBanner`: `boolean`
- `HasTransliterations`: `true` — Present and `true` when this element, or something inside it, carries a transliteration.
- `HasTranslations`: `true` — Present and `true` when this element, or something inside it, carries a translation.
- `Type`: `"Static"` — **required**
- `Lines`: `StaticLine[]` — **required**
- `Text`: `string` — **required**
- `TransliteratedText`: `string` — A romanisation of the text, when the source carries one.
- `TranslatedText`: `string` — A translation of the text, when the source carries one.
- `HasTransliterations`: `true` — Present and `true` when this element, or something inside it, carries a transliteration.
- `HasTranslations`: `true` — Present and `true` when this element, or something inside it, carries a translation.
- `Status`: `integer` — **required**
- `Type`: `string` — **required**
### 400
The id is not a well-formed Spotify id, ISRC or Apple Music id.
`application/json` — `ErrorEnvelope`
- `Body`: `ErrorBody` — **required**
- `error`: `string` — **required** — A stable machine-readable code. Codes originating here: `missing_authorization`, `malformed_authorization`, `origin_not_allowed`, `missing_scope`, `rate_limited`, `invalid_track_id`, `invalid_request`, `not_found`, `track_not_found`, `lyrics_not_found`, `verification_unavailable`, `server_busy`, `internal_error`, `upstream_unavailable`, `upstream_rate_limited`, `upstream_error`. Codes originating from key verification: `key_not_found`, `key_malformed`, `key_revoked`, `key_disabled_by_admin`, `application_paused`, `application_suspended`, `user_suspended`, `application_deleted`, `origins_not_configured`.
- `message`: `string` — **required** — Human-readable, and says what to do next.
- `Status`: `integer` — **required** — Repeats the HTTP status.
- `Type`: `string` — **required**
### 401
No key was sent, the Authorization header was malformed, or the key is unknown, revoked or disabled.
`application/json` — `ErrorEnvelope`
- `Body`: `ErrorBody` — **required**
- `error`: `string` — **required** — A stable machine-readable code. Codes originating here: `missing_authorization`, `malformed_authorization`, `origin_not_allowed`, `missing_scope`, `rate_limited`, `invalid_track_id`, `invalid_request`, `not_found`, `track_not_found`, `lyrics_not_found`, `verification_unavailable`, `server_busy`, `internal_error`, `upstream_unavailable`, `upstream_rate_limited`, `upstream_error`. Codes originating from key verification: `key_not_found`, `key_malformed`, `key_revoked`, `key_disabled_by_admin`, `application_paused`, `application_suspended`, `user_suspended`, `application_deleted`, `origins_not_configured`.
- `message`: `string` — **required** — Human-readable, and says what to do next.
- `Status`: `integer` — **required** — Repeats the HTTP status.
- `Type`: `string` — **required**
### 403
The key is valid but the request is not permitted: the application is paused, suspended or deleted, the account is suspended, the required scope is not granted, or the Origin is not on the key's allowlist.
`application/json` — `ErrorEnvelope`
- `Body`: `ErrorBody` — **required**
- `error`: `string` — **required** — A stable machine-readable code. Codes originating here: `missing_authorization`, `malformed_authorization`, `origin_not_allowed`, `missing_scope`, `rate_limited`, `invalid_track_id`, `invalid_request`, `not_found`, `track_not_found`, `lyrics_not_found`, `verification_unavailable`, `server_busy`, `internal_error`, `upstream_unavailable`, `upstream_rate_limited`, `upstream_error`. Codes originating from key verification: `key_not_found`, `key_malformed`, `key_revoked`, `key_disabled_by_admin`, `application_paused`, `application_suspended`, `user_suspended`, `application_deleted`, `origins_not_configured`.
- `message`: `string` — **required** — Human-readable, and says what to do next.
- `Status`: `integer` — **required** — Repeats the HTTP status.
- `Type`: `string` — **required**
### 404
No lyrics are available for this track (`lyrics_not_found`), or an ISRC or Apple Music id could not be linked to a track (`track_not_found`).
`application/json` — `ErrorEnvelope`
- `Body`: `ErrorBody` — **required**
- `error`: `string` — **required** — A stable machine-readable code. Codes originating here: `missing_authorization`, `malformed_authorization`, `origin_not_allowed`, `missing_scope`, `rate_limited`, `invalid_track_id`, `invalid_request`, `not_found`, `track_not_found`, `lyrics_not_found`, `verification_unavailable`, `server_busy`, `internal_error`, `upstream_unavailable`, `upstream_rate_limited`, `upstream_error`. Codes originating from key verification: `key_not_found`, `key_malformed`, `key_revoked`, `key_disabled_by_admin`, `application_paused`, `application_suspended`, `user_suspended`, `application_deleted`, `origins_not_configured`.
- `message`: `string` — **required** — Human-readable, and says what to do next.
- `Status`: `integer` — **required** — Repeats the HTTP status.
- `Type`: `string` — **required**
### 429
The application's request window, or the per-viewer window for a publishable key, is exhausted.
| Header | Type | Description |
| --- | --- | --- |
| `RateLimit-Limit` | `integer` | Requests permitted in the current window. A secret key and a publishable key each have their own per-application window, and a publishable key also has one per viewer IP; these headers describe whichever of those runs out first. |
| `RateLimit-Remaining` | `integer` | Requests left in the current window. |
| `RateLimit-Reset` | `integer` | Seconds until the current window resets. |
| `Retry-After` | `integer` | Seconds to wait before retrying. |
`application/json` — `ErrorEnvelope`
- `Body`: `ErrorBody` — **required**
- `error`: `string` — **required** — A stable machine-readable code. Codes originating here: `missing_authorization`, `malformed_authorization`, `origin_not_allowed`, `missing_scope`, `rate_limited`, `invalid_track_id`, `invalid_request`, `not_found`, `track_not_found`, `lyrics_not_found`, `verification_unavailable`, `server_busy`, `internal_error`, `upstream_unavailable`, `upstream_rate_limited`, `upstream_error`. Codes originating from key verification: `key_not_found`, `key_malformed`, `key_revoked`, `key_disabled_by_admin`, `application_paused`, `application_suspended`, `user_suspended`, `application_deleted`, `origins_not_configured`.
- `message`: `string` — **required** — Human-readable, and says what to do next.
- `Status`: `integer` — **required** — Repeats the HTTP status.
- `Type`: `string` — **required**
### 500
Unexpected server error.
`application/json` — `ErrorEnvelope`
- `Body`: `ErrorBody` — **required**
- `error`: `string` — **required** — A stable machine-readable code. Codes originating here: `missing_authorization`, `malformed_authorization`, `origin_not_allowed`, `missing_scope`, `rate_limited`, `invalid_track_id`, `invalid_request`, `not_found`, `track_not_found`, `lyrics_not_found`, `verification_unavailable`, `server_busy`, `internal_error`, `upstream_unavailable`, `upstream_rate_limited`, `upstream_error`. Codes originating from key verification: `key_not_found`, `key_malformed`, `key_revoked`, `key_disabled_by_admin`, `application_paused`, `application_suspended`, `user_suspended`, `application_deleted`, `origins_not_configured`.
- `message`: `string` — **required** — Human-readable, and says what to do next.
- `Status`: `integer` — **required** — Repeats the HTTP status.
- `Type`: `string` — **required**
### 502
The upstream lyrics provider did not answer usably.
`application/json` — `ErrorEnvelope`
- `Body`: `ErrorBody` — **required**
- `error`: `string` — **required** — A stable machine-readable code. Codes originating here: `missing_authorization`, `malformed_authorization`, `origin_not_allowed`, `missing_scope`, `rate_limited`, `invalid_track_id`, `invalid_request`, `not_found`, `track_not_found`, `lyrics_not_found`, `verification_unavailable`, `server_busy`, `internal_error`, `upstream_unavailable`, `upstream_rate_limited`, `upstream_error`. Codes originating from key verification: `key_not_found`, `key_malformed`, `key_revoked`, `key_disabled_by_admin`, `application_paused`, `application_suspended`, `user_suspended`, `application_deleted`, `origins_not_configured`.
- `message`: `string` — **required** — Human-readable, and says what to do next.
- `Status`: `integer` — **required** — Repeats the HTTP status.
- `Type`: `string` — **required**
### 503
Temporarily unable to serve: key verification is unavailable, upstream credentials could not be obtained, an ISRC or Apple Music id could not be looked up right now, or the parser is saturated. None of these means the track does not exist.
| Header | Type | Description |
| --- | --- | --- |
| `Retry-After` | `integer` | Seconds to wait before retrying. |
`application/json` — `ErrorEnvelope`
- `Body`: `ErrorBody` — **required**
- `error`: `string` — **required** — A stable machine-readable code. Codes originating here: `missing_authorization`, `malformed_authorization`, `origin_not_allowed`, `missing_scope`, `rate_limited`, `invalid_track_id`, `invalid_request`, `not_found`, `track_not_found`, `lyrics_not_found`, `verification_unavailable`, `server_busy`, `internal_error`, `upstream_unavailable`, `upstream_rate_limited`, `upstream_error`. Codes originating from key verification: `key_not_found`, `key_malformed`, `key_revoked`, `key_disabled_by_admin`, `application_paused`, `application_suspended`, `user_suspended`, `application_deleted`, `origins_not_configured`.
- `message`: `string` — **required** — Human-readable, and says what to do next.
- `Status`: `integer` — **required** — Repeats the HTTP status.
- `Type`: `string` — **required**
# Search Tracks
> Finds the tracks matching a title, an artist or free text, best match first, so you can pass one to `GET /v1/lyrics/{id}`. Releases of one recording (album, single, compilations) come back as a single result, with the others under `variants`. Each result has a `tier` saying how well it matches what you asked for. An automated fetcher should take the first result only when its tier is one it trusts, usually `exact`: a different version of a song has different timings. Send `duration` whenever you know it, since it is what tells versions apart. This does not say whether a track has lyrics. Results are cached, and a search counts as one request.
```http
GET /v1/tracks/search
```
Base URL: `https://api.spicylyrics.org`
## Authorization
- `bearerAuth` (http bearer) — A secret key (`sl_sk_...`) from a server you control, or a publishable key (`sl_pk_...`) from a browser. A publishable key additionally enforces an origin allowlist and a per-viewer IP limit.
## Query parameters
| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `q` | `string` | no | Free text, such as `creep radiohead`. Send this or `title`, not both. |
| `title` | `string` | no | The track title. Gives better tiers than `q` when you have the fields separately. |
| `artist` | `string` | no | The artist, or several in one string. Only with `title`. Without it, no result can be `exact`. |
| `album` | `string` | no | The album. Only with `title`. Picks which release of a recording is returned; it does not filter. |
| `duration` | `number` | no | The track's length in seconds. Without it, a cut of a song can only be told from another when the results show more than one length, so a match on a different cut is still possible. |
| `limit` | `integer` | no | How many results to return. |
## Responses
### 200
The matching tracks, best first. Empty when nothing matches.
| Header | Type | Description |
| --- | --- | --- |
| `RateLimit-Limit` | `integer` | Requests permitted in the current window. A secret key and a publishable key each have their own per-application window, and a publishable key also has one per viewer IP; these headers describe whichever of those runs out first. |
| `RateLimit-Remaining` | `integer` | Requests left in the current window. |
| `RateLimit-Reset` | `integer` | Seconds until the current window resets. |
`application/json` — `TrackSearchEnvelope`
- `Body`: `object` — **required**
- `results`: `TrackResult[]` — **required** — Best match first.
- `id`: `string` — **required** — The Spotify track id. Pass it to `GET /v1/lyrics/{id}`.
- `ids`: `TrackIds` — **required** — This track's id on each service we can link it to. A missing key means we do not know the id right now, not that the track is missing from that service, so it can appear on a later request.
- `spotify`: `string` — **required**
- `isrc`: `string`
- `apple_music`: `string`
- `tidal`: `string`
- `youtube`: `string` — A YouTube and YouTube Music video id. Coverage is much smaller than the other services'.
- `title`: `string` — **required**
- `artists`: `string[]` — **required**
- `album`: `string | null` — **required**
- `duration`: `number` — **required** — Length in seconds.
- `explicit`: `boolean` — **required**
- `artwork`: `string | null` — **required** — The album artwork URL, at the largest size available.
- `tier`: `"exact" | "likely" | "version" | "other_artist" | "related"` — **required** — How well a result matches what you asked for, best first: - `exact`: the title and artist match, it is not a different version, and the duration agrees if you sent one. Safe for a fetcher to take automatically. Without a duration, when matches come in clearly different lengths, only the one credited closest to what you asked for is `exact`, and none is if that does not settle it. - `likely`: the title matches, but you named no artist, the duration is slightly off, or you sent no duration and the song comes in several lengths. - `version`: the same song, but another version than you asked for: live, remix, acoustic, or a very different length. Its timings will not fit yours. - `other_artist`: the same title by someone else, such as a cover. - `related`: only part of the title or the artist matches. Order within a tier is meaningful too, so the first result is always our best guess.
- `variants`: `TrackVariant[]` — **required** — Other releases of this recording, merged into this result. Empty when there are none.
- `id`: `string` — **required** — The Spotify track id of this release.
- `album`: `string | null` — **required**
- `duration`: `number` — **required** — Length in seconds.
- `Status`: `integer` — **required**
- `Type`: `string` — **required**
### 400
Neither `q` nor `title` was sent, both were, or a parameter is not valid.
`application/json` — `ErrorEnvelope`
- `Body`: `ErrorBody` — **required**
- `error`: `string` — **required** — A stable machine-readable code. Codes originating here: `missing_authorization`, `malformed_authorization`, `origin_not_allowed`, `missing_scope`, `rate_limited`, `invalid_track_id`, `invalid_request`, `not_found`, `track_not_found`, `lyrics_not_found`, `verification_unavailable`, `server_busy`, `internal_error`, `upstream_unavailable`, `upstream_rate_limited`, `upstream_error`. Codes originating from key verification: `key_not_found`, `key_malformed`, `key_revoked`, `key_disabled_by_admin`, `application_paused`, `application_suspended`, `user_suspended`, `application_deleted`, `origins_not_configured`.
- `message`: `string` — **required** — Human-readable, and says what to do next.
- `Status`: `integer` — **required** — Repeats the HTTP status.
- `Type`: `string` — **required**
### 401
No key was sent, the Authorization header was malformed, or the key is unknown, revoked or disabled.
`application/json` — `ErrorEnvelope`
- `Body`: `ErrorBody` — **required**
- `error`: `string` — **required** — A stable machine-readable code. Codes originating here: `missing_authorization`, `malformed_authorization`, `origin_not_allowed`, `missing_scope`, `rate_limited`, `invalid_track_id`, `invalid_request`, `not_found`, `track_not_found`, `lyrics_not_found`, `verification_unavailable`, `server_busy`, `internal_error`, `upstream_unavailable`, `upstream_rate_limited`, `upstream_error`. Codes originating from key verification: `key_not_found`, `key_malformed`, `key_revoked`, `key_disabled_by_admin`, `application_paused`, `application_suspended`, `user_suspended`, `application_deleted`, `origins_not_configured`.
- `message`: `string` — **required** — Human-readable, and says what to do next.
- `Status`: `integer` — **required** — Repeats the HTTP status.
- `Type`: `string` — **required**
### 403
The key is valid but the request is not permitted: the application is paused, suspended or deleted, the account is suspended, the required scope is not granted, or the Origin is not on the key's allowlist.
`application/json` — `ErrorEnvelope`
- `Body`: `ErrorBody` — **required**
- `error`: `string` — **required** — A stable machine-readable code. Codes originating here: `missing_authorization`, `malformed_authorization`, `origin_not_allowed`, `missing_scope`, `rate_limited`, `invalid_track_id`, `invalid_request`, `not_found`, `track_not_found`, `lyrics_not_found`, `verification_unavailable`, `server_busy`, `internal_error`, `upstream_unavailable`, `upstream_rate_limited`, `upstream_error`. Codes originating from key verification: `key_not_found`, `key_malformed`, `key_revoked`, `key_disabled_by_admin`, `application_paused`, `application_suspended`, `user_suspended`, `application_deleted`, `origins_not_configured`.
- `message`: `string` — **required** — Human-readable, and says what to do next.
- `Status`: `integer` — **required** — Repeats the HTTP status.
- `Type`: `string` — **required**
### 429
The application's request window or the per-viewer window is exhausted, or searches are temporarily limited (`upstream_rate_limited`).
| Header | Type | Description |
| --- | --- | --- |
| `RateLimit-Limit` | `integer` | Requests permitted in the current window. A secret key and a publishable key each have their own per-application window, and a publishable key also has one per viewer IP; these headers describe whichever of those runs out first. |
| `RateLimit-Remaining` | `integer` | Requests left in the current window. |
| `RateLimit-Reset` | `integer` | Seconds until the current window resets. |
| `Retry-After` | `integer` | Seconds to wait before retrying. |
`application/json` — `ErrorEnvelope`
- `Body`: `ErrorBody` — **required**
- `error`: `string` — **required** — A stable machine-readable code. Codes originating here: `missing_authorization`, `malformed_authorization`, `origin_not_allowed`, `missing_scope`, `rate_limited`, `invalid_track_id`, `invalid_request`, `not_found`, `track_not_found`, `lyrics_not_found`, `verification_unavailable`, `server_busy`, `internal_error`, `upstream_unavailable`, `upstream_rate_limited`, `upstream_error`. Codes originating from key verification: `key_not_found`, `key_malformed`, `key_revoked`, `key_disabled_by_admin`, `application_paused`, `application_suspended`, `user_suspended`, `application_deleted`, `origins_not_configured`.
- `message`: `string` — **required** — Human-readable, and says what to do next.
- `Status`: `integer` — **required** — Repeats the HTTP status.
- `Type`: `string` — **required**
### 500
Unexpected server error.
`application/json` — `ErrorEnvelope`
- `Body`: `ErrorBody` — **required**
- `error`: `string` — **required** — A stable machine-readable code. Codes originating here: `missing_authorization`, `malformed_authorization`, `origin_not_allowed`, `missing_scope`, `rate_limited`, `invalid_track_id`, `invalid_request`, `not_found`, `track_not_found`, `lyrics_not_found`, `verification_unavailable`, `server_busy`, `internal_error`, `upstream_unavailable`, `upstream_rate_limited`, `upstream_error`. Codes originating from key verification: `key_not_found`, `key_malformed`, `key_revoked`, `key_disabled_by_admin`, `application_paused`, `application_suspended`, `user_suspended`, `application_deleted`, `origins_not_configured`.
- `message`: `string` — **required** — Human-readable, and says what to do next.
- `Status`: `integer` — **required** — Repeats the HTTP status.
- `Type`: `string` — **required**
### 502
The upstream search did not answer usably.
`application/json` — `ErrorEnvelope`
- `Body`: `ErrorBody` — **required**
- `error`: `string` — **required** — A stable machine-readable code. Codes originating here: `missing_authorization`, `malformed_authorization`, `origin_not_allowed`, `missing_scope`, `rate_limited`, `invalid_track_id`, `invalid_request`, `not_found`, `track_not_found`, `lyrics_not_found`, `verification_unavailable`, `server_busy`, `internal_error`, `upstream_unavailable`, `upstream_rate_limited`, `upstream_error`. Codes originating from key verification: `key_not_found`, `key_malformed`, `key_revoked`, `key_disabled_by_admin`, `application_paused`, `application_suspended`, `user_suspended`, `application_deleted`, `origins_not_configured`.
- `message`: `string` — **required** — Human-readable, and says what to do next.
- `Status`: `integer` — **required** — Repeats the HTTP status.
- `Type`: `string` — **required**
### 503
Temporarily unable to search: key verification is unavailable or upstream credentials could not be obtained.
| Header | Type | Description |
| --- | --- | --- |
| `Retry-After` | `integer` | Seconds to wait before retrying. |
`application/json` — `ErrorEnvelope`
- `Body`: `ErrorBody` — **required**
- `error`: `string` — **required** — A stable machine-readable code. Codes originating here: `missing_authorization`, `malformed_authorization`, `origin_not_allowed`, `missing_scope`, `rate_limited`, `invalid_track_id`, `invalid_request`, `not_found`, `track_not_found`, `lyrics_not_found`, `verification_unavailable`, `server_busy`, `internal_error`, `upstream_unavailable`, `upstream_rate_limited`, `upstream_error`. Codes originating from key verification: `key_not_found`, `key_malformed`, `key_revoked`, `key_disabled_by_admin`, `application_paused`, `application_suspended`, `user_suspended`, `application_deleted`, `origins_not_configured`.
- `message`: `string` — **required** — Human-readable, and says what to do next.
- `Status`: `integer` — **required** — Repeats the HTTP status.
- `Type`: `string` — **required**