LRCLIB
App · Music & Podcasts · 10 actions
Look up song lyrics on LRCLIB, the free community lyrics database: match a track by title, artist, album and duration, search the catalog by keyword, read time-synchronized lyrics as timed lines, find the line being sung at any moment of a track, turn the lyrics into SubRip or WebVTT subtitles, check what a track has before acting on it, look up a whole playlist in one step, and publish or flag records. No account or API key required.
Actions
| Action | What it does |
|---|---|
| Check whether a track has lyrics | Answer whether LRCLIB holds lyrics for a track, and of which kind (synchronized, plain, or instrumental) without failing the step when it holds none. |
| Flag lyrics | Report a track's current lyrics to LRCLIB for review: wrong words, wrong track metadata, or a copyright violation. |
| Get lyrics as subtitles | Turn a track's time-synchronized lyrics into a SubRip (.srt) or WebVTT (.vtt) subtitle file, the formats video editors, players and YouTube read. |
| Get lyrics by ID | Fetch one lyrics record by LRCLIB's absolute track ID, the id returned by a search or by an earlier lookup. |
| Get lyrics for a track | Find the best matching lyrics for a track by its title and artist, returning both the plain and the time-synchronized words. |
| Get lyrics for several tracks | Look up a list of tracks in one step: a playlist, an album, or a slice of a music library. |
| Get synced lyrics | Fetch a track's time-synchronized lyrics as timed lines, each with the second it starts at, ready to drive subtitles, a karaoke display, or a 'what is playing right now' lookup. |
| Get the lyric line at a moment | Find the line of a track's lyrics being sung at a given moment, with the line before, the line after and how long until it starts: what a "now playing" lyric needs from a music player's position. |
| Publish lyrics | Publish a lyrics record to LRCLIB's public database, which anyone may then read. |
| Search for lyrics | Search LRCLIB's catalog, either with a keyword query across every field or by track title, artist and album. |
Check whether a track has lyrics
Answer whether LRCLIB holds lyrics for a track, and of which kind (synchronized, plain, or instrumental) without failing the step when it holds none. Use it to decide what a workflow does next; use "Get lyrics for a track" once you know.
Inputs
- Track title
track_nametextRequired - Title of the track.
- Artist name
artist_nametextRequired - Name of the artist.
- Album name
album_nametext - Name of the album. Optional, but LRCLIB recommends it: it tells two releases of the same song apart.
- Duration (seconds)
durationnumber - Track length in seconds (1 to 3600). Optional, but the single biggest improvement to the match: LRCLIB answers only when the length is within 2 seconds of its own record. A mm:ss value such as 3:53 is also accepted.From 1 to 3600.
Outputs
album_nametextartist_nametextavailabletrue/falsedurationnumberduration_labeltexthas_plain_lyricstrue/falsehas_synced_lyricstrue/falsehas_word_synctrue/falseinstrumentaltrue/falsereasontexttrack_idnumbertrack_nametext
Example output
{
"album_name": "Baldur's Gate 3 (Original Game Soundtrack)",
"artist_name": "Borislav Slavov",
"available": true,
"duration": 233,
"duration_label": "3:53",
"has_plain_lyrics": true,
"has_synced_lyrics": true,
"has_word_sync": false,
"instrumental": false,
"reason": null,
"track_id": 3396226,
"track_name": "I Want to Live"
}Flag lyrics
Report a track's current lyrics to LRCLIB for review: wrong words, wrong track metadata, or a copyright violation. Like publishing, this earns LRCLIB's single-use token by solving its proof-of-work challenge, which takes a few seconds of CPU.
Inputs
- Track ID
track_idnumberRequired - LRCLIB's numeric track ID for the record to flag.At least 1.
- Reason
contenttext - Why the record is being flagged. Optional, but it is what a reviewer reads.
Outputs
challenge_attemptsnumbercontenttextflaggedtrue/falsetrack_idnumber
Example output
{
"challenge_attempts": 16951204,
"content": "The lyrics don't match the audio",
"flagged": true,
"track_id": 3396226
}Get lyrics as subtitles
Turn a track's time-synchronized lyrics into a SubRip (.srt) or WebVTT (.vtt) subtitle file, the formats video editors, players and YouTube read. Each line shows from its own timestamp until the next, and an offset shifts every line to match a video that starts earlier or later than the recording. Returns the file's text, a name to save it under, and each cue as a row.
Inputs
- Track ID
track_idnumber - LRCLIB's numeric track ID. Given this, the title and artist below are not needed.At least 1.
- Track title
track_nametext - Title of the track. Required unless a track ID is given.
- Artist name
artist_nametext - Name of the artist. Required unless a track ID is given.
- Album name
album_nametext - Name of the album. Optional, but LRCLIB recommends it: it tells two releases of the same song apart.
- Duration (seconds)
durationnumber - Track length in seconds (1 to 3600). Optional, but the single biggest improvement to the match: LRCLIB answers only when the length is within 2 seconds of its own record. A mm:ss value such as 3:53 is also accepted.From 1 to 3600.
- Format
subtitle_formattext - SubRip (.srt) is read almost everywhere; WebVTT (.vtt) is what web video players use. Defaults to SubRip.One of:
srt(SubRip (.srt)),vtt(WebVTT (.vtt)). Default:srt. - Shift by (seconds)
offset_secondsnumber - Move every line later by this many seconds, or earlier with a negative number, such as -1.5 for a video whose song starts a second and a half sooner. Up to 600 either way. Leave blank to keep the recording's own timing.From -600.0 to 600.0.
- Show in the run
output_detailtext - How to print the subtitles into the run output for a person to read: the file exactly as it will be saved, or each cue on one line. This only changes what is displayed, never what is saved. Defaults to the file.One of:
full(The subtitle file as written),summary(One line per cue). Default:full.
Outputs
album_nametextartist_nametextcue_countnumbercueslistdurationnumberduration_labeltextfile_nametextidnumberoffset_secondsnumberoutput_detailtextsubtitle_formattextsubtitlestexttrack_nametext
Example output
{
"album_name": "Baldur's Gate 3 (Original Game Soundtrack)",
"artist_name": "Borislav Slavov",
"cue_count": 2,
"cues": [
{
"end": "00:00:20,410",
"end_seconds": 20.41,
"index": 1,
"start": "00:00:17,120",
"start_seconds": 17.12,
"text": "Morning light across the river"
},
{
"end": "00:00:29,600",
"end_seconds": 29.6,
"index": 2,
"start": "00:00:20,410",
"start_seconds": 20.41,
"text": "Carries every word I meant to say"
}
],
"duration": 233,
"duration_label": "3:53",
"file_name": "Borislav Slavov - I Want to Live.srt",
"id": 3396226,
"offset_seconds": 0.0,
"output_detail": "full",
"subtitle_format": "srt",
"subtitles": "1\n00:00:17,120 --> 00:00:20,410\nMorning light across the river\n\n2\n00:00:20,410 --> 00:00:29,600\nCarries every word I meant to say\n",
"track_name": "I Want to Live"
}Get lyrics by ID
Fetch one lyrics record by LRCLIB's absolute track ID, the id returned by a search or by an earlier lookup. Exact, so there is no duration matching to get right.
Inputs
- Track ID
track_idnumberRequired - LRCLIB's numeric track ID. The 'id' of a search result, or of a record an earlier step fetched.At least 1.
- Show in the run
output_detailtext - How much to print into the run output for a person to read. 'The lyrics in full' prints every line; 'A summary line and the opening' prints the first few. This only changes what is displayed, never what is saved: a later step reads the same record either way. Defaults to the lyrics in full.One of:
full(The lyrics in full),summary(A summary line and the opening). Default:full.
Outputs
album_nametextartist_nametextdurationnumberduration_labeltexthas_plain_lyricstrue/falsehas_synced_lyricstrue/falsehas_word_synctrue/falseidnumberinstrumentaltrue/falselyricsfiletextoutput_detailtextplain_lyricstextsynced_lyricstexttrack_nametext
Example output
{
"album_name": "Baldur's Gate 3 (Original Game Soundtrack)",
"artist_name": "Borislav Slavov",
"duration": 233,
"duration_label": "3:53",
"has_plain_lyrics": true,
"has_synced_lyrics": true,
"has_word_sync": false,
"id": 3396226,
"instrumental": false,
"lyricsfile": "version: '1.0'\nmetadata:\n title: I Want to Live\n\u2026",
"output_detail": "full",
"plain_lyrics": "Morning light across the river\n\u2026",
"synced_lyrics": "[00:17.12] Morning light across the river\n\u2026",
"track_name": "I Want to Live"
}Get lyrics for a track
Find the best matching lyrics for a track by its title and artist, returning both the plain and the time-synchronized words. Adding the album name and the duration in seconds sharpens the match: LRCLIB only answers when the duration is within 2 seconds of its own record. Fails when LRCLIB has nothing for the track; use "Check whether a track has lyrics" to branch on that instead.
Inputs
- Track title
track_nametextRequired - Title of the track.
- Artist name
artist_nametextRequired - Name of the artist.
- Album name
album_nametext - Name of the album. Optional, but LRCLIB recommends it: it tells two releases of the same song apart.
- Duration (seconds)
durationnumber - Track length in seconds (1 to 3600). Optional, but the single biggest improvement to the match: LRCLIB answers only when the length is within 2 seconds of its own record. A mm:ss value such as 3:53 is also accepted.From 1 to 3600.
- Show in the run
output_detailtext - How much to print into the run output for a person to read. 'The lyrics in full' prints every line; 'A summary line and the opening' prints the first few. This only changes what is displayed, never what is saved: a later step reads the same record either way. Defaults to the lyrics in full.One of:
full(The lyrics in full),summary(A summary line and the opening). Default:full.
Outputs
album_nametextartist_nametextdurationnumberduration_labeltexthas_plain_lyricstrue/falsehas_synced_lyricstrue/falsehas_word_synctrue/falseidnumberinstrumentaltrue/falselyricsfiletextoutput_detailtextplain_lyricstextsynced_lyricstexttrack_nametext
Example output
{
"album_name": "Baldur's Gate 3 (Original Game Soundtrack)",
"artist_name": "Borislav Slavov",
"duration": 233,
"duration_label": "3:53",
"has_plain_lyrics": true,
"has_synced_lyrics": true,
"has_word_sync": false,
"id": 3396226,
"instrumental": false,
"lyricsfile": "version: '1.0'\nmetadata:\n title: I Want to Live\n\u2026",
"output_detail": "full",
"plain_lyrics": "Morning light across the river\n\u2026",
"synced_lyrics": "[00:17.12] Morning light across the river\n\u2026",
"track_name": "I Want to Live"
}Get lyrics for several tracks
Look up a list of tracks in one step: a playlist, an album, or a slice of a music library. Each track can be a title and an artist, or just a line of text naming it. Requests go one at a time with the pause LRCLIB asks batch clients for, a track it has nothing for is reported against that track instead of failing the step, and hitting the rate limit stops the run and names the tracks it never reached. Up to 25 tracks per step.
Inputs
- Tracks
trackslistRequired - The tracks to look up. Give each one a track title and an artist name and LRCLIB matches that exact recording; an album name and a duration in seconds sharpen it further. A track named more loosely, or a plain list of tracks written one per line, is looked up through LRCLIB's search instead.
- Include the lyrics
include_lyricstrue/false - Return each match's plain, synchronized and Lyricsfile bodies. On by default; turn it off to get back only which tracks have lyrics and of what kind.Default:
true. - Show in the run
output_detailtext - How much to print into the run output for a person to read. 'The lyrics in full' prints every line; 'A summary line and the opening' prints the first few. This only changes what is displayed, never what is saved: a later step reads the same record either way. Defaults to the lyrics in full. A long playlist makes that a lot to scroll through, so turn it down to the opening lines when what matters is which tracks were found.One of:
full(The lyrics in full),summary(A summary line and the opening). Default:full.
Outputs
found_countnumbermissing_countnumbernot_attemptedlistoutput_detailtextresult_countnumberresultslistretry_after_secondsnumber
Example output
{
"found_count": 1,
"missing_count": 0,
"not_attempted": [],
"output_detail": "full",
"result_count": 1,
"results": [
{
"found": true,
"matched_by": "signature",
"reason": null,
"record": {
"album_name": "Baldur's Gate 3 (Original Game Soundtrack)",
"artist_name": "Borislav Slavov",
"duration": 233,
"duration_label": "3:53",
"has_plain_lyrics": true,
"has_synced_lyrics": true,
"has_word_sync": false,
"id": 3396226,
"instrumental": false,
"lyricsfile": "version: '1.0'\nmetadata:\n title: I Want to Live\n\u2026",
"plain_lyrics": "Morning light across the river\n\u2026",
"synced_lyrics": "[00:17.12] Morning light across the river\n\u2026",
"track_name": "I Want to Live"
},
"requested": {
"album_name": null,
"artist_name": "Borislav Slavov",
"duration": 233,
"query": null,
"track_name": "I Want to Live"
}
}
],
"retry_after_seconds": null
}Get synced lyrics
Fetch a track's time-synchronized lyrics as timed lines, each with the second it starts at, ready to drive subtitles, a karaoke display, or a 'what is playing right now' lookup. Identify the track by its LRCLIB track ID, or by its title and artist. Fails when LRCLIB only holds untimed lyrics.
Inputs
- Track ID
track_idnumber - LRCLIB's numeric track ID. Given this, the title and artist below are not needed.At least 1.
- Track title
track_nametext - Title of the track. Required unless a track ID is given.
- Artist name
artist_nametext - Name of the artist. Required unless a track ID is given.
- Album name
album_nametext - Name of the album. Optional, but LRCLIB recommends it: it tells two releases of the same song apart.
- Duration (seconds)
durationnumber - Track length in seconds (1 to 3600). Optional, but the single biggest improvement to the match: LRCLIB answers only when the length is within 2 seconds of its own record. A mm:ss value such as 3:53 is also accepted.From 1 to 3600.
- Show in the run
output_detailtext - How much to print into the run output for a person to read. 'The lyrics in full' prints every line; 'A summary line and the opening' prints the first few. This only changes what is displayed, never what is saved: a later step reads the same record either way. Defaults to the lyrics in full.One of:
full(The lyrics in full),summary(A summary line and the opening). Default:full.
Outputs
album_nametextartist_nametextdurationnumberduration_labeltextfirst_line_at_secondsnumberidnumberlast_line_at_secondsnumberline_countnumberlineslistoutput_detailtextsynced_lyricstexttrack_nametext
Example output
{
"album_name": "Baldur's Gate 3 (Original Game Soundtrack)",
"artist_name": "Borislav Slavov",
"duration": 233,
"duration_label": "3:53",
"first_line_at_seconds": 17.12,
"id": 3396226,
"last_line_at_seconds": 205.72,
"line_count": 3,
"lines": [
{
"text": "Morning light across the river",
"time_seconds": 17.12,
"timestamp": "00:17.12"
},
{
"text": "So I sing it slowly, line by line",
"time_seconds": 200.31,
"timestamp": "03:20.31"
},
{
"text": "",
"time_seconds": 205.72,
"timestamp": "03:25.72"
}
],
"output_detail": "full",
"synced_lyrics": "[00:17.12] Morning light across the river\n\u2026",
"track_name": "I Want to Live"
}Get the lyric line at a moment
Find the line of a track's lyrics being sung at a given moment, with the line before, the line after and how long until it starts: what a "now playing" lyric needs from a music player's position. Says whether the moment falls on a line, in a gap, or before or after the lyrics. Identify the track by its LRCLIB track ID, or by its title and artist.
Inputs
- Moment in the track
positiontextRequired - How far into the track, in seconds (fractions allowed), or as a time such as 1:23. A music player usually reports this in milliseconds, so divide its number by 1000.
- Track ID
track_idnumber - LRCLIB's numeric track ID. Given this, the title and artist below are not needed.At least 1.
- Track title
track_nametext - Title of the track. Required unless a track ID is given.
- Artist name
artist_nametext - Name of the artist. Required unless a track ID is given.
- Album name
album_nametext - Name of the album. Optional, but LRCLIB recommends it: it tells two releases of the same song apart.
- Duration (seconds)
durationnumber - Track length in seconds (1 to 3600). Optional, but the single biggest improvement to the match: LRCLIB answers only when the length is within 2 seconds of its own record. A mm:ss value such as 3:53 is also accepted.From 1 to 3600.
Outputs
album_nametextartist_nametextdurationnumberduration_labeltextidnumberlinetextline_indexnumberline_started_at_secondsnumbernext_linetextnext_line_at_secondsnumberposition_secondsnumberposition_timestamptextprevious_linetextseconds_until_next_linenumberstatustexttrack_nametext
Example output
{
"album_name": "Baldur's Gate 3 (Original Game Soundtrack)",
"artist_name": "Borislav Slavov",
"duration": 233,
"duration_label": "3:53",
"id": 3396226,
"line": "Carries every word I meant to say",
"line_index": 1,
"line_started_at_seconds": 20.41,
"next_line": "Before the city wakes",
"next_line_at_seconds": 29.6,
"position_seconds": 25.0,
"position_timestamp": "00:25.00",
"previous_line": "Morning light across the river",
"seconds_until_next_line": 4.6,
"status": "on_line",
"track_name": "I Want to Live"
}Publish lyrics
Publish a lyrics record to LRCLIB's public database, which anyone may then read. No account is needed: the step earns LRCLIB's single-use publish token by solving its proof-of-work challenge, which takes a few seconds of CPU. Leaving all three lyrics inputs empty marks the track instrumental. Publishing over an existing record keeps the old revision.
Inputs
- Track title
track_nametextRequired - Title of the track being published.
- Artist name
artist_nametextRequired - Name of the artist.
- Album name
album_nametextRequired - Name of the album. LRCLIB requires it here.
- Duration (seconds)
durationnumberRequired - Track length in seconds (1 to 3600). This is what future lookups match against, so it should be the length of the recording being published. mm:ss is accepted.From 1 to 3600.
- Plain lyrics
plain_lyricstext - The words, untimed, one line per line.
- Synced lyrics
synced_lyricstext - The words in LRC format, each line prefixed with its timestamp, e.g. [00:17.12] Morning light.
- Lyricsfile (YAML)
lyricsfiletext - A raw Lyricsfile YAML document. Stored as-is and takes precedence: the plain and synced inputs are ignored when this is filled in.
Outputs
album_nametextartist_nametextchallenge_attemptsnumberdurationnumberduration_labeltextignored_fieldslistinstrumentaltrue/falsepublishedtrue/falsetrack_nametext
Example output
{
"album_name": "Baldur's Gate 3 (Original Game Soundtrack)",
"artist_name": "Borislav Slavov",
"challenge_attempts": 16951204,
"duration": 233,
"duration_label": "3:53",
"ignored_fields": [],
"instrumental": false,
"published": true,
"track_name": "I Want to Live"
}Search for lyrics
Search LRCLIB's catalog, either with a keyword query across every field or by track title, artist and album. Returns up to 20 matches with their IDs, durations, and whether each has plain or synchronized lyrics; the lyrics themselves are left out unless asked for, so a search stays a manageable size.
Inputs
- Search keywords
qtext - Keywords matched against the track title, artist and album at once. When given, LRCLIB ignores the three field inputs below. Either this or a track title is required.
- Track title
track_nametext - Match against the track's title. Required unless search keywords are given.
- Artist name
artist_nametext - Narrow the search to an artist. Only used alongside a track title, not alongside keywords.
- Album name
album_nametext - Narrow the search to an album. Only used alongside a track title, not alongside keywords.
- Number of results
limitnumber - How many matches to return (1 to 20). LRCLIB caps a search at 20 and offers no pagination, so 20 is both the default and the ceiling.From 1 to 20.
- Include the lyrics
include_lyricstrue/false - Return each match's plain, synchronized and Lyricsfile bodies too. Off by default: twenty full sets of lyrics is a lot to carry through a workflow when the next step only needs one of them.Default:
false. - Show in the run
output_detailtext - How much to print into the run output for a person to read. 'The lyrics in full' prints every line; 'A summary line and the opening' prints the first few. This only changes what is displayed, never what is saved: a later step reads the same record either way. Defaults to the opening few lines, since a step can bring back many tracks at once.One of:
full(The lyrics in full),summary(A summary line and the opening). Default:summary.
Outputs
ignored_fieldslistoutput_detailtextquerytextresult_countnumberresultslistsearched_bytexttotal_matchesnumbertruncatedtrue/false
Example output
{
"ignored_fields": [],
"output_detail": "summary",
"query": "i want to live borislav",
"result_count": 1,
"results": [
{
"album_name": "Baldur's Gate 3 (Original Game Soundtrack)",
"artist_name": "Borislav Slavov",
"duration": 233,
"duration_label": "3:53",
"has_plain_lyrics": true,
"has_synced_lyrics": true,
"has_word_sync": false,
"id": 3396226,
"instrumental": false,
"lyricsfile": null,
"plain_lyrics": null,
"synced_lyrics": null,
"track_name": "I Want to Live"
}
],
"searched_by": "keywords",
"total_matches": 1,
"truncated": false
}