spotifyr icon indicating copy to clipboard operation
spotifyr copied to clipboard

get_track_audio_features that takes artist name & title

Open JosiahParry opened this issue 5 years ago • 4 comments

Hey Charlie,

I came across a scenario this week where I wanted to be able to query a single track's audio features based on artist name and track title. I implemented a local function to do this. I'm wondering if this is a feature that could be added to spotifyr. Perhaps this use case is too narrow.

The specific example was querying billboard top charts tracks and retrieving audio features and lyrics based solely on the track title and artist name.

https://gist.github.com/JosiahParry/f5e8384dd9e8f8903640bb7ae319807c

JosiahParry avatar Jun 24 '19 16:06 JosiahParry

@JosiahParry this is a great idea - I've been meaning to add this into the existing get_track_audio_features function, so that it could take either a list of ids or artist/track name

charlie86 avatar Aug 12 '19 11:08 charlie86

I'd definitely support this. It could lower the barrier to entry of the API a bit. Navigating all of the different IDs can be a bit troublesome I think

JosiahParry avatar Aug 13 '19 14:08 JosiahParry

Is it possible to use this for a list of track names/artists?

drew-walkerr avatar Oct 05 '19 21:10 drew-walkerr

@drew-walkerr absolutely. See the example in mirr

JosiahParry avatar Oct 05 '19 21:10 JosiahParry