Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Podcast API doesn't have basic functionality

Solved!

Podcast API doesn't have basic functionality

 

Plan

Premium

 

My Question or Issue

Hi

 

Could someone please explain to me how to get this endpoint:

https://api.spotify.com/v1/me/player/play

to play a specific episode of a podcast.

When sending a request like this:

 

 

 

curl -X "PUT" "https://api.spotify.com/v1/me/player/play" --data "{\"context_uri\":\"spotify:episode:3NPzARi19N2fcfH5ZJvTxz\",\"offset\":{\"position\":5},\"position_ms\":0}" -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer Token"

 

 

 

I get the following error:

 

 

 

{
  "error": {
    "status": 400,
    "message": "Non supported context uri"
  }
}

 

 

 

I have found other tickets around this where support just stopped replying. Please help me understand.

Reply

Accepted Solutions
Marked as solution

The Player API (not the Podcast API) does allow you to play a specific podcast episode. You're just using this endpoint incorrectly. The "uris" parameter is used to specify the track(s)/episode(s) to play. The "context_uri" parameter is used to specify the context in which to play the track(s)/episode(s). For example, the "context_uri" could be an album URI.

View solution in original post

Marked as solution

The old API documentation explains in better detail how this endpoint works. Read it carefully:

 

https://web.archive.org/web/20191026192215/https://developer.spotify.com/documentation/web-api/refer...

View solution in original post

4 Replies

I found a way around this by first adding the episode to the device's queue and then skipping to the next item. But this should really be fixed because the API isn't acting as expected.

Marked as solution

The Player API (not the Podcast API) does allow you to play a specific podcast episode. You're just using this endpoint incorrectly. The "uris" parameter is used to specify the track(s)/episode(s) to play. The "context_uri" parameter is used to specify the context in which to play the track(s)/episode(s). For example, the "context_uri" could be an album URI.

Marked as solution

The old API documentation explains in better detail how this endpoint works. Read it carefully:

 

https://web.archive.org/web/20191026192215/https://developer.spotify.com/documentation/web-api/refer...

Ah, thans for the answer, that makes sense! Will try it out this afternoon!

Suggested posts