spotify-web-api-node icon indicating copy to clipboard operation
spotify-web-api-node copied to clipboard

Cant get Shows/Episodes

Open niveKKumar opened this issue 3 years ago • 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 avatar Jan 24 '22 12:01 niveKKumar

@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)

alexhito avatar Jun 25 '22 01:06 alexhito