Help Wizard

Step 1

NEXT STEP

API shows duplicate albums

Solved!

API shows duplicate albums

Plan

Premium

Country

Mexico

Device

Linux computer running pop os

Operating System

Linux computer running pop os

 

My Question or Issue

Some artists show duplicate albums when queried through the API. 

Endpoint: 

https://api.spotify.com/v1/artists/{id}/albums

 Sample request Request: 

https://artists/6Wr3hh341P84m3EI8qdn9O/albums?include_groups=album&market=ES&limit=50&offset=0
Duplicated albums are shown here
Screenshot from 2021-06-25 00-29-16.png
Funny thing is: The web app does not show these duplicates
Reply

Accepted Solutions
Marked as solution

Did you read the documentation? The documentation for the market parameter clearly says:

"If not given, results will be returned for all markets and you are likely to get duplicate results per album, one for each market in which the album is available!"

View solution in original post

5 Replies

The total_duration_in_minutes is not the same so I think there are some differences. Are the album ids the same? And the album types?

Marked as solution

Did you read the documentation? The documentation for the market parameter clearly says:

"If not given, results will be returned for all markets and you are likely to get duplicate results per album, one for each market in which the album is available!"

I've got the same issue specifing market as US. The example I just ran into is Bring me the horizon, API shows multiple duplicated albums for US 

same problem for TR

Same error, try this url and see that you will get a duplicated track:

'https://api.spotify.com/v1/search?q=Con+te&type=artist%2Cplaylist%2Ctrack&market=IT&limit=16&offset=0'

 

Suggested posts