Music

This API provides deep and powerful tools for searching lyrics, artists or albums. Unlike other APIs it can also search by lyrics and does not need separate artist and song name entries.

Get Lyrics for a song

ksoft.lyrics.get(song, options);

Parameter

Type

song

String

options.textOnly

Boolean

Success: Returns Track

Not Found: Throws Error

Search lyrics

ksoft.lyrics.search(query, options);

Parameter

Type

query

String

options.limit

Number

options.textOnly

Boolean

Success: Returns Array<Track>

Not Found: Throws Error

Get Artist/Track/Album by ID

ksoft.music.artist(id);
ksoft.music.track(id);
ksoft.music.album(id);

Parameter

Type

id

String

Success: Returns Artist/Track/Album

Not Found: Throws Error

Get Music Recommendations (paid)

ksoft.music.recommendations(provider, tracks, token, options);

Parameter

Type

provider

String: 'spotify' | 'youtube' | 'youtube_ids' | 'youtube_titles'

tracks

Array<String> (track IDs or titles depending on provider)

token

String (YouTube API token)

options.limit

Number

Success: Returns Array<Suggestion>

Last updated