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 Preview URL's missing from the API

Why are so many Preview URL's missing from the API

Working with the Spotify Web API I have realized so many songs are missing their preview URL's when requested with the API. But if you were to share this song via text message through the Spotify App all songs have a preview URL. It's not just random songs either it's super popular song previews that API is missing.

Reply
4 Replies

Hey there, thanks for joining the conversation here.

 

There's many reasons why a preview URL might be missing from the API response. This can be due to market restrictions or due to specific account settings (for example: explicit content limitations) and other reasons. Let me know if you need more help with this.

 

Have a great day, happy coding,

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.

How do we solve this?

Same here. I have specified `market=US` in my query, and several preview urls are null that I know I can play in Spotify. 

`https://api.spotify.com/v1/users/${userId}/playlists?limit=50&offset=${offset}&market=US`

Is an authorization process with `
grant_type: 'client_credentials'` not good enough?

Also, `is_playable` returns `true` on the tracks that return `null` whatever that's worth.

Suggested posts

Type a product name