Cant get Shows/Episodes
niveKKumar opened this issue ยท 1 comments
niveKKumar commented
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 ?!
alexhito commented
@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)