Announcements

Having trouble seeing your Wrapped stories? To fix this, update the Spotify app to the latest version.

Find more info on our community FAQ.

Search via UPC not working

Search via UPC not working

My Question or Issue:

I am doing some discovery on your 'https://developer.spotify.com/console/get-search-item/' endpoint and am having issues when searching via 'upc'.

 

I've tried several variations of the following with no luck

https://api.spotify.com/v1/search?query=upc%3A607396522910%2Balbum%3Aloner%2Bartist%3Acaroline+rose&type=album

Does search not support just 'upc' like below?

https://api.spotify.com/v1/search?query=upc%3A607396522910&type=album

 

Thank you

Reply
1 Reply

Hey WerHaus,

 

Web API search allows you to use the upc filter while searching for albums. There are several reasons why your filter by upc might be unsuccessful:

  1. the album you are searching for is only available in specific markets and unavailable in the rest of the world. In that case, changing the markets specified in your search might help. For example, will yield no results for
    market=KE
    , but gives you data for
    market=ZA
     or
    market=US
  2. (relevant for your question) Albums have different UPC codes for physical records and digital records. In the example you gave, I believe the UPC code 607396522910 is specific for Caroline Rose's Loner Vinyl (LP) album, and that's why it yields no results. 

Suggested posts