-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Follow up on this closed issue on an older (but archived) official Spotify repository spotify/web-api#148
I'm using the Credentials Flow for fetching tracks of a specific artist. Although unfortunately most preview urls (e.g. Drake, Tame Impale, 2pac, etc etc.) are empty, making my application not able to use this.
As the linked issue stated, there is a workaround fetching the embed URL and scraping the preview url from that page. But as [ the issue mentione(https://github.com/spotify/web-api/issues/148#issuecomment-628197023) as well: "Not a fan of these kinds of workarounds but I genuinely have no idea why Spotify would make an otherwise-public information available through Authorization Code but not Client Credentials"
So it seems like the Authorization Code flow does include preview URLs, but the Client Credentials does not include those URLs. The documentation does state that it can be null, but it doesn't say why it is only null for the Client Credentials flow. There where also comments about the availableMarkets, but changing the GET parameter for market=NL or US/SE doesn't change anything in the results either.
Why is this happening? And how to potentially fix it? Or is there no other solution than scraping the embed page for the preview url? Which really is a nasty workaround for something that is build-in, but doesn't work as expected for one particular flow.