Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Why are so many tracks preview URL's set to nil?

Why are so many tracks preview URL's set to nil?

I'm using a get request to get a random track from the entire Spotify library and display its name, the artist's name, cover art and play the previewURL. Why do so many of these random songs (most of them are pretty popular ones) do not have a previewURL? But if you take the same song that says the previewURL is nil and share it with a friend through iMessage via Spotify it has a preview URL?

Reply
5 Replies

Hey there, help's here!

Hmm, could you try specifying a market parameter in your request? Does the same thing happen? Let me know how you get on!

Have a good one,
Hubo
HuboSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

Hey sorry for the late response. I tried with specifying US as the market and got the same issues. Any other advice?

Please continue this i am having the same issue with no luck, it seems many popular artists songs who for sure have previews of their tracks (as seen by viewing via the app) cant be accessed via an api call, did we ever find a fix to this??

I used the API test on the API documentation page and it worked. I also saw that Tinder also used the search interface and it also returned results normally. I really don't know how to deal with this.

Hi everyone,

 

I was able to replicate the issue, but only when using Client Credentials. When I switch to user authorization, I receive a preview URL.

 

In short: a user must be logged in to access or provide track previews.

 

Hope this helps!

XimzendRising Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

Suggested posts