What are the correct Spotify media_content_id format for different media_content_type?

I’m kind of embarrass to ask this. But until today I still don’t know what are the correct format I should put in for Spotify’s media_content_id for different media_content_type. All I can find in the documentation is sample for playlist. What about format for a track, album or artist?

The content type are from the media_player itself not specific to spotify. Look at the documentation for media player and you will find

@jhbcabral @masterkenobi
FYI - Here’s what I use with my SpotifyPlus integration ; should work for regular Spotify integration as well.

Examples can also be found on the Github Project wiki Documentation.

  • Album
service: media_player.play_media
data:
  entity_id: media_player.spotifyplus_john_s
  media_content_type: album
  media_content_id: spotify:album:0LhYYU14RU6IPQ9vVMu3Yk
  • Artist
service: media_player.play_media
data:
  entity_id: media_player.spotifyplus_john_s
  media_content_type: artist
  media_content_id: spotify:artist:6kFLnclYFc3gzpNt13wim5
  • Playlist
service: media_player.play_media
data:
  entity_id: media_player.spotifyplus_john_s
  media_content_type: playlist
  media_content_id: spotify:playlist:5v5ETK9WFXAnGQ3MRubKuE
  • Track
service: media_player.play_media
data:
  entity_id: media_player.spotifyplus_john_s
  media_content_type: track
  media_content_id: spotify:track:6zd8T1PBe9JFHmuVnurdRp
  • Show (aka. Podcast)
service: media_player.play_media
data:
  entity_id: media_player.spotifyplus_john_s
  media_content_type: show
  media_content_id: spotify:show:6kAsbP8pxwaU2kPibKTuHE
  • Episode (aka. Podcast Episode)
service: media_player.play_media
data:
  entity_id: media_player.spotifyplus_john_s
  media_content_type: episode
  media_content_id: spotify:episode:5h12bQsaYWkWP1ZBm05x6k

Hope it helps!

More Information Links