Help Wizard

Step 1

NEXT STEP

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
3 Replies

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. 

I'm having an issue with search by UPC right now. I get different results from the web console vs my code.

I'm trying to find the album link for UPC "4524135156358" & market JP.

When using the web API interface I get one result which is the expected behavior.

 


When using a query to the API from my code, I get 0 result: 






 

 

I'm in the same situation Anemo

Suggested posts