0

There is a solution to fetch a single track by querying the Spotify search API with ISRC.

But, I didn't find any way to fetch multiple tracks for the same.

I tried these ways but nothing worked:

Comma-separated: https://api.spotify.com/v1/search?type=track&q=isrc:USEE10001993,USEE10001994

Plus-separated: https://api.spotify.com/v1/search?type=track&q=isrc:USEE10001993+USEE10001994

Is there any way to achieve this?

Saru
  • 863
  • 1
  • 15
  • 23
  • can you show some code you are using? – 8-Bit Borges Jun 19 '18 at 02:58
  • Sorry, I'm not getting your question here. What code you're referring to here? It's purely a REST API call looking for a song matching the given ISRC in the query params? – Saru Jun 20 '18 at 07:52
  • I have no knowledge of how to make multiple calls with the syntax above. using a requests library and use a for loop should be a no brainer. – 8-Bit Borges Jun 21 '18 at 03:34
  • The question here is just because to avoid the for loop, as it isn't a convenient/reliable/scalable solution. – Saru Jun 28 '18 at 14:21
  • the way I see it, your solution does not seem convenient neither scalable, and not the other way around. it makes no sense to use multiple calls using your method. – 8-Bit Borges Jul 07 '18 at 20:41
  • It totally depends upon the requirements of the product you're building, could not be bluntly ignored. Still, don't agree? ; FYI: Apple Music API's does provide this feature. Apple developers are not fools to provide this. – Saru Jul 07 '18 at 21:14
  • but this is Spotify API, not Apple Music API. and Spotify has a much more powerful API than Apple, apparently without this feature. How would you scale this request to, say, a hundred id requests, in one line? I don't see the point. – 8-Bit Borges Jul 07 '18 at 22:18
  • Before making any comments, please refer the API's & then talk on it, dude. No offense here. – Saru Jul 08 '18 at 05:31
  • well...before developing a product, you should do the same. no offense either. – 8-Bit Borges Jul 08 '18 at 17:56
  • Thanks for your advice, buddy. Have a good one! – Saru Jul 09 '18 at 16:35

1 Answers1

4

This request work fine for me: https://api.spotify.com/v1/search?type=track&q=isrc:USWB11802164+OR+isrc:DEMA61301103

Vitaly
  • 56
  • 4
  • Fantastic man! This is the one I was expecting. Is this documented somewhere? If so, can you please put that link here for reference? Thank you! – Saru Nov 03 '18 at 07:59
  • 1
    It just a combination "Field filters" and "search query operators".Documentation is here: https://developer.spotify.com/documentation/web-api/reference/search/search/ – Vitaly Nov 06 '18 at 09:20
  • Does this method still work? For some reason I can't get it to output any songs when using the OR operator – CentrumGuy Sep 24 '19 at 16:42
  • Unfortunately, but this method does not work at this time. You can search ISCR code one by one only (not multiple). – Vitaly Sep 25 '19 at 17:35