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.
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.
Authorization
bearerAuth 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.
In: header
Query Parameters
Free text, such as creep radiohead. Send this or title, not both.
1 <= length <= 200The track title. Gives better tiers than q when you have the fields separately.
1 <= length <= 200The artist, or several in one string. Only with title. Without it, no result can be exact.
1 <= length <= 200The album. Only with title. Picks which release of a recording is returned; it does not filter.
1 <= length <= 200The 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.
0 < value <= 86400How many results to return.
1 <= value <= 2010Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/tracks/search"{ "Body": { "results": [ { "id": "string", "ids": { "spotify": "string", "isrc": "string", "apple_music": "string", "tidal": "string", "youtube": "string" }, "title": "string", "artists": [ "string" ], "album": "string", "duration": 0, "explicit": true, "artwork": "string", "tier": "exact", "variants": [ { "id": "string", "album": "string", "duration": 0 } ] } ] }, "Status": 0, "Type": "string"}