thelinmichael/spotify-web-api-node

Cant get Shows/Episodes

niveKKumar opened this issue ยท 1 comments

I want to use the spotify api to retrieve podcasts
Using
const test = await spotifyApi.search("Huberman", ["show"]);
console.log(๐Ÿš€ ~ test, test.body.shows.items);

or

const test = await spotifyApi.searchShows("Huberman");

Seems to find results but the items are all null ?!

@niveKKumar i found the error, apparently the "market" should be included in the query and you will receive the correct answer, but apparently this library does not support adding that parameter to the query.

I solved the issue, here is an example how i solved this:

const payload = {
limit: 10,
offset: 0,
market: 'US',
}

SpotifyApi.searchShows(query, payload)