Kodi API
+ +All commands are for a single kodi instance unless multiple hosts are setup in the kodi-hosts.config.js file and method is set to POST.
+ +
+
+
+Playback Control
+ +GET /{action}?q={parameter}
+ +Actions
+ +Playback
+ +-
+
- playpause +
- stop +
Playback
+ +-
+
- seekforwardminutes?q={time} +
- seekforwardminutes +
- seekbackwardminutes?q={time} +
- seekbackwardminutes +
- seektominutes?q={time} +
Volume
+ +-
+
- mute +
- volumeup +
- volumedown
+ volume?q={absolute volume}
+ - volumeup?q={increment} +
- volumedown?q={increment} +
Subtitles \ Audio
+ +-
+
- setsubtitles?q={subtitles_string} +
- setsubtitlesdirect?q={subtitles_id} +
- setaudio?q={audio_string} +
- setaudiodirect?q={audio_id} +
+
+
+Media Control
+ +GET /{action}?q={parameter}&e={parameter2}&delay={delay}
+ +*delay is an optional command
+ +Actions
+ +TV
+ +-
+
- playtvshow?q={tv_show}&delay={delay} +
- playepisode?q={tv_show}&e={episode_number} +
- playrecentepisode +
- resumetvshow?q={tv_show}&delay={delay} +
- bingewatchtvshow?q={tv_show} +
- shuffleepisode?q={tv_show} +
Movies
+ +-
+
- playmovie?q={movie_name}&delay={delay} +
- playrandommovie?q={movie_name}&delay={delay} +
- resumemovie?q={movie_name}&delay={delay} +
- showMovieGenre?q={genre} +
Music
+ +-
+
- playsong?q={song_name} +
- playalbum?q={album_name} +
- playartist?q={artist_name} +
- playgenre?q={genre_name} +
- playercontrol?q={playlist_name} +
Files
+ +-
+
- playfile?q={path/to/file}&delay={delay} +
Now Playing
+ +-
+
- displayinfo +
+
+
+TV Control
+ +GET /{action}?q={parameter}
+ +Actions
+ +PVR
+ +-
+
- channelup +
- channeldown +
- playpvrchannelbyname?q={channel_name} +
- playpvrchannelbynumber?q={channel_number} +
TV
+ +-
+
- activatetv +
- standbytv +
+
+
+Addon & Favorite Control
+ +GET /executeaddon?q={addon_name}
+ +GET /playyoutube?q={youtube_title}
+ +GET /playfavourite?q={favourite_name}
+
+
+
+System Control
+ +GET /{action}?q={parameter}
+ +Actions
+ +Navigation
+ +-
+
- navup?q={number} +
- navup +
- navdown?q={number} +
- navdown +
- navleft?q={number} +
- navleft +
- navright?q={number} +
- navright +
- navback?q={number} +
- navback +
- navselect +
- navcontextmenu +
- navhome +
Power
+ +-
+
- shutdown +
- hibernate +
- reboot +
- suspend +
Misc
+ +-
+
- cleanlibrary +
- scanlibrary +
- showWindow?q={window} +
- togglefullscreen +
- togglePartymode +
- loadProfile +
+
+
+
+Multi-User Control
+ +POST /{action}?q={parameter}
+ +Headers
+ +-
+
"Content-Type":"application/json"
+
Body
+ +-
+
{"token":"*YOUR_CONNECTION_PASSWORD*",
+ "kodiid":"*YOUR_ROOM_NAME*"}
+