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

No popularity field on Album search

No popularity field on Album search

I am hitting this endpoint: https://api.spotify.com/v1/search?q=Beatles&type=album,artist,track

I am expecting the response to contain albums, tracks, and artists that are found given the specified query. From that response, I am gathering a list of results that contains the ID, Name, and Type fields (fields that are present across albums, tracks, and artists). After this, I decided to incorporate the popularity field to sort the list based on popularity. 

 

After adding the field on the pojo and modifying my deserializer to accept it, I was getting an NPE. I found the problem to be that the popularity field is not coming through when performing an album search. Is there a reason this field is omitted from the albums search result object?

 

I have attached photos of the response objects received by the search endpoint. I minimized most fields for clarity; I simply want to show that the artists & tracks models include the popularity field while the albums model does not. 

 

NOTE: I skimmed through at least 5 items within each model and noticed the popularity field on all items within artists & tracks, and no popularity field on any items within albums. I wanted to note this because I thought that maybe some items would include it and some items wouldn't, but it seems to be pretty consistent.

albums_artists_models.png
tracks_model.png
Reply
1 Reply

I'm also missing this feature.

Suggested posts