Alexa Remote icon

Alexa Remote

Interact with Amazon Alexa API

Interaction → Play Music

AI-generated

Summary

Initiates playback of a music search query on a specified Alexa device using a configured streaming provider.

Inputs

  • device (required) — Target Alexa device. Choose from the dropdown or specify the serial number using an expression.
  • musicProvider — Music streaming provider (Amazon Music, Spotify, TuneIn, or Cloud Player). Defaults to Amazon Music.
  • searchQuery — Search phrase to locate the music to play.
  • duration — Maximum duration to play the music in seconds. Set to 0 (default) for unlimited playback.

Output shape

A success indicator object (e.g., { success: true })

The operation triggers playback immediately; it does not return the list of matching tracks.

Examples

Example 1: Play a specific song on an Echo Dot using Spotify

Music Provider: Spotify, Search Query: 'Bohemian Rhapsody', Duration: 0

Example 2: Play music for 5 minutes on an Echo Show

Music Provider: Amazon Music, Search Query: 'lofi beats', Duration: 300

Links

Discussion