Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Track Audio Features returning empty array

Track Audio Features returning empty array

Plan

Free/Premium

Country

 

Device

Windows 10 PC

 

When trying to access the audio features of a track, the request just returns the following data:

{
"audio_features" : [ ]
}

 

I have tried this for multiple, popular songs, and wondered if anyone had similar problems? I have attached the code below for reference, and the song ID used is Ed Sheeran's 'Shape of You'.

 

Reply
1 Reply

If you want to get a single track's audio features, use the "Get Track's Audio Features" endpoint. In this case, the track id is specified in the url path, e.g. GET /audio-features/<track id>

 

If you want to get multiple tracks' audio features, use the "Get Tracks' Audio Features" endpoint. In this case, the track ids are specified in the "ids" parameter as a comma-separated list in the query string: GET /audio-features?ids=<trackid comma-separated list>. Note the use of "ids" not "id".

Suggested posts