Tim Perry
Tim Perry

Reputation: 13216

How to get lyrics from the Deezer API?

Is it possible to get lyric info for a track from the Deezer api?

I'm looking for time-tagged data for a karaoke app. The deezer site itself clearly has this available and makes use of it to show karaoke-style lyrics, so the data and access exist, but it's not described anywhere in the api documentation.

Upvotes: 1

Views: 3819

Answers (2)

Chezzer
Chezzer

Reputation: 41

They actually do have an API, but it's hidden. You will need a basic understanding of searching Deezer first (which is easy as hell), once you can search for a song and get the ID from that search, use

https://www.deezer.com/ajax/gw-light.php?method=song.getLyrics&api_version=1.0&api_token=[api-token]&sng_id=[song-id]

To get your API key, you can use inspect element on deezer.com. Open Inspect > Network > reload the page > click on (most likely) the second entry > scroll down to "Query String Parameters" > copy api_token and use that in the link above.

The docs for the Deezer search API can also be found here.

Upvotes: 4

Fred_Dzr
Fred_Dzr

Reputation: 950

Unfortunately, the lyrics are not available on our REST API.

Upvotes: 3

Related Questions