Marantz AV7703 HEOS_CLI_PROTOCOL_Specification_290616

Marantz AV7703 Manual

Marantz AV7703 manual content summary:

  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 1
    HEOS CLI Protocol Specification 1. Overview 1.1 Supported music services 2. Connection 2.1 Controller Design Guidelines 2.1.1 Driver 4.4.8 Play Preset Station 4.4.9 Play Input source Limitations for the system when used multi devices. 4.4.10 Add Container to Queue with Options 4.4.11 Add Track
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 2
    Initial release. 1.1 1.304.61 Add set service option command. 1.2 1.310.170 Remove support for play url. Special characters ('&,'=', and '%') amp; Solutions Remove support for Rdio as it is gone Support 'Add to HEOS Favorites' on station browse Add limitations while using inputs Add AVR inputs
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 3
    services use a RESTFUL like approach while other commands and responses are more static. 1.1 Supported music services Supported online music services system. The HEOS product IP address can also be set statically and manually programmed into the control system. Search target name (ST) in M-SEARCH
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 4
    is to avoid accidentally using HEOS command arguments for special purpose. Maximum number of simultaneous socket connections supported by HEOS speaker is 32. Service specific transport control options are as follows: Services Type Supported Transport Controls by CLI Supported Transport Controls in
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 5
    Stop song NA *Depending on playing service NA NA Play, Pause, PlayNext, PlayPrevious *Depending on playing service Play, Pause, PlayNext, PlayPrevious Play '%26(&)', '%3D(=)', and '%25(%)'. Most of the time, controllers use the same string that is received in previous command response. For example,
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 6
    JSON command response delimiter is "\r\n". Note: Special characters '&', '=', and '%' in the JSON response fields are encoded to '%26(&)', '%3D(=)', and '%25(%)'. 4. Command and Response Details 4.1 System Commands 4.1.1 Register for Change Events By default HEOS speaker does not send Change
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 7
    { "command": "system/heart_beat ", "result": "success" "message": "" } } Example: heos://system/heart_beat 4.1.6 HEOS Speaker Reboot Using this command controllers can reboot HEOS device. This command can only be used to reboot the HEOS device to which the controller is connected through CLI port
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 8
    4.2 Player Commands 4.2.1 Get Players Command: heos://player/get_players Attribute Description Enumeration pid Player id N/A gid pid of the Group leader N/A network Network connection type wired wifi lineout LineOut level type 1 - variable 2 - Fixed control Only valid when lintout
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 9
    ] } Example: heos://player/get_players 4.2.2 Get Player Info Command: heos://player/get_player_info?pid=player_id Attribute Description Enumeration pid Player id returned by 'get_players' or 'get_groups' command N/A gid pid of the Group leader N/A network Network connection type wired wifi
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 10
    ) Description Player id returned by 'get_players' or 'get_groups' command Options available for now playing media Enumeration N/A Following options are currently supported for now playing media 11 - Thumbs Up (Pandora) 12 - Thumbs Down (Pandora) 19 - Add station to HEOS Favorites Response: The
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 11
    The following response provides example when the speaker is playing a station. { "heos": { "command": "player/get_now_playing_media", "result": "success", "message": "pid='player_id'" }, "payload": { "type" : "'station'", "song": "'song name'", "station": "'station name'", "album": "'album name'", "
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 12
    "command": " player/ set_volume ", "result": "success", "message": "pid='player_id'&level='vol_level'" } } Example: heos://player/set_volume?pid=2&level=30 4.2.8 Volume Up Command: heos://player/volume_up?pid=player_id&step=step_level Attribute Description Enumeration pid Player id returned by
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 13
    "result": "success", "message": "pid='player_id'&state='on_or_off'" } } Example: heos://player/get_mute?pid=1 4.2.11 Set Mute Command: heos://player/set_mute?pid=player_id&state=on_or_off Attribute Description Enumeration pid Player id returned by 'get_players' or 'get_groups' command N/A
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 14
    "message": "pid='player_id'&&repeat=on_all_or_on_one_or_off&shuffle=on_or_off" } } Example: hoes://player/get_play_mode?pid=1 4.2.14 Set Play Mode Command: heos://player/set_play_mode?pid='player_id'&repeat=on_all_or_on_one_or_off&shuffle=on_or_off Attribute Description Enumeration pid Player
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 15
    "qid": "'queue id 2'", "mid": "'media id 2'" "album_id": "AlbumId 2'" }, . . . { "song": "'song name N'", "album": "'album name N'", "artist": "'artist name N'", " image_url": "''image_url N'", "qid": "'queue id N'", "mid": "'media id N'" "album_id": "AlbumId N'" } ] } Example: heos://player/
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 16
    4.2.18 Save Queue as Playlist Command: heos://player/save_queue?pid=player_id&name=playlist_name Attribute Description Enumeration pid Player id returned by 'get_players' or 'get_groups' command N/A name String for new playlist name limited to 128 unicode characters N/A Response: { "heos": {
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 17
    Attribute Description Enumeration pid Player id returned by 'get_players' or 'get_groups' command N/A Response: { "heos": { } } "command": " player/play_previous", "result": "success", "message": "pid=player_id" Example: heos://player/play_previous?pid=1 4.3 Group Commands 4.3.1 Get Groups
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 18
    . { "name": "player name N", "pid": "'player id N'", "role": "player role N (leader or member name": "'group name N'", "gid": "group id N'", "players": [ { "name": "player name 1", "pid": "'player id 1'", "role": "player role 1 (leader or member)'" }, { "name": "player name 2", "pid": "'player id
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 19
    "player name N", "pid": "'player id N'", "role": "player role N (leader or member)'" } ] } } Example: heos://group/get_group_info&?gid=1 4.3.3 Set Group This command is used to perform the following actions: Create new group: Creates new group. First player id in the list is group leader. Ex: heos
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 20
    Attribute Description Enumeration gid Group id returned by 'get_groups' command N/A Response: { "heos": { "command": "group/get_volume ", "result": "success", "message": "gid='group_id'&level='vol_level'" } } Example: heos://group/get_volume?gid=1 4.3.5 Set Group Volume Command: heos://group/
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 21
    Attribute Description Enumeration gid Group id returned by 'get_groups' command N/A level Group volume step level 1 to 10(default 5) Response: { "heos": { "command": " group/ volume_down ", "result": "success", "message": "gid='group_id'&step='step_level'" } } Example: heos://group/
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 22
    Attribute Description Enumeration gid Group id returned by 'get_groups' command N/A Response: { "heos": { "command": "group/ toggle_mute ", "result": "success", "message": "gid=group_id" } } Example: heos://group/toggle_mute?gid=1 4.4 Browse Commands 4.4.1 Get Music Sources Command: heos://
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 23
    Options available for current browse level (options) scid criteria for creating new station Enumeration N/A Following options are currently supported for 'Browse Source' command 13 - Create New Station (Pandora, iHeartRadio) 20 - Remove from HEOS Favorites (Favorites) Possibilities: 1 - Artist
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 24
    per response. The default maximum number of records depend on the service type. range starts from 0 NOTE: Range in Browse source command is only supported while browsing Favorites This command is used under two scenarios. Browsing actual media sources of type 'heos_server' and 'heos_service
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 25
    ", "type": "station", "name": "'station name'", "image_url": "'station url'", "mid": "'media id'" } ] } Example: heos://browse/browse?sid=1346442495 Supported Sources: Local Media Servers, Playlists, History, Aux-In, Favorites, TuneIn, Pandora, Rhapsody, Deezer, SiriusXM, iHeartRadio, Napster, Tidal
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 26
    per response. The default maximum number of records depend on the service type. count Total number of items available in the container. NOTE "container" field as well as the "playable" field implies that the container supports adding all media items to the play queue. Adding all media items of
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 27
    by 'get_music_sources' command N/A playable Indicates if Play-All option is supported on searched tracks. yes or no cid Prefix to search string used while adding entire search results to play queue Currently supported prefix: Only valid when 'playable' is 'yes'. SEARCHED_TRACKS- Example
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 28
    128 unicode characters and may contain '*' for wildcard if supported by search criteria id scid Search criteria id returned 100 records per response. The default maximum number of records depend on the service type. returned Number of items returned in current response Enumeration N/A N/A artist
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 29
    media id'" } ] } Example: heos://browse/search?sid=2&search="U2"&scid=1 Supported Sources: Local Media Servers, TuneIn, Rhapsody, Deezer, Napster, Tidal, SoundCloud by 'get_music_sources' command N/A cid Container id that is used to browse current container. Ignore if container id doesn't exists
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 30
    ='container_id'&mid='media_id'&name='station_name'" } } Example: heos://browse/play_stream?pid=1&sid=2&cid='CID-55'&mid=15376&name=Q95 Supported Sources: History, Favorites, TuneIn, Pandora, Rhapsody, Deezer, SiriusXM, iHeartRadio, Napster, Tidal, SoundCloud, Amazon Music 4.4.8 Play Preset Station
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 31
    in stream is played. { "heos": { "command": "browse/play_input", "result": "success", "message": "pid=player_id&input=input_name" } } Limitations for the system when used multi devices. Distribution External Input to other players is limited to one player or one group . You can not play External
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 32
    Source id returned by 'get_music_sources' command N/A cid Container id that is used to 'browse' or 'search' current container N/A mid Media id returned heos://browse/add_to_queue?pid=1&sid=8&cid=Artists/All&mid=9&aid=1 Supported Sources: Local Media Servers, Playlists, History, Rhapsody Tracks,
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 33
    use this command to retrieve album art url while browsing for tracks. Retrieve image url associated with a given album id. This command facilitates controllers to retrieve and update Currently supported media sources are Rhapsody/Napster Rhapsody/Napster album ids Note: Supported music service is
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 34
    sid Source id returned by 'get_music_sources' command id Options available on now playing screen (options) Enumeration N/A Following options are currently supported for 'Get Service options for now playing screen': 11 - Thumbs Up (Pandora) 12 - Thumbs Down (Pandora) Note: This command returns
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 35
    Example: heos://browse/get_service_options?sid=5 4.4.18 Set service option Set service option is a generic command used to select any of the supported service options provided through 'Get Service Options for now playing screen', 'Browse Sources' and 'Browse Source Containers' command response.
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 36
    Love&range=0, 10 13 - Create New Station by Shows Supported Services: iHeartRadio heos://browse/set_service_option?sid=7&option=13&name=Love&scid creating new station Note: This command returns station ids. Controllers need to use 'play station' command to play a station. Note: Range parameter is
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 37
    13 - Create New Station by Tracks Supported Services: iHeartRadio heos://browse/set_service_option?sid=7&option=13&name=Love&scid=3 name search string for creating new station through track Note: This command returns station ids. Controllers need to use 'play station' command to play a station.
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 38
    5.1 Sources Changed Response: { "heos": { "command": "event/sources_changed", } } 5.2 Players Changed Response: { "heos": { "command": "event/players_changed", } } 5.3 Group Changed Response: { "heos": { "command": "event/groups_changed", } } 5.4 Source Data Changed Response: { "heos": { "command":
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 39
    5.7 Player Now Playing Progress Response: { "heos": { "command": " event/player_now_playing_progress", "message": "pid=player_id&cur_pos=position_ms&duration=duration_ms" } } 5.8 Player Playback Error Response: { "heos": { "command": " event/player_playback_error", "message": "pid=player_id&error=
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 40
    "command": "event/repeat_mode_changed", "message": "pid='player_id'&repeat='on_all_or_on_one_or_off'" } } 5.13 Player Shuffle Mode Changed Response: { "heos": { "command": "event/shuffle_mode_changed", "message": "pid='player_id'&shuffle='on_or_off'" } } 5.14 Group Status Changed Response { "heos":
  • Marantz AV7703 | HEOS_CLI_PROTOCOL_Specification_290616 - Page 41
    Error 12 System error&syserrno=-2 Processing Previous Command 13 Processing previous command Media can't be played 14 cannot play Option no supported 15 Option not supported Too many commands in message queue to process 16 Too many commands in queue Reached skip limit 17 Reached skip limit
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41

HEOS CLI Protocol Specification
1. Overview
1.1 Supported music services
2. Connection
2.1 Controller Design Guidelines
2.1.1 Driver Initialization
2.1.2 Caveats
2.1.2.1 Compatibility
2.1.2.2 Issues & Solutions
2.1.3 Miscellaneous
3. Command and Response Overview
3.1 Commands
3.2 Responses
4. Command and Response Details
4.1 System Commands
4.1.1 Register for Change Events
4.1.2 HEOS Account Check
4.1.3 HEOS Account Sign In
4.1.4 HEOS Account Sign Out
4.1.5 HEOS System Heart Beat
4.1.6 HEOS Speaker Reboot
4.1.7 Prettify JSON response
4.2 Player Commands
4.2.1 Get Players
4.2.2 Get Player Info
4.2.3 Get Play State
4.2.4 Set Play State
4.2.5 Get Now Playing Media
4.2.6 Get Volume
4.2.7 Set Volume
4.2.8 Volume Up
4.2.9 Volume Down
4.2.10 Get Mute
4.2.11 Set Mute
4.2.12 Toggle Mute
4.2.13 Get Play Mode
4.2.14 Set Play Mode
4.2.15 Get Queue
4.2.16 Play Queue Item
4.2.17 Remove Item(s) from Queue
4.2.18 Save Queue as Playlist
4.2.19 Clear Queue
4.2.20 Play Next
4.2.21 Play Previous
4.3 Group Commands
4.3.1 Get Groups
4.3.2 Get Group Info
4.3.3 Set Group
4.3.4 Get Group Volume
4.3.5 Set Group Volume
4.2.6 Group Volume Up
4.2.7 Group Volume Down
4.3.8 Get Group Mute
4.3.9 Set Group Mute
4.3.10 Toggle Group Mute
4.4 Browse Commands
4.4.1 Get Music Sources
4.4.2 Get Source Info
4.4.3 Browse Source
4.4.4 Browse Source Containers
4.4.5 Get Source Search Criteria
4.4.6 Search
4.4.7 Play Station
4.4.8 Play Preset Station
4.4.9 Play Input source
Limitations for the system when used multi devices.
4.4.10 Add Container to Queue with Options
4.4.11 Add Track to Queue with Options
4.4.12 Get HEOS Playlists
4.4.13 Rename HEOS Playlist