Nodejs API that will use puppeteer to scrape music lyrics from Spotify for free
PS: In a recent change made by Spotify, lyrics are now only available with a premium subscription
Google Chrome,
Client id and client secret from spotify application that you can get here: https://developer.spotify.com/dashboard,
Spotify cookies from any account in json format that you can get using this extension: https://chrome.google.com/webstore/detail/nmckokihipjgplolmcmjakknndddifde
This endpoint will return lyrics from the track that you want in an array
trackid: The track id that you can get from spotify website or from searching through GET /search
GET /lyrics?trackid=2RBcYkonAofm0rYycVrCGt
This endpoint will use the official Spotify API to make a search.
query: Your search query.
type: The type of item you want to search across. Allowed values: "album", "artist", "playlist", "track", "show", "episode" and "audiobook".
limit: The maximum number of results to return in a range from 0 to 50.
market: (optional) An ISO 3166-1 alpha-2 country code. If a country code is specified, only content that is available in that market will be returned.
GET /search?query=Midnight Healing&type=track&limit=2&market=US
This endpoint will use the official Spotify API to get information from a specific song
id: The track id that you can get from spotify website or from searching through GET /search
market: (optional) An ISO 3166-1 alpha-2 country code. If a country code is specified, only content that is available in that market will be returned.
GET /track?id=2RBcYkonAofm0rYycVrCGt
This endpoint will get a new token from the official Spotify API
"secret": "Your environment secret"
POST /token
{
"secret": "*********"
}
