mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[GH-ISSUE #517] Unable to search podcast data #310
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#310
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ianm199 on GitHub (Jun 23, 2020).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/517
I'm trying to get podcast data and it doesn't seem to work from API.
Example code:
client_credentials_manager = SpotifyClientCredentials(client_id=cid, client_secret=secret)
Both of these queries return nothing, when it says on their site that this is supported.
https://developer.spotify.com/documentation/web-api/reference/search/search/
https://developer.spotify.com/community/news/2020/03/20/introducing-podcasts-api/
Am I missing something? I am able to get artists/tracks/etc without an issue.
@th4t-gi commented on GitHub (Jul 17, 2020):
Hi, I'm not sure if this is apart of the same bug because you are using queries where as I'm just using the
.show()and.episode()methods but on every id that i pass it returns a 404 error. I can also get song data without a problem, but podcasts that seem to be the issue.@stephanebruckert commented on GitHub (Aug 29, 2020):
I'm not sure either if this is related to https://github.com/plamere/spotipy/issues/552#issuecomment-669990755, but it works when specifying a market:
Apparently the current user country is not inferred the same way whether we request shows or tracks, which looks like a bug/inconsistency on Spotify side to me.
This works:
but this doesn't:
Hope this helps
@Peter-Schorn commented on GitHub (Oct 15, 2020):
@stephanebruckert This is actually not a bug. I missed this initially as well, but if you read the documentation carefully for endpoints that return shows and episodes, such as the /episodes/{id} endpoint, it says:
A user access token is one that was granted while using the Authorization Code Flow or the Authorization Code Flow with Proof Key for Code Exchange (and probably the implicit grant flow as well, although I've never used this).
This means that if you are using the Client Credentials Flow, you must provide a value for the market parameter. This applies for all endpoints that return shows or episodes, including the the search endpoint and the playlist endpoints, because playlists can contain episodes.
@stephanebruckert commented on GitHub (Oct 15, 2020):
This makes sense, I'm going to close this as solved then. Thanks @Peter-Schorn