Announcements

Help Wizard

Step 1

NEXT STEP

Who Me Too'd this topic

Empty available markets if item not available in the token's country

I have an app that uses the track endpoint and I noticed this strange bug
My token is in the United States, for reference.

When testing the track endpoint, I tried a track with the ID of 1gx8hCtGJtMfUz8TR1lGlT, which is a track I know is available in the UK at the very least (because I've had people confirm) but is not available in the US

the available_markets field returned an empty array at the track endpoint

 

It could also be defaulting the the US like your search endpoint does (which, by the way, you really should make the search all regions to avoid the API spam that's already been coded into some wrapper libs due to this policy, but that's been suggested and denied on this forum and not the main topic of this post), but because I don't have a non-US token, I can't test that

I also haven't tested the album endpoint because I haven't bothered to find an album where every single track is unavailable in the US, but it's likely that's broken too

 

All I know is, if a track isn't available in the US, the available_markets field is empty at the track endpoint despite being available in some markets

Please fix this, thank you!

Who Me Too'd this topic