lrclib.net is open-source and has a free API to get music lyrics from it. It powers lrcget which is great for local music files, but not for music streamed online on apps like spotify AFAIK.
From lrclib's API documentation site,
Welcome to the beta API documentation and specification of the LRCLIB's API! Although we intend to maintain backward compatibility, please be aware that there may be breaking changes in future updates. Since this document is still in its early stages, it may lack information or contain inaccuracies in certain sections.
This API has no rate limiting in place and is openly accessible to all users and applications. There is no need for an API key or any kind of registering!
While this is not mandatory, if you are developing an application to interact with LRCLIB, we encourage you to include the User-Agent header in your requests, specifying your application's name, version, and a link to its homepage or project page. For example: LRCGET v0.2.0 (https://github.com/tranxuanthang/lrcget).
PS: I think for users intending to host their own instances of lrclib, the project offers a ~19GB dump of sqlite3 database containing lyrics.
lrclib.net is open-source and has a free API to get music lyrics from it. It powers lrcget which is great for local music files, but not for music streamed online on apps like spotify AFAIK.
From lrclib's API documentation site,
PS: I think for users intending to host their own instances of lrclib, the project offers a
~19GBdump of sqlite3 database containing lyrics.