JSON-RPC API v4 (Eden)
JSON-RPC Pages |
---|
Main JSON-RPC Page |
- v8 (Krypton) |
- v10 (Leia) |
- v12 (Matrix) |
- v13 (Nexus) |
- v14 (Omega) |
Examples |
All JSON-RPC Pages |
Version 4 is a stable version of XBMC's JSON-RPC API and is published with the release of Eden. It is a complete re-write and re-structuring of version 2 and therefore isn't backwards compatible to it. The main reason for this was the need to make this version fully compatible with all the functionality, features and requirements of the JSON-RPC 2.0 specification. This was a main concern during early development to make it easier for third party developers and applications to interact with XBMC's JSON-RPC API by using existing JSON-RPC libraries.
An rough and incomplete list of changes compared to version 2 can be found here. A more complete and detailed list can be found in the forum.
Documentation (JSON Schema)
Starting with JSON-RPC API version 3 a new way of API documentation has been introduced. All methods and data types are described using JSON Schema. This provides third party developers with an always complete and up-to-date documentation by calling JSONRPC.Introspect even during periods of heavy development. Furthermore the same method and data type specification that can be used by third party developers as a documentation is used by XBMC to check and verify method parameters and their values on every JSON-RPC request and allows to provide detailed error messages in case of a bad or missing parameter.
Supported features of JSON Schema
Schema | IETF Draft 03 |
---|---|
type | Yes |
properties | Yes |
patternProperties | No |
additionalProperties | Yes |
items | Yes |
additionalItems | Yes |
required | Yes |
dependencies | No |
minimum | Yes |
maximum | Yes |
Schema | IETF Draft 03 |
---|---|
exclusiveMinimum | Yes |
exclusiveMaximum | Yes |
minItems | Yes |
maxItems | Yes |
uniqueItems | Yes |
pattern | No |
minLength | Yes |
maxLength | Yes |
enum | Yes |
default | Yes |
Schema | IETF Draft 03 |
---|---|
title | No |
description | Yes |
format | No |
divisibleBy | Yes |
disallow | No |
extends | Yes |
id | Yes |
$ref | Yes |
$schema | No |
Hyper Schema | No |
Error message
If XBMC detects a bad or missing parameter in a JSON-RPC request it returns an error object. The JSON schema description of that error object is
{ "type": "object", "properties": { "code": { "type": "integer", "required": true }, "message": { "type": "string", "required": true }, "data": { "type": "object", "properties": { "method": { "type": "string", "required": true }, "stack": { "type": "object", "id": "Error.Stack", "properties": { "name": { "type": "string", "required": true }, "type": { "type": "string", "required": true }, "message": { "type": "string", "required": true }, "property": { "$ref": "Error.Stack" } } } } } } } |
JSONRPC
A variety of standard JSONRPC calls
Methods
JSONRPC.Introspect
Enumerates all actions and descriptions
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'JSONRPC.Introspect', 'id': undefined /* integer */, 'params': { 'getdescriptions': true /* boolean */, 'getmetadata': false /* boolean */, 'filterbytransport': true /* boolean */, 'filter': { 'getreferences': true /* boolean, Whether or not to print the schema for referenced types */, 'id': undefined /* string, Name of a namespace, method or type */, 'type': undefined /* string, Type of the given name */ } } }
Returns
{ 'jsonrpc': '2.0', 'method': 'JSONRPC.Introspect', 'id': undefined /* integer */, 'result': { } }
JSONRPC.NotifyAll
Notify all other connected clients
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'JSONRPC.NotifyAll', 'id': undefined /* integer */, 'params': { 'sender': undefined /* string */, 'message': undefined /* string */, 'data': null /* any */ } }
Returns
{ 'jsonrpc': '2.0', 'method': 'JSONRPC.NotifyAll', 'id': undefined /* integer */, 'result': undefined /* any */ }
JSONRPC.Permission
Retrieve the clients permissions
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'JSONRPC.Permission', 'id': undefined /* integer */ }
Returns
{ 'jsonrpc': '2.0', 'method': 'JSONRPC.Permission', 'id': undefined /* integer */, 'result': { 'controlnotify': undefined /* boolean */, 'controlplayback': undefined /* boolean */, 'controlpower': undefined /* boolean */, 'navigate': undefined /* boolean */, 'readdata': undefined /* boolean */, 'removedata': undefined /* boolean */, 'updatedata': undefined /* boolean */, 'writefile': undefined /* boolean */ } }
JSONRPC.Ping
Ping responder
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'JSONRPC.Ping', 'id': undefined /* integer */ }
Returns
{ 'jsonrpc': '2.0', 'method': 'JSONRPC.Ping', 'id': undefined /* integer */, 'result': undefined /* string */ }
JSONRPC.Version
Retrieve the jsonrpc protocol version
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'JSONRPC.Version', 'id': undefined /* integer */ }
Returns
{ 'jsonrpc': '2.0', 'method': 'JSONRPC.Version', 'id': undefined /* integer */, 'result': undefined /* string */ }
Player
Manages all available players
Notifications
Player.OnPause
Playback of a media item has been paused. If there is no ID available extra information will be provided.
Returns
{ 'jsonrpc': '2.0', 'method': 'Player.OnPause', 'params': { 'sender': undefined /* string */, 'data': { /* id: Player.Notifications.Data */ 'item': { /* An unknown item does not have any additional information. */ 'type': 'unknown' /* string, id: Player.Notifications.Item.Type */ } or { /* An item known to the database has an identification. */ 'id': -1 /* integer, id: Library.Id, minimum: 1 */, 'type': 'unknown' /* string, id: Player.Notifications.Item.Type */ } or { /* A movie item has a title and may have a release year. */ 'title': undefined /* string */, 'type': 'unknown' /* string, id: Player.Notifications.Item.Type */, 'year': 0 /* integer */ } or { /* A tv episode has a title and may have an episode number, season number and the title of the show it belongs to. */ 'episode': 0 /* integer */, 'season': 0 /* integer */, 'showtitle': '' /* string */, 'title': undefined /* string */, 'type': 'unknown' /* string, id: Player.Notifications.Item.Type */ } or { /* A music video has a title and may have an album and an artist. */ 'album': '' /* string */, 'artist': '' /* string */, 'title': undefined /* string */, 'type': 'unknown' /* string, id: Player.Notifications.Item.Type */ } or { /* A song has a title and may have an album, an artist and a track number. */ 'album': '' /* string */, 'artist': '' /* string */, 'title': undefined /* string */, 'track': 0 /* integer */, 'type': 'unknown' /* string, id: Player.Notifications.Item.Type */ }, 'player': { /* id: Player.Notifications.Player */ 'playerid': -1 /* integer, id: Player.Id, minimum: 0, maximum: 2 */, 'speed': 0 /* integer */ } } } }
Player.OnPlay
Playback of a media item has been started or the playback speed has changed. If there is no ID available extra information will be provided.
Returns
{ 'jsonrpc': '2.0', 'method': 'Player.OnPlay', 'params': { 'sender': undefined /* string */, 'data': { /* id: Player.Notifications.Data */ 'item': { /* An unknown item does not have any additional information. */ 'type': 'unknown' /* string, id: Player.Notifications.Item.Type */ } or { /* An item known to the database has an identification. */ 'id': -1 /* integer, id: Library.Id, minimum: 1 */, 'type': 'unknown' /* string, id: Player.Notifications.Item.Type */ } or { /* A movie item has a title and may have a release year. */ 'title': undefined /* string */, 'type': 'unknown' /* string, id: Player.Notifications.Item.Type */, 'year': 0 /* integer */ } or { /* A tv episode has a title and may have an episode number, season number and the title of the show it belongs to. */ 'episode': 0 /* integer */, 'season': 0 /* integer */, 'showtitle': '' /* string */, 'title': undefined /* string */, 'type': 'unknown' /* string, id: Player.Notifications.Item.Type */ } or { /* A music video has a title and may have an album and an artist. */ 'album': '' /* string */, 'artist': '' /* string */, 'title': undefined /* string */, 'type': 'unknown' /* string, id: Player.Notifications.Item.Type */ } or { /* A song has a title and may have an album, an artist and a track number. */ 'album': '' /* string */, 'artist': '' /* string */, 'title': undefined /* string */, 'track': 0 /* integer */, 'type': 'unknown' /* string, id: Player.Notifications.Item.Type */ }, 'player': { /* id: Player.Notifications.Player */ 'playerid': -1 /* integer, id: Player.Id, minimum: 0, maximum: 2 */, 'speed': 0 /* integer */ } } } }
Player.OnSeek
The playback position has been changed. If there is no ID available extra information will be provided.
Returns
{ 'jsonrpc': '2.0', 'method': 'Player.OnSeek', 'params': { 'sender': undefined /* string */, 'data': { 'item': { /* An unknown item does not have any additional information. */ 'type': 'unknown' /* string, id: Player.Notifications.Item.Type */ } or { /* An item known to the database has an identification. */ 'id': -1 /* integer, id: Library.Id, minimum: 1 */, 'type': 'unknown' /* string, id: Player.Notifications.Item.Type */ } or { /* A movie item has a title and may have a release year. */ 'title': undefined /* string */, 'type': 'unknown' /* string, id: Player.Notifications.Item.Type */, 'year': 0 /* integer */ } or { /* A tv episode has a title and may have an episode number, season number and the title of the show it belongs to. */ 'episode': 0 /* integer */, 'season': 0 /* integer */, 'showtitle': '' /* string */, 'title': undefined /* string */, 'type': 'unknown' /* string, id: Player.Notifications.Item.Type */ } or { /* A music video has a title and may have an album and an artist. */ 'album': '' /* string */, 'artist': '' /* string */, 'title': undefined /* string */, 'type': 'unknown' /* string, id: Player.Notifications.Item.Type */ } or { /* A song has a title and may have an album, an artist and a track number. */ 'album': '' /* string */, 'artist': '' /* string */, 'title': undefined /* string */, 'track': 0 /* integer */, 'type': 'unknown' /* string, id: Player.Notifications.Item.Type */ }, 'player': { /* id: Player.Notifications.Player.Seek */ 'seekoffset': { /* id: Global.Time */ 'hours': undefined /* integer, minimum: 0, maximum: 23 */, 'milliseconds': undefined /* integer, minimum: 0, maximum: 999 */, 'minutes': undefined /* integer, minimum: 0, maximum: 59 */, 'seconds': undefined /* integer, minimum: 0, maximum: 59 */ }, 'time': { /* id: Global.Time */ 'hours': undefined /* integer, minimum: 0, maximum: 23 */, 'milliseconds': undefined /* integer, minimum: 0, maximum: 999 */, 'minutes': undefined /* integer, minimum: 0, maximum: 59 */, 'seconds': undefined /* integer, minimum: 0, maximum: 59 */ }, 'playerid': -1 /* integer, id: Player.Id, minimum: 0, maximum: 2 */, 'speed': 0 /* integer */ } } } }
Player.OnSpeedChanged
Speed of the playback of a media item has been changed. If there is no ID available extra information will be provided.
Returns
{ 'jsonrpc': '2.0', 'method': 'Player.OnSpeedChanged', 'params': { 'sender': undefined /* string */, 'data': { /* id: Player.Notifications.Data */ 'item': { /* An unknown item does not have any additional information. */ 'type': 'unknown' /* string, id: Player.Notifications.Item.Type */ } or { /* An item known to the database has an identification. */ 'id': -1 /* integer, id: Library.Id, minimum: 1 */, 'type': 'unknown' /* string, id: Player.Notifications.Item.Type */ } or { /* A movie item has a title and may have a release year. */ 'title': undefined /* string */, 'type': 'unknown' /* string, id: Player.Notifications.Item.Type */, 'year': 0 /* integer */ } or { /* A tv episode has a title and may have an episode number, season number and the title of the show it belongs to. */ 'episode': 0 /* integer */, 'season': 0 /* integer */, 'showtitle': '' /* string */, 'title': undefined /* string */, 'type': 'unknown' /* string, id: Player.Notifications.Item.Type */ } or { /* A music video has a title and may have an album and an artist. */ 'album': '' /* string */, 'artist': '' /* string */, 'title': undefined /* string */, 'type': 'unknown' /* string, id: Player.Notifications.Item.Type */ } or { /* A song has a title and may have an album, an artist and a track number. */ 'album': '' /* string */, 'artist': '' /* string */, 'title': undefined /* string */, 'track': 0 /* integer */, 'type': 'unknown' /* string, id: Player.Notifications.Item.Type */ }, 'player': { /* id: Player.Notifications.Player */ 'playerid': -1 /* integer, id: Player.Id, minimum: 0, maximum: 2 */, 'speed': 0 /* integer */ } } } }
Player.OnStop
Playback of a media item has been stopped. If there is no ID available extra information will be provided.
Returns
{ 'jsonrpc': '2.0', 'method': 'Player.OnStop', 'params': { 'sender': undefined /* string */, 'data': { 'item': { /* An unknown item does not have any additional information. */ 'type': 'unknown' /* string, id: Player.Notifications.Item.Type */ } or { /* An item known to the database has an identification. */ 'id': -1 /* integer, id: Library.Id, minimum: 1 */, 'type': 'unknown' /* string, id: Player.Notifications.Item.Type */ } or { /* A movie item has a title and may have a release year. */ 'title': undefined /* string */, 'type': 'unknown' /* string, id: Player.Notifications.Item.Type */, 'year': 0 /* integer */ } or { /* A tv episode has a title and may have an episode number, season number and the title of the show it belongs to. */ 'episode': 0 /* integer */, 'season': 0 /* integer */, 'showtitle': '' /* string */, 'title': undefined /* string */, 'type': 'unknown' /* string, id: Player.Notifications.Item.Type */ } or { /* A music video has a title and may have an album and an artist. */ 'album': '' /* string */, 'artist': '' /* string */, 'title': undefined /* string */, 'type': 'unknown' /* string, id: Player.Notifications.Item.Type */ } or { /* A song has a title and may have an album, an artist and a track number. */ 'album': '' /* string */, 'artist': '' /* string */, 'title': undefined /* string */, 'track': 0 /* integer */, 'type': 'unknown' /* string, id: Player.Notifications.Item.Type */ } } } }
Methods
Player.GetActivePlayers
Returns all active players
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'Player.GetActivePlayers', 'id': undefined /* integer */ }
Returns
{ 'jsonrpc': '2.0', 'method': 'Player.GetActivePlayers', 'id': undefined /* integer */, 'result': [ /* array */ { 'playerid': -1 /* integer, id: Player.Id, minimum: 0, maximum: 2 */, 'type': 'video' /* string, id: Player.Type */ } ] }
Player.GetItem
Retrieves the currently played item
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'Player.GetItem', 'id': undefined /* integer */, 'params': { 'playerid': -1 /* integer, id: Player.Id, minimum: 0, maximum: 2 */, 'properties': [ /* id: List.Fields.All */ undefined /* string */ ] } }
Returns
{ 'jsonrpc': '2.0', 'method': 'Player.GetItem', 'id': undefined /* integer */, 'result': { 'item': { /* id: List.Item.All */ 'album': '' /* string */, 'albumartist': '' /* string */, 'albumid': -1 /* integer, id: Library.Id, minimum: 1 */, 'artistid': -1 /* integer, id: Library.Id, minimum: 1 */, 'cast': [ /* array, id: Video.Cast */ { 'name': undefined /* string */, 'role': undefined /* string */, 'thumbnail': '' /* string */ } ], 'comment': '' /* string */, 'country': '' /* string */, 'duration': 0 /* integer */, 'episode': 0 /* integer */, 'firstaired': '' /* string */, 'id': -1 /* integer, id: Library.Id, minimum: 1 */, 'imdbnumber': '' /* string */, 'lyrics': '' /* string */, 'mpaa': '' /* string */, 'musicbrainzartistid': '' /* string */, 'musicbrainztrackid': '' /* string */, 'originaltitle': '' /* string */, 'plotoutline': '' /* string */, 'premiered': '' /* string */, 'productioncode': '' /* string */, 'season': 0 /* integer */, 'set': [ /* array, id: Array.String */ undefined /* string, minimum length: 1 */ ], 'setid': [ /* array, id: Array.Integer */ undefined /* integer */ ], 'showlink': '' /* string */, 'showtitle': '' /* string */, 'studio': '' /* string */, 'tagline': '' /* string */, 'top250': 0 /* integer */, 'track': 0 /* integer */, 'trailer': '' /* string */, 'tvshowid': -1 /* integer, id: Library.Id, minimum: 1 */, 'type': 'unknown' /* string */, 'votes': '' /* string */, 'writer': '' /* string */, 'director': '' /* string */, 'resume': { /* id: Video.Resume */ 'position': 0 /* number, minimum: 0 */, 'total': 0 /* number, minimum: 0 */ }, 'runtime': '' /* string */, 'streamdetails': { /* id: Video.Streams */ 'audio': [ /* array, minimum items: 1 */ { 'channels': 0 /* integer */, 'codec': '' /* string */, 'language': '' /* string */ } ], 'subtitle': [ /* array, minimum items: 1 */ { 'language': '' /* string */ } ], 'video': [ /* array, minimum items: 1 */ { 'aspect': 0 /* number */, 'codec': '' /* string */, 'duration': 0 /* integer */, 'height': 0 /* integer */, 'width': 0 /* integer */ } ] }, 'file': '' /* string */, 'lastplayed': '' /* string */, 'plot': '' /* string */, 'title': '' /* string */, 'playcount': 0 /* integer */, 'fanart': '' /* string */, 'thumbnail': '' /* string */, 'label': undefined /* string */, 'artist': '' /* string */, 'musicbrainzalbumartistid': '' /* string */, 'musicbrainzalbumid': '' /* string */, 'rating': 0 /* integer */, 'year': 0 /* integer */, 'genre': '' /* string */ } } }
Player.GetProperties
Retrieves the values of the given properties
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'Player.GetProperties', 'id': undefined /* integer */, 'params': { 'playerid': -1 /* integer, id: Player.Id, minimum: 0, maximum: 2 */, 'properties': [ /* array */ 'type' /* string, id: Player.Property.Name */ ] } }
Returns
{ 'jsonrpc': '2.0', 'method': 'Player.GetProperties', 'id': undefined /* integer */, 'result': { /* id: Player.Property.Value */ 'audiostreams': [ /* array */ { /* id: Player.Audio.Stream */ 'index': undefined /* integer, minimum: 0 */, 'language': undefined /* string */, 'name': undefined /* string */ } ], 'canchangespeed': false /* boolean */, 'canmove': false /* boolean */, 'canrepeat': false /* boolean */, 'canrotate': false /* boolean */, 'canseek': false /* boolean */, 'canshuffle': false /* boolean */, 'canzoom': false /* boolean */, 'currentaudiostream': { /* id: Player.Audio.Stream.Extended */ 'bitrate': undefined /* integer */, 'channels': undefined /* integer */, 'codec': undefined /* string */, 'index': undefined /* integer, minimum: 0 */, 'language': undefined /* string */, 'name': undefined /* string */ }, 'currentsubtitle': { /* id: Player.Subtitle */ 'index': undefined /* integer, minimum: 0 */, 'language': undefined /* string */, 'name': undefined /* string */ }, 'partymode': false /* boolean */, 'percentage': 0 /* number, id: Player.Position.Percentage, minimum: 0, maximum: 100 */, 'playlistid': -1 /* integer, id: Playlist.Id, minimum: 0, maximum: 2 */, 'position': -1 /* integer, id: Playlist.Position, minimum: 0 */, 'repeat': 'off' /* string, id: Player.Repeat */, 'shuffled': false /* boolean */, 'speed': 0 /* integer */, 'subtitleenabled': false /* boolean */, 'subtitles': [ /* array */ { /* id: Player.Subtitle */ 'index': undefined /* integer, minimum: 0 */, 'language': undefined /* string */, 'name': undefined /* string */ } ], 'time': { /* id: Global.Time */ 'hours': undefined /* integer, minimum: 0, maximum: 23 */, 'milliseconds': undefined /* integer, minimum: 0, maximum: 999 */, 'minutes': undefined /* integer, minimum: 0, maximum: 59 */, 'seconds': undefined /* integer, minimum: 0, maximum: 59 */ }, 'totaltime': { /* id: Global.Time */ 'hours': undefined /* integer, minimum: 0, maximum: 23 */, 'milliseconds': undefined /* integer, minimum: 0, maximum: 999 */, 'minutes': undefined /* integer, minimum: 0, maximum: 59 */, 'seconds': undefined /* integer, minimum: 0, maximum: 59 */ }, 'type': 'video' /* string, id: Player.Type */ } }
Player.GoNext
Go to next item on the playlist
Permissions
ControlPlayback
Syntax
{ 'jsonrpc': '2.0', 'method': 'Player.GoNext', 'id': undefined /* integer */, 'params': { 'playerid': -1 /* integer, id: Player.Id, minimum: 0, maximum: 2 */ } }
Returns
{ 'jsonrpc': '2.0', 'method': 'Player.GoNext', 'id': undefined /* integer */, 'result': undefined /* string */ }
Player.GoPrevious
Go to previous item on the playlist
Permissions
ControlPlayback
Syntax
{ 'jsonrpc': '2.0', 'method': 'Player.GoPrevious', 'id': undefined /* integer */, 'params': { 'playerid': -1 /* integer, id: Player.Id, minimum: 0, maximum: 2 */ } }
Returns
{ 'jsonrpc': '2.0', 'method': 'Player.GoPrevious', 'id': undefined /* integer */, 'result': undefined /* string */ }
Player.GoTo
Go to item at the given position in the playlist
Permissions
ControlPlayback
Syntax
{ 'jsonrpc': '2.0', 'method': 'Player.GoTo', 'id': undefined /* integer */, 'params': { 'playerid': -1 /* integer, id: Player.Id, minimum: 0, maximum: 2 */, 'position': -1 /* integer, id: Playlist.Position, minimum: 0 */ } }
Returns
{ 'jsonrpc': '2.0', 'method': 'Player.GoTo', 'id': undefined /* integer */, 'result': undefined /* string */ }
Player.MoveDown
If picture is zoomed move viewport down
Permissions
ControlPlayback
Syntax
{ 'jsonrpc': '2.0', 'method': 'Player.MoveDown', 'id': undefined /* integer */, 'params': { 'playerid': -1 /* integer, id: Player.Id, minimum: 0, maximum: 2 */ } }
Returns
{ 'jsonrpc': '2.0', 'method': 'Player.MoveDown', 'id': undefined /* integer */, 'result': undefined /* string */ }
Player.MoveLeft
If picture is zoomed move viewport left otherwise skip previous
Permissions
ControlPlayback
Syntax
{ 'jsonrpc': '2.0', 'method': 'Player.MoveLeft', 'id': undefined /* integer */, 'params': { 'playerid': -1 /* integer, id: Player.Id, minimum: 0, maximum: 2 */ } }
Returns
{ 'jsonrpc': '2.0', 'method': 'Player.MoveLeft', 'id': undefined /* integer */, 'result': undefined /* string */ }
Player.MoveRight
If picture is zoomed move viewport right otherwise skip next
Permissions
ControlPlayback
Syntax
{ 'jsonrpc': '2.0', 'method': 'Player.MoveRight', 'id': undefined /* integer */, 'params': { 'playerid': -1 /* integer, id: Player.Id, minimum: 0, maximum: 2 */ } }
Returns
{ 'jsonrpc': '2.0', 'method': 'Player.MoveRight', 'id': undefined /* integer */, 'result': undefined /* string */ }
Player.MoveUp
If picture is zoomed move viewport up
Permissions
ControlPlayback
Syntax
{ 'jsonrpc': '2.0', 'method': 'Player.MoveUp', 'id': undefined /* integer */, 'params': { 'playerid': -1 /* integer, id: Player.Id, minimum: 0, maximum: 2 */ } }
Returns
{ 'jsonrpc': '2.0', 'method': 'Player.MoveUp', 'id': undefined /* integer */, 'result': undefined /* string */ }
Player.Open
Start playback of either the playlist with the given ID, a slideshow with the pictures from the given directory or a single file or an item from the database.
Permissions
ControlPlayback
Syntax
{ 'jsonrpc': '2.0', 'method': 'Player.Open', 'id': undefined /* integer */, 'params': { 'item': { 'playlistid': -1 /* integer, id: Playlist.Id, minimum: 0, maximum: 2 */, 'position': -1 /* integer, id: Playlist.Position, minimum: 0 */ } or { 'file': undefined /* string, Path to a file (not a directory) to be added to the playlist */ } or { 'directory': undefined /* string */ } or { 'movieid': -1 /* integer, id: Library.Id, minimum: 1 */ } or { 'episodeid': -1 /* integer, id: Library.Id, minimum: 1 */ } or { 'musicvideoid': -1 /* integer, id: Library.Id, minimum: 1 */ } or { 'artistid': -1 /* integer, id: Library.Id, minimum: 1 */ } or { 'albumid': -1 /* integer, id: Library.Id, minimum: 1 */ } or { 'songid': -1 /* integer, id: Library.Id, minimum: 1 */ } or { 'genreid': -1 /* integer, id: Library.Id, minimum: 1, Identification of a genre from the AudioLibrary */ } or { 'path': undefined /* string */, 'random': true /* boolean */, 'recursive': true /* boolean */ } } }
Returns
{ 'jsonrpc': '2.0', 'method': 'Player.Open', 'id': undefined /* integer */, 'result': undefined /* string */ }
Player.PlayPause
Pauses or unpause playback and returns the new state
Permissions
ControlPlayback
Syntax
{ 'jsonrpc': '2.0', 'method': 'Player.PlayPause', 'id': undefined /* integer */, 'params': { 'playerid': -1 /* integer, id: Player.Id, minimum: 0, maximum: 2 */ } }
Returns
{ 'jsonrpc': '2.0', 'method': 'Player.PlayPause', 'id': undefined /* integer */, 'result': { /* id: Player.Speed */ 'speed': 0 /* integer */ } }
Player.Repeat
Set the repeat mode of the player
Permissions
ControlPlayback
Syntax
{ 'jsonrpc': '2.0', 'method': 'Player.Repeat', 'id': undefined /* integer */, 'params': { 'playerid': -1 /* integer, id: Player.Id, minimum: 0, maximum: 2 */, 'state': 'off' /* string, id: Player.Repeat */ } }
Returns
{ 'jsonrpc': '2.0', 'method': 'Player.Repeat', 'id': undefined /* integer */, 'result': undefined /* string */ }
Player.Rotate
Rotates current picture
Permissions
ControlPlayback
Syntax
{ 'jsonrpc': '2.0', 'method': 'Player.Rotate', 'id': undefined /* integer */, 'params': { 'playerid': -1 /* integer, id: Player.Id, minimum: 0, maximum: 2 */ } }
Returns
{ 'jsonrpc': '2.0', 'method': 'Player.Rotate', 'id': undefined /* integer */, 'result': undefined /* string */ }
Player.Seek
Seek through the playing item
Permissions
ControlPlayback
Syntax
{ 'jsonrpc': '2.0', 'method': 'Player.Seek', 'id': undefined /* integer */, 'params': { 'playerid': -1 /* integer, id: Player.Id, minimum: 0, maximum: 2 */, 'value': 0 /* number, id: Player.Position.Percentage, minimum: 0, maximum: 100, Percentage value to seek to */ or { /* Time to seek to */ 'hours': 0 /* integer, minimum: 0, maximum: 23 */, 'milliseconds': 0 /* integer, minimum: 0, maximum: 999 */, 'minutes': 0 /* integer, minimum: 0, maximum: 59 */, 'seconds': 0 /* integer, minimum: 0, maximum: 59 */ } or undefined /* string, Seek by predefined jumps */ } }
Returns
{ 'jsonrpc': '2.0', 'method': 'Player.Seek', 'id': undefined /* integer */, 'result': { 'percentage': 0 /* number, id: Player.Position.Percentage, minimum: 0, maximum: 100 */, 'time': { /* id: Global.Time */ 'hours': undefined /* integer, minimum: 0, maximum: 23 */, 'milliseconds': undefined /* integer, minimum: 0, maximum: 999 */, 'minutes': undefined /* integer, minimum: 0, maximum: 59 */, 'seconds': undefined /* integer, minimum: 0, maximum: 59 */ }, 'totaltime': { /* id: Global.Time */ 'hours': undefined /* integer, minimum: 0, maximum: 23 */, 'milliseconds': undefined /* integer, minimum: 0, maximum: 999 */, 'minutes': undefined /* integer, minimum: 0, maximum: 59 */, 'seconds': undefined /* integer, minimum: 0, maximum: 59 */ } } }
Player.SetAudioStream
Set the audio stream played by the player
Permissions
ControlPlayback
Syntax
{ 'jsonrpc': '2.0', 'method': 'Player.SetAudioStream', 'id': undefined /* integer */, 'params': { 'playerid': -1 /* integer, id: Player.Id, minimum: 0, maximum: 2 */, 'stream': undefined /* string */ or undefined /* integer, minimum: 0, Index of the audio stream to play */ } }
Returns
{ 'jsonrpc': '2.0', 'method': 'Player.SetAudioStream', 'id': undefined /* integer */, 'result': undefined /* string */ }
Player.SetSpeed
Set the speed of the current playback
Permissions
ControlPlayback
Syntax
{ 'jsonrpc': '2.0', 'method': 'Player.SetSpeed', 'id': undefined /* integer */, 'params': { 'playerid': -1 /* integer, id: Player.Id, minimum: 0, maximum: 2 */, 'speed': undefined /* integer */ or undefined /* string */ } }
Returns
{ 'jsonrpc': '2.0', 'method': 'Player.SetSpeed', 'id': undefined /* integer */, 'result': { /* id: Player.Speed */ 'speed': 0 /* integer */ } }
Player.SetSubtitle
Set the subtitle displayed by the player
Permissions
ControlPlayback
Syntax
{ 'jsonrpc': '2.0', 'method': 'Player.SetSubtitle', 'id': undefined /* integer */, 'params': { 'playerid': -1 /* integer, id: Player.Id, minimum: 0, maximum: 2 */, 'subtitle': undefined /* string */ or undefined /* integer, minimum: 0, Index of the subtitle to display */ } }
Returns
{ 'jsonrpc': '2.0', 'method': 'Player.SetSubtitle', 'id': undefined /* integer */, 'result': undefined /* string */ }
Player.Shuffle
Shuffle items in the player
Permissions
ControlPlayback
Syntax
{ 'jsonrpc': '2.0', 'method': 'Player.Shuffle', 'id': undefined /* integer */, 'params': { 'playerid': -1 /* integer, id: Player.Id, minimum: 0, maximum: 2 */ } }
Returns
{ 'jsonrpc': '2.0', 'method': 'Player.Shuffle', 'id': undefined /* integer */, 'result': undefined /* string */ }
Player.Stop
Stops playback
Permissions
ControlPlayback
Syntax
{ 'jsonrpc': '2.0', 'method': 'Player.Stop', 'id': undefined /* integer */, 'params': { 'playerid': -1 /* integer, id: Player.Id, minimum: 0, maximum: 2 */ } }
Returns
{ 'jsonrpc': '2.0', 'method': 'Player.Stop', 'id': undefined /* integer */, 'result': undefined /* string */ }
Player.UnShuffle
Unshuffle items in the player
Permissions
ControlPlayback
Syntax
{ 'jsonrpc': '2.0', 'method': 'Player.UnShuffle', 'id': undefined /* integer */, 'params': { 'playerid': -1 /* integer, id: Player.Id, minimum: 0, maximum: 2 */ } }
Returns
{ 'jsonrpc': '2.0', 'method': 'Player.UnShuffle', 'id': undefined /* integer */, 'result': undefined /* string */ }
Player.Zoom
Zooms current picture
Permissions
ControlPlayback
Syntax
{ 'jsonrpc': '2.0', 'method': 'Player.Zoom', 'id': undefined /* integer */, 'params': { 'playerid': -1 /* integer, id: Player.Id, minimum: 0, maximum: 2 */, 'value': undefined /* integer, minimum: 1, maximum: 10, Zoom level */ } }
Returns
{ 'jsonrpc': '2.0', 'method': 'Player.Zoom', 'id': undefined /* integer */, 'result': undefined /* string */ }
Player.ZoomIn
Zoom in once
Permissions
ControlPlayback
Syntax
{ 'jsonrpc': '2.0', 'method': 'Player.ZoomIn', 'id': undefined /* integer */, 'params': { 'playerid': -1 /* integer, id: Player.Id, minimum: 0, maximum: 2 */ } }
Returns
{ 'jsonrpc': '2.0', 'method': 'Player.ZoomIn', 'id': undefined /* integer */, 'result': undefined /* string */ }
Player.ZoomOut
Zoom out once
Permissions
ControlPlayback
Syntax
{ 'jsonrpc': '2.0', 'method': 'Player.ZoomOut', 'id': undefined /* integer */, 'params': { 'playerid': -1 /* integer, id: Player.Id, minimum: 0, maximum: 2 */ } }
Returns
{ 'jsonrpc': '2.0', 'method': 'Player.ZoomOut', 'id': undefined /* integer */, 'result': undefined /* string */ }
Playlist
Playlist modification
Methods
Playlist.Add
Add item(s) to playlist
Permissions
ControlPlayback
Syntax
{ 'jsonrpc': '2.0', 'method': 'Playlist.Add', 'id': undefined /* integer */, 'params': { 'playlistid': -1 /* integer, id: Playlist.Id, minimum: 0, maximum: 2 */, 'item': { 'file': undefined /* string, Path to a file (not a directory) to be added to the playlist */ } or { 'directory': undefined /* string */ } or { 'movieid': -1 /* integer, id: Library.Id, minimum: 1 */ } or { 'episodeid': -1 /* integer, id: Library.Id, minimum: 1 */ } or { 'musicvideoid': -1 /* integer, id: Library.Id, minimum: 1 */ } or { 'artistid': -1 /* integer, id: Library.Id, minimum: 1 */ } or { 'albumid': -1 /* integer, id: Library.Id, minimum: 1 */ } or { 'songid': -1 /* integer, id: Library.Id, minimum: 1 */ } or { 'genreid': -1 /* integer, id: Library.Id, minimum: 1, Identification of a genre from the AudioLibrary */ } } }
Returns
{ 'jsonrpc': '2.0', 'method': 'Playlist.Add', 'id': undefined /* integer */, 'result': undefined /* string */ }
Playlist.Clear
Clear playlist
Permissions
ControlPlayback
Syntax
{ 'jsonrpc': '2.0', 'method': 'Playlist.Clear', 'id': undefined /* integer */, 'params': { 'playlistid': -1 /* integer, id: Playlist.Id, minimum: 0, maximum: 2 */ } }
Returns
{ 'jsonrpc': '2.0', 'method': 'Playlist.Clear', 'id': undefined /* integer */, 'result': undefined /* string */ }
Playlist.GetItems
Get all items from playlist
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'Playlist.GetItems', 'id': undefined /* integer */, 'params': { 'playlistid': -1 /* integer, id: Playlist.Id, minimum: 0, maximum: 2 */, 'properties': [ /* id: List.Fields.All */ undefined /* string */ ], 'limits': { /* id: List.Limits */ 'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 'start': 0 /* integer, minimum: 0 */ }, 'sort': { /* id: List.Sort */ 'ignorearticle': false /* boolean */, 'method': 'none' /* string */, 'order': 'ascending' /* string */ } } }
Returns
{ 'jsonrpc': '2.0', 'method': 'Playlist.GetItems', 'id': undefined /* integer */, 'result': { 'items': [ /* array */ { /* id: List.Item.All */ 'album': '' /* string */, 'albumartist': '' /* string */, 'albumid': -1 /* integer, id: Library.Id, minimum: 1 */, 'artistid': -1 /* integer, id: Library.Id, minimum: 1 */, 'cast': [ /* array, id: Video.Cast */ { 'name': undefined /* string */, 'role': undefined /* string */, 'thumbnail': '' /* string */ } ], 'comment': '' /* string */, 'country': '' /* string */, 'duration': 0 /* integer */, 'episode': 0 /* integer */, 'firstaired': '' /* string */, 'id': -1 /* integer, id: Library.Id, minimum: 1 */, 'imdbnumber': '' /* string */, 'lyrics': '' /* string */, 'mpaa': '' /* string */, 'musicbrainzartistid': '' /* string */, 'musicbrainztrackid': '' /* string */, 'originaltitle': '' /* string */, 'plotoutline': '' /* string */, 'premiered': '' /* string */, 'productioncode': '' /* string */, 'season': 0 /* integer */, 'set': [ /* array, id: Array.String */ undefined /* string, minimum length: 1 */ ], 'setid': [ /* array, id: Array.Integer */ undefined /* integer */ ], 'showlink': '' /* string */, 'showtitle': '' /* string */, 'studio': '' /* string */, 'tagline': '' /* string */, 'top250': 0 /* integer */, 'track': 0 /* integer */, 'trailer': '' /* string */, 'tvshowid': -1 /* integer, id: Library.Id, minimum: 1 */, 'type': 'unknown' /* string */, 'votes': '' /* string */, 'writer': '' /* string */, 'director': '' /* string */, 'resume': { /* id: Video.Resume */ 'position': 0 /* number, minimum: 0 */, 'total': 0 /* number, minimum: 0 */ }, 'runtime': '' /* string */, 'streamdetails': { /* id: Video.Streams */ 'audio': [ /* array, minimum items: 1 */ { 'channels': 0 /* integer */, 'codec': '' /* string */, 'language': '' /* string */ } ], 'subtitle': [ /* array, minimum items: 1 */ { 'language': '' /* string */ } ], 'video': [ /* array, minimum items: 1 */ { 'aspect': 0 /* number */, 'codec': '' /* string */, 'duration': 0 /* integer */, 'height': 0 /* integer */, 'width': 0 /* integer */ } ] }, 'file': '' /* string */, 'lastplayed': '' /* string */, 'plot': '' /* string */, 'title': '' /* string */, 'playcount': 0 /* integer */, 'fanart': '' /* string */, 'thumbnail': '' /* string */, 'label': undefined /* string */, 'artist': '' /* string */, 'musicbrainzalbumartistid': '' /* string */, 'musicbrainzalbumid': '' /* string */, 'rating': 0 /* integer */, 'year': 0 /* integer */, 'genre': '' /* string */ } ], 'limits': { /* id: List.LimitsReturned */ 'end': -1 /* integer, minimum: 0 */, 'start': 0 /* integer, minimum: 0 */, 'total': undefined /* integer, minimum: 0 */ } } }
Playlist.GetPlaylists
Returns all existing playlists
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'Playlist.GetPlaylists', 'id': undefined /* integer */ }
Returns
{ 'jsonrpc': '2.0', 'method': 'Playlist.GetPlaylists', 'id': undefined /* integer */, 'result': [ /* array */ { 'playlistid': -1 /* integer, id: Playlist.Id, minimum: 0, maximum: 2 */, 'type': 'unknown' /* string, id: Playlist.Type */ } ] }
Playlist.GetProperties
Retrieves the values of the given properties
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'Playlist.GetProperties', 'id': undefined /* integer */, 'params': { 'playlistid': -1 /* integer, id: Playlist.Id, minimum: 0, maximum: 2 */, 'properties': [ /* array */ 'type' /* string, id: Playlist.Property.Name */ ] } }
Returns
{ 'jsonrpc': '2.0', 'method': 'Playlist.GetProperties', 'id': undefined /* integer */, 'result': { /* id: Playlist.Property.Value */ 'size': 0 /* integer, minimum: 0 */, 'type': 'unknown' /* string, id: Playlist.Type */ } }
Playlist.Insert
Insert item(s) into playlist. Does not work for picture playlists (aka slideshows).
Permissions
ControlPlayback
Syntax
{ 'jsonrpc': '2.0', 'method': 'Playlist.Insert', 'id': undefined /* integer */, 'params': { 'playlistid': -1 /* integer, id: Playlist.Id, minimum: 0, maximum: 2 */, 'position': -1 /* integer, id: Playlist.Position, minimum: 0 */, 'item': { 'file': undefined /* string, Path to a file (not a directory) to be added to the playlist */ } or { 'directory': undefined /* string */ } or { 'movieid': -1 /* integer, id: Library.Id, minimum: 1 */ } or { 'episodeid': -1 /* integer, id: Library.Id, minimum: 1 */ } or { 'musicvideoid': -1 /* integer, id: Library.Id, minimum: 1 */ } or { 'artistid': -1 /* integer, id: Library.Id, minimum: 1 */ } or { 'albumid': -1 /* integer, id: Library.Id, minimum: 1 */ } or { 'songid': -1 /* integer, id: Library.Id, minimum: 1 */ } or { 'genreid': -1 /* integer, id: Library.Id, minimum: 1, Identification of a genre from the AudioLibrary */ } } }
Returns
{ 'jsonrpc': '2.0', 'method': 'Playlist.Insert', 'id': undefined /* integer */, 'result': undefined /* string */ }
Playlist.Remove
Remove item from playlist. Does not work for picture playlists (aka slideshows).
Permissions
ControlPlayback
Syntax
{ 'jsonrpc': '2.0', 'method': 'Playlist.Remove', 'id': undefined /* integer */, 'params': { 'playlistid': -1 /* integer, id: Playlist.Id, minimum: 0, maximum: 2 */, 'position': -1 /* integer, id: Playlist.Position, minimum: 0 */ } }
Returns
{ 'jsonrpc': '2.0', 'method': 'Playlist.Remove', 'id': undefined /* integer */, 'result': undefined /* string */ }
Playlist.Swap
Swap items in the playlist. Does not work for picture playlists (aka slideshows).
Permissions
ControlPlayback
Syntax
{ 'jsonrpc': '2.0', 'method': 'Playlist.Swap', 'id': undefined /* integer */, 'params': { 'playlistid': -1 /* integer, id: Playlist.Id, minimum: 0, maximum: 2 */, 'position1': -1 /* integer, id: Playlist.Position, minimum: 0 */, 'position2': -1 /* integer, id: Playlist.Position, minimum: 0 */ } }
Returns
{ 'jsonrpc': '2.0', 'method': 'Playlist.Swap', 'id': undefined /* integer */, 'result': undefined /* string */ }
Files
Shares information
Methods
Files.GetDirectory
Get the directories and files in the given directory
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'Files.GetDirectory', 'id': undefined /* integer */, 'params': { 'directory': undefined /* string */, 'media': 'video' /* string, id: Files.Media */, 'properties': [ /* id: List.Fields.All */ undefined /* string */ ], 'sort': { /* id: List.Sort */ 'ignorearticle': false /* boolean */, 'method': 'none' /* string */, 'order': 'ascending' /* string */ } } }
Returns
{ 'jsonrpc': '2.0', 'method': 'Files.GetDirectory', 'id': undefined /* integer */, 'result': { 'files': [ /* array */ { /* id: List.Item.File */ 'file': '' /* string */, 'filetype': undefined /* string */, 'album': '' /* string */, 'albumartist': '' /* string */, 'albumid': -1 /* integer, id: Library.Id, minimum: 1 */, 'artistid': -1 /* integer, id: Library.Id, minimum: 1 */, 'cast': [ /* array, id: Video.Cast */ { 'name': undefined /* string */, 'role': undefined /* string */, 'thumbnail': '' /* string */ } ], 'comment': '' /* string */, 'country': '' /* string */, 'duration': 0 /* integer */, 'episode': 0 /* integer */, 'firstaired': '' /* string */, 'id': -1 /* integer, id: Library.Id, minimum: 1 */, 'imdbnumber': '' /* string */, 'lyrics': '' /* string */, 'mpaa': '' /* string */, 'musicbrainzartistid': '' /* string */, 'musicbrainztrackid': '' /* string */, 'originaltitle': '' /* string */, 'plotoutline': '' /* string */, 'premiered': '' /* string */, 'productioncode': '' /* string */, 'season': 0 /* integer */, 'set': [ /* array, id: Array.String */ undefined /* string, minimum length: 1 */ ], 'setid': [ /* array, id: Array.Integer */ undefined /* integer */ ], 'showlink': '' /* string */, 'showtitle': '' /* string */, 'studio': '' /* string */, 'tagline': '' /* string */, 'top250': 0 /* integer */, 'track': 0 /* integer */, 'trailer': '' /* string */, 'tvshowid': -1 /* integer, id: Library.Id, minimum: 1 */, 'type': 'unknown' /* string */, 'votes': '' /* string */, 'writer': '' /* string */, 'director': '' /* string */, 'resume': { /* id: Video.Resume */ 'position': 0 /* number, minimum: 0 */, 'total': 0 /* number, minimum: 0 */ }, 'runtime': '' /* string */, 'streamdetails': { /* id: Video.Streams */ 'audio': [ /* array, minimum items: 1 */ { 'channels': 0 /* integer */, 'codec': '' /* string */, 'language': '' /* string */ } ], 'subtitle': [ /* array, minimum items: 1 */ { 'language': '' /* string */ } ], 'video': [ /* array, minimum items: 1 */ { 'aspect': 0 /* number */, 'codec': '' /* string */, 'duration': 0 /* integer */, 'height': 0 /* integer */, 'width': 0 /* integer */ } ] }, 'lastplayed': '' /* string */, 'plot': '' /* string */, 'title': '' /* string */, 'playcount': 0 /* integer */, 'fanart': '' /* string */, 'thumbnail': '' /* string */, 'label': undefined /* string */, 'artist': '' /* string */, 'musicbrainzalbumartistid': '' /* string */, 'musicbrainzalbumid': '' /* string */, 'rating': 0 /* integer */, 'year': 0 /* integer */, 'genre': '' /* string */ } ], 'limits': { /* id: List.LimitsReturned */ 'end': -1 /* integer, minimum: 0 */, 'start': 0 /* integer, minimum: 0 */, 'total': undefined /* integer, minimum: 0 */ } } }
Files.GetSources
Get the sources of the media windows
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'Files.GetSources', 'id': undefined /* integer */, 'params': { 'media': 'video' /* string, id: Files.Media */, 'limits': { /* id: List.Limits */ 'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 'start': 0 /* integer, minimum: 0 */ }, 'sort': { /* id: List.Sort */ 'ignorearticle': false /* boolean */, 'method': 'none' /* string */, 'order': 'ascending' /* string */ } } }
Returns
{ 'jsonrpc': '2.0', 'method': 'Files.GetSources', 'id': undefined /* integer */, 'result': { 'limits': { /* id: List.LimitsReturned */ 'end': -1 /* integer, minimum: 0 */, 'start': 0 /* integer, minimum: 0 */, 'total': undefined /* integer, minimum: 0 */ }, 'sources': [ /* array, id: List.Items.Sources */ { 'file': undefined /* string */ } ] } }
Files.PrepareDownload
Provides a way to download a given file (e.g. providing an URL to the real file location)
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'Files.PrepareDownload', 'id': undefined /* integer */, 'params': { 'path': undefined /* string */ } }
Returns
{ 'jsonrpc': '2.0', 'method': 'Files.PrepareDownload', 'id': undefined /* integer */, 'result': { 'details': undefined /* any, Transport specific details on how/from where to download the given file */, 'mode': undefined /* string, Direct mode allows using Files.Download whereas redirect mode requires the usage of a different protocol */, 'protocol': undefined /* string */ } }
AudioLibrary
Audio Library information
Notifications
AudioLibrary.OnRemove
An audio item has been removed.
Returns
{ 'jsonrpc': '2.0', 'method': 'AudioLibrary.OnRemove', 'params': { 'sender': undefined /* string */, 'data': { 'id': -1 /* integer, id: Library.Id, minimum: 1 */, 'type': undefined } } }
AudioLibrary.OnUpdate
An audio item has been updated.
Returns
{ 'jsonrpc': '2.0', 'method': 'AudioLibrary.OnUpdate', 'params': { 'sender': undefined /* string */, 'data': { 'id': -1 /* integer, id: Library.Id, minimum: 1 */, 'type': undefined /* string ('song'), id: Notifications.Library.Audio.Type */ } } }
Methods
AudioLibrary.Clean
Cleans the audio library from non-existent items
Permissions
RemoveData
Syntax
{ 'jsonrpc': '2.0', 'method': 'AudioLibrary.Clean', 'id': undefined /* integer */ }
Returns
{ 'jsonrpc': '2.0', 'method': 'AudioLibrary.Clean', 'id': undefined /* integer */, 'result': undefined /* string */ }
AudioLibrary.Export
Exports all items from the audio library
Permissions
WriteFile
Syntax
{ 'jsonrpc': '2.0', 'method': 'AudioLibrary.Export', 'id': undefined /* integer */, 'params': { 'options': { 'path': undefined /* string, minimum length: 1, Path to the directory to where the data should be exported */ } or { 'images': false /* boolean, Whether to export thumbnails and fanart images */, 'overwrite': false /* boolean, Whether to overwrite existing exported files */ } } }
Returns
{ 'jsonrpc': '2.0', 'method': 'AudioLibrary.Export', 'id': undefined /* integer */, 'result': undefined /* string */ }
AudioLibrary.GetAlbumDetails
Retrieve details about a specific album
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'AudioLibrary.GetAlbumDetails', 'id': undefined /* integer */, 'params': { 'albumid': -1 /* integer, id: Library.Id, minimum: 1 */, 'properties': [ /* id: Audio.Fields.Album */ undefined /* string */ ] } }
Returns
{ 'jsonrpc': '2.0', 'method': 'AudioLibrary.GetAlbumDetails', 'id': undefined /* integer */, 'result': { 'albumdetails': { /* id: Audio.Details.Album */ 'albumid': -1 /* integer, id: Library.Id, minimum: 1 */, 'albumlabel': '' /* string */, 'artistid': -1 /* integer, id: Library.Id, minimum: 1 */, 'description': '' /* string */, 'mood': '' /* string */, 'style': '' /* string */, 'theme': '' /* string */, 'type': '' /* string */, 'artist': '' /* string */, 'musicbrainzalbumartistid': '' /* string */, 'musicbrainzalbumid': '' /* string */, 'rating': 0 /* integer */, 'title': '' /* string */, 'year': 0 /* integer */, 'genre': '' /* string */, 'fanart': '' /* string */, 'thumbnail': '' /* string */, 'label': undefined /* string */ } } }
AudioLibrary.GetAlbums
Retrieve all albums from specified artist or genre
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'AudioLibrary.GetAlbums', 'id': undefined /* integer */, 'params': { 'artistid': -1 /* integer, id: Library.Id, minimum: 1 */, 'genreid': -1 /* integer, id: Library.Id, minimum: 1 */, 'properties': [ /* id: Audio.Fields.Album */ undefined /* string */ ], 'limits': { /* id: List.Limits */ 'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 'start': 0 /* integer, minimum: 0 */ }, 'sort': { /* id: List.Sort */ 'ignorearticle': false /* boolean */, 'method': 'none' /* string */, 'order': 'ascending' /* string */ } } }
Returns
{ 'jsonrpc': '2.0', 'method': 'AudioLibrary.GetAlbums', 'id': undefined /* integer */, 'result': { 'albums': [ /* array */ { /* id: Audio.Details.Album */ 'albumid': -1 /* integer, id: Library.Id, minimum: 1 */, 'albumlabel': '' /* string */, 'artistid': -1 /* integer, id: Library.Id, minimum: 1 */, 'description': '' /* string */, 'mood': '' /* string */, 'style': '' /* string */, 'theme': '' /* string */, 'type': '' /* string */, 'artist': '' /* string */, 'musicbrainzalbumartistid': '' /* string */, 'musicbrainzalbumid': '' /* string */, 'rating': 0 /* integer */, 'title': '' /* string */, 'year': 0 /* integer */, 'genre': '' /* string */, 'fanart': '' /* string */, 'thumbnail': '' /* string */, 'label': undefined /* string */ } ], 'limits': { /* id: List.LimitsReturned */ 'end': -1 /* integer, minimum: 0 */, 'start': 0 /* integer, minimum: 0 */, 'total': undefined /* integer, minimum: 0 */ } } }
AudioLibrary.GetArtistDetails
Retrieve details about a specific artist
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'AudioLibrary.GetArtistDetails', 'id': undefined /* integer */, 'params': { 'artistid': -1 /* integer, id: Library.Id, minimum: 1 */, 'properties': [ /* id: Audio.Fields.Artist */ undefined /* string */ ] } }
Returns
{ 'jsonrpc': '2.0', 'method': 'AudioLibrary.GetArtistDetails', 'id': undefined /* integer */, 'result': { 'artistdetails': { /* id: Audio.Details.Artist */ 'artist': undefined /* string */, 'artistid': -1 /* integer, id: Library.Id, minimum: 1 */, 'born': '' /* string */, 'description': '' /* string */, 'died': '' /* string */, 'disbanded': '' /* string */, 'formed': '' /* string */, 'instrument': '' /* string */, 'mood': '' /* string */, 'musicbrainzartistid': '' /* string */, 'style': '' /* string */, 'yearsactive': '' /* string */, 'genre': '' /* string */, 'fanart': '' /* string */, 'thumbnail': '' /* string */, 'label': undefined /* string */ } } }
AudioLibrary.GetArtists
Retrieve all artists
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'AudioLibrary.GetArtists', 'id': undefined /* integer */, 'params': { 'albumartistsonly': undefined /* null */ or undefined /* boolean */, 'genreid': -1 /* integer, id: Library.Id, minimum: 1 */, 'properties': [ /* id: Audio.Fields.Artist */ undefined /* string */ ], 'limits': { /* id: List.Limits */ 'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 'start': 0 /* integer, minimum: 0 */ }, 'sort': { /* id: List.Sort */ 'ignorearticle': false /* boolean */, 'method': 'none' /* string */, 'order': 'ascending' /* string */ } } }
Returns
{ 'jsonrpc': '2.0', 'method': 'AudioLibrary.GetArtists', 'id': undefined /* integer */, 'result': { 'artists': [ /* array */ { /* id: Audio.Details.Artist */ 'artist': undefined /* string */, 'artistid': -1 /* integer, id: Library.Id, minimum: 1 */, 'born': '' /* string */, 'description': '' /* string */, 'died': '' /* string */, 'disbanded': '' /* string */, 'formed': '' /* string */, 'instrument': '' /* string */, 'mood': '' /* string */, 'musicbrainzartistid': '' /* string */, 'style': '' /* string */, 'yearsactive': '' /* string */, 'genre': '' /* string */, 'fanart': '' /* string */, 'thumbnail': '' /* string */, 'label': undefined /* string */ } ], 'limits': { /* id: List.LimitsReturned */ 'end': -1 /* integer, minimum: 0 */, 'start': 0 /* integer, minimum: 0 */, 'total': undefined /* integer, minimum: 0 */ } } }
AudioLibrary.GetGenres
Retrieve all genres
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'AudioLibrary.GetGenres', 'id': undefined /* integer */, 'params': { 'properties': [ /* id: Library.Fields.Genre */ undefined /* string */ ], 'limits': { /* id: List.Limits */ 'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 'start': 0 /* integer, minimum: 0 */ }, 'sort': { /* id: List.Sort */ 'ignorearticle': false /* boolean */, 'method': 'none' /* string */, 'order': 'ascending' /* string */ } } }
Returns
{ 'jsonrpc': '2.0', 'method': 'AudioLibrary.GetGenres', 'id': undefined /* integer */, 'result': { 'genres': [ /* array */ { /* id: Library.Details.Genre */ 'genreid': -1 /* integer, id: Library.Id, minimum: 1 */, 'thumbnail': '' /* string */, 'title': '' /* string */, 'label': undefined /* string */ } ], 'limits': { /* id: List.LimitsReturned */ 'end': -1 /* integer, minimum: 0 */, 'start': 0 /* integer, minimum: 0 */, 'total': undefined /* integer, minimum: 0 */ } } }
AudioLibrary.GetRecentlyAddedAlbums
Retrieve recently added albums
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'AudioLibrary.GetRecentlyAddedAlbums', 'id': undefined /* integer */, 'params': { 'properties': [ /* id: Audio.Fields.Album */ undefined /* string */ ], 'limits': { /* id: List.Limits */ 'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 'start': 0 /* integer, minimum: 0 */ }, 'sort': { /* id: List.Sort */ 'ignorearticle': false /* boolean */, 'method': 'none' /* string */, 'order': 'ascending' /* string */ } } }
Returns
{ 'jsonrpc': '2.0', 'method': 'AudioLibrary.GetRecentlyAddedAlbums', 'id': undefined /* integer */, 'result': { 'albums': [ /* array */ { /* id: Audio.Details.Album */ 'albumid': -1 /* integer, id: Library.Id, minimum: 1 */, 'albumlabel': '' /* string */, 'artistid': -1 /* integer, id: Library.Id, minimum: 1 */, 'description': '' /* string */, 'mood': '' /* string */, 'style': '' /* string */, 'theme': '' /* string */, 'type': '' /* string */, 'artist': '' /* string */, 'musicbrainzalbumartistid': '' /* string */, 'musicbrainzalbumid': '' /* string */, 'rating': 0 /* integer */, 'title': '' /* string */, 'year': 0 /* integer */, 'genre': '' /* string */, 'fanart': '' /* string */, 'thumbnail': '' /* string */, 'label': undefined /* string */ } ], 'limits': { /* id: List.LimitsReturned */ 'end': -1 /* integer, minimum: 0 */, 'start': 0 /* integer, minimum: 0 */, 'total': undefined /* integer, minimum: 0 */ } } }
AudioLibrary.GetRecentlyAddedSongs
Retrieve recently added songs
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'AudioLibrary.GetRecentlyAddedSongs', 'id': undefined /* integer */, 'params': { 'albumlimit': -1 /* integer, id: List.Amount, minimum: 0, The amount of recently added albums from which to return the songs */, 'properties': [ /* id: Audio.Fields.Song */ undefined /* string */ ], 'limits': { /* id: List.Limits */ 'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 'start': 0 /* integer, minimum: 0 */ }, 'sort': { /* id: List.Sort */ 'ignorearticle': false /* boolean */, 'method': 'none' /* string */, 'order': 'ascending' /* string */ } } }
Returns
{ 'jsonrpc': '2.0', 'method': 'AudioLibrary.GetRecentlyAddedSongs', 'id': undefined /* integer */, 'result': { 'limits': { /* id: List.LimitsReturned */ 'end': -1 /* integer, minimum: 0 */, 'start': 0 /* integer, minimum: 0 */, 'total': undefined /* integer, minimum: 0 */ }, 'songs': [ /* array */ { /* id: Audio.Details.Song */ 'album': '' /* string */, 'albumartist': '' /* string */, 'albumid': -1 /* integer, id: Library.Id, minimum: 1 */, 'artistid': -1 /* integer, id: Library.Id, minimum: 1 */, 'comment': '' /* string */, 'duration': 0 /* integer */, 'file': '' /* string */, 'lyrics': '' /* string */, 'musicbrainzartistid': '' /* string */, 'musicbrainztrackid': '' /* string */, 'playcount': 0 /* integer */, 'songid': -1 /* integer, id: Library.Id, minimum: 1 */, 'track': 0 /* integer */, 'artist': '' /* string */, 'musicbrainzalbumartistid': '' /* string */, 'musicbrainzalbumid': '' /* string */, 'rating': 0 /* integer */, 'title': '' /* string */, 'year': 0 /* integer */, 'genre': '' /* string */, 'fanart': '' /* string */, 'thumbnail': '' /* string */, 'label': undefined /* string */ } ] } }
AudioLibrary.GetSongDetails
Retrieve details about a specific song
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'AudioLibrary.GetSongDetails', 'id': undefined /* integer */, 'params': { 'songid': -1 /* integer, id: Library.Id, minimum: 1 */, 'properties': [ /* id: Audio.Fields.Song */ undefined /* string */ ] } }
Returns
{ 'jsonrpc': '2.0', 'method': 'AudioLibrary.GetSongDetails', 'id': undefined /* integer */, 'result': { 'songdetails': { /* id: Audio.Details.Song */ 'album': '' /* string */, 'albumartist': '' /* string */, 'albumid': -1 /* integer, id: Library.Id, minimum: 1 */, 'artistid': -1 /* integer, id: Library.Id, minimum: 1 */, 'comment': '' /* string */, 'duration': 0 /* integer */, 'file': '' /* string */, 'lyrics': '' /* string */, 'musicbrainzartistid': '' /* string */, 'musicbrainztrackid': '' /* string */, 'playcount': 0 /* integer */, 'songid': -1 /* integer, id: Library.Id, minimum: 1 */, 'track': 0 /* integer */, 'artist': '' /* string */, 'musicbrainzalbumartistid': '' /* string */, 'musicbrainzalbumid': '' /* string */, 'rating': 0 /* integer */, 'title': '' /* string */, 'year': 0 /* integer */, 'genre': '' /* string */, 'fanart': '' /* string */, 'thumbnail': '' /* string */, 'label': undefined /* string */ } } }
AudioLibrary.GetSongs
Retrieve all songs from specified album, artist or genre
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'AudioLibrary.GetSongs', 'id': undefined /* integer */, 'params': { 'artistid': -1 /* integer, id: Library.Id, minimum: 1 */, 'albumid': -1 /* integer, id: Library.Id, minimum: 1 */, 'genreid': -1 /* integer, id: Library.Id, minimum: 1 */, 'properties': [ /* id: Audio.Fields.Song */ undefined /* string */ ], 'limits': { /* id: List.Limits */ 'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 'start': 0 /* integer, minimum: 0 */ }, 'sort': { /* id: List.Sort */ 'ignorearticle': false /* boolean */, 'method': 'none' /* string */, 'order': 'ascending' /* string */ } } }
Returns
{ 'jsonrpc': '2.0', 'method': 'AudioLibrary.GetSongs', 'id': undefined /* integer */, 'result': { 'limits': { /* id: List.LimitsReturned */ 'end': -1 /* integer, minimum: 0 */, 'start': 0 /* integer, minimum: 0 */, 'total': undefined /* integer, minimum: 0 */ }, 'songs': [ /* array */ { /* id: Audio.Details.Song */ 'album': '' /* string */, 'albumartist': '' /* string */, 'albumid': -1 /* integer, id: Library.Id, minimum: 1 */, 'artistid': -1 /* integer, id: Library.Id, minimum: 1 */, 'comment': '' /* string */, 'duration': 0 /* integer */, 'file': '' /* string */, 'lyrics': '' /* string */, 'musicbrainzartistid': '' /* string */, 'musicbrainztrackid': '' /* string */, 'playcount': 0 /* integer */, 'songid': -1 /* integer, id: Library.Id, minimum: 1 */, 'track': 0 /* integer */, 'artist': '' /* string */, 'musicbrainzalbumartistid': '' /* string */, 'musicbrainzalbumid': '' /* string */, 'rating': 0 /* integer */, 'title': '' /* string */, 'year': 0 /* integer */, 'genre': '' /* string */, 'fanart': '' /* string */, 'thumbnail': '' /* string */, 'label': undefined /* string */ } ] } }
AudioLibrary.Scan
Scans the audio sources for new library items
Permissions
UpdateData
Syntax
{ 'jsonrpc': '2.0', 'method': 'AudioLibrary.Scan', 'id': undefined /* integer */ }
Returns
{ 'jsonrpc': '2.0', 'method': 'AudioLibrary.Scan', 'id': undefined /* integer */, 'result': undefined /* string */ }
VideoLibrary
Video Library information
Notifications
VideoLibrary.OnRemove
A video item has been removed.
Returns
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.OnRemove', 'params': { 'sender': undefined /* string */, 'data': { 'id': -1 /* integer, id: Library.Id, minimum: 1 */, 'type': undefined } } }
VideoLibrary.OnUpdate
A video item has been updated.
Returns
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.OnUpdate', 'params': { 'sender': undefined /* string */, 'data': { 'id': -1 /* integer, id: Library.Id, minimum: 1 */, 'playcount': -1 /* integer, minimum: 0 */, 'type': undefined /* string ('movie', 'tvshow', 'episode', 'musicvideo'), id: Notifications.Library.Video.Type */ } } }
Methods
VideoLibrary.Clean
Cleans the video library from non-existent items
Permissions
RemoveData
Syntax
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.Clean', 'id': undefined /* integer */ }
Returns
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.Clean', 'id': undefined /* integer */, 'result': undefined /* string */ }
VideoLibrary.Export
Exports all items from the video library
Permissions
WriteFile
Syntax
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.Export', 'id': undefined /* integer */, 'params': { 'options': { 'path': undefined /* string, minimum length: 1, Path to the directory to where the data should be exported */ } or { 'actorthumbs': false /* boolean, Whether to export actor thumbnails */, 'images': false /* boolean, Whether to export thumbnails and fanart images */, 'overwrite': false /* boolean, Whether to overwrite existing exported files */ } } }
Returns
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.Export', 'id': undefined /* integer */, 'result': undefined /* string */ }
VideoLibrary.GetEpisodeDetails
Retrieve details about a specific tv show episode
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.GetEpisodeDetails', 'id': undefined /* integer */, 'params': { 'episodeid': -1 /* integer, id: Library.Id, minimum: 1 */, 'properties': [ /* id: Video.Fields.Episode */ undefined /* string, Requesting the cast and/or resume field will result in increased response times */ ] } }
Returns
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.GetEpisodeDetails', 'id': undefined /* integer */, 'result': { 'episodedetails': { /* id: Video.Details.Episode */ 'cast': [ /* array, id: Video.Cast */ { 'name': undefined /* string */, 'role': undefined /* string */, 'thumbnail': '' /* string */ } ], 'episode': 0 /* integer */, 'episodeid': -1 /* integer, id: Library.Id, minimum: 1 */, 'firstaired': '' /* string */, 'originaltitle': '' /* string */, 'productioncode': '' /* string */, 'rating': 0 /* number */, 'season': 0 /* integer */, 'showtitle': '' /* string */, 'tvshowid': -1 /* integer, id: Library.Id, minimum: 1 */, 'votes': '' /* string */, 'writer': '' /* string */, 'director': '' /* string */, 'resume': { /* id: Video.Resume */ 'position': 0 /* number, minimum: 0 */, 'total': 0 /* number, minimum: 0 */ }, 'runtime': '' /* string */, 'streamdetails': { /* id: Video.Streams */ 'audio': [ /* array, minimum items: 1 */ { 'channels': 0 /* integer */, 'codec': '' /* string */, 'language': '' /* string */ } ], 'subtitle': [ /* array, minimum items: 1 */ { 'language': '' /* string */ } ], 'video': [ /* array, minimum items: 1 */ { 'aspect': 0 /* number */, 'codec': '' /* string */, 'duration': 0 /* integer */, 'height': 0 /* integer */, 'width': 0 /* integer */ } ] }, 'file': '' /* string */, 'lastplayed': '' /* string */, 'plot': '' /* string */, 'title': '' /* string */, 'playcount': 0 /* integer */, 'fanart': '' /* string */, 'thumbnail': '' /* string */, 'label': undefined /* string */ } } }
VideoLibrary.GetEpisodes
Retrieve all tv show episodes
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.GetEpisodes', 'id': undefined /* integer */, 'params': { 'tvshowid': -1 /* integer, id: Library.Id, minimum: 1 */, 'season': -1 /* integer, minimum: 0 */, 'properties': [ /* id: Video.Fields.Episode */ undefined /* string, Requesting the cast and/or resume field will result in increased response times */ ], 'limits': { /* id: List.Limits */ 'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 'start': 0 /* integer, minimum: 0 */ }, 'sort': { /* id: List.Sort */ 'ignorearticle': false /* boolean */, 'method': 'none' /* string */, 'order': 'ascending' /* string */ } } }
Returns
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.GetEpisodes', 'id': undefined /* integer */, 'result': { 'episodes': [ /* array */ { /* id: Video.Details.Episode */ 'cast': [ /* array, id: Video.Cast */ { 'name': undefined /* string */, 'role': undefined /* string */, 'thumbnail': '' /* string */ } ], 'episode': 0 /* integer */, 'episodeid': -1 /* integer, id: Library.Id, minimum: 1 */, 'firstaired': '' /* string */, 'originaltitle': '' /* string */, 'productioncode': '' /* string */, 'rating': 0 /* number */, 'season': 0 /* integer */, 'showtitle': '' /* string */, 'tvshowid': -1 /* integer, id: Library.Id, minimum: 1 */, 'votes': '' /* string */, 'writer': '' /* string */, 'director': '' /* string */, 'resume': { /* id: Video.Resume */ 'position': 0 /* number, minimum: 0 */, 'total': 0 /* number, minimum: 0 */ }, 'runtime': '' /* string */, 'streamdetails': { /* id: Video.Streams */ 'audio': [ /* array, minimum items: 1 */ { 'channels': 0 /* integer */, 'codec': '' /* string */, 'language': '' /* string */ } ], 'subtitle': [ /* array, minimum items: 1 */ { 'language': '' /* string */ } ], 'video': [ /* array, minimum items: 1 */ { 'aspect': 0 /* number */, 'codec': '' /* string */, 'duration': 0 /* integer */, 'height': 0 /* integer */, 'width': 0 /* integer */ } ] }, 'file': '' /* string */, 'lastplayed': '' /* string */, 'plot': '' /* string */, 'title': '' /* string */, 'playcount': 0 /* integer */, 'fanart': '' /* string */, 'thumbnail': '' /* string */, 'label': undefined /* string */ } ], 'limits': { /* id: List.LimitsReturned */ 'end': -1 /* integer, minimum: 0 */, 'start': 0 /* integer, minimum: 0 */, 'total': undefined /* integer, minimum: 0 */ } } }
VideoLibrary.GetGenres
Retrieve all genres
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.GetGenres', 'id': undefined /* integer */, 'params': { 'type': undefined /* string */, 'properties': [ /* id: Library.Fields.Genre */ undefined /* string */ ], 'limits': { /* id: List.Limits */ 'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 'start': 0 /* integer, minimum: 0 */ }, 'sort': { /* id: List.Sort */ 'ignorearticle': false /* boolean */, 'method': 'none' /* string */, 'order': 'ascending' /* string */ } } }
Returns
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.GetGenres', 'id': undefined /* integer */, 'result': { 'genres': [ /* array */ { /* id: Library.Details.Genre */ 'genreid': -1 /* integer, id: Library.Id, minimum: 1 */, 'thumbnail': '' /* string */, 'title': '' /* string */, 'label': undefined /* string */ } ], 'limits': { /* id: List.LimitsReturned */ 'end': -1 /* integer, minimum: 0 */, 'start': 0 /* integer, minimum: 0 */, 'total': undefined /* integer, minimum: 0 */ } } }
VideoLibrary.GetMovieDetails
Retrieve details about a specific movie
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.GetMovieDetails', 'id': undefined /* integer */, 'params': { 'movieid': -1 /* integer, id: Library.Id, minimum: 1 */, 'properties': [ /* id: Video.Fields.Movie */ undefined /* string, Requesting the cast, set, showling and/or resume field will result in increased response times */ ] } }
Returns
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.GetMovieDetails', 'id': undefined /* integer */, 'result': { 'moviedetails': { /* id: Video.Details.Movie */ 'cast': [ /* array, id: Video.Cast */ { 'name': undefined /* string */, 'role': undefined /* string */, 'thumbnail': '' /* string */ } ], 'country': '' /* string */, 'genre': '' /* string */, 'imdbnumber': '' /* string */, 'movieid': -1 /* integer, id: Library.Id, minimum: 1 */, 'mpaa': '' /* string */, 'originaltitle': '' /* string */, 'plotoutline': '' /* string */, 'premiered': '' /* string */, 'productioncode': '' /* string */, 'rating': 0 /* number */, 'set': [ /* array, id: Array.String */ undefined /* string, minimum length: 1 */ ], 'setid': [ /* array, id: Array.Integer */ undefined /* integer */ ], 'showlink': '' /* string */, 'sorttitle': '' /* string */, 'studio': '' /* string */, 'tagline': '' /* string */, 'top250': 0 /* integer */, 'trailer': '' /* string */, 'votes': '' /* string */, 'writer': '' /* string */, 'year': 0 /* integer */, 'director': '' /* string */, 'resume': { /* id: Video.Resume */ 'position': 0 /* number, minimum: 0 */, 'total': 0 /* number, minimum: 0 */ }, 'runtime': '' /* string */, 'streamdetails': { /* id: Video.Streams */ 'audio': [ /* array, minimum items: 1 */ { 'channels': 0 /* integer */, 'codec': '' /* string */, 'language': '' /* string */ } ], 'subtitle': [ /* array, minimum items: 1 */ { 'language': '' /* string */ } ], 'video': [ /* array, minimum items: 1 */ { 'aspect': 0 /* number */, 'codec': '' /* string */, 'duration': 0 /* integer */, 'height': 0 /* integer */, 'width': 0 /* integer */ } ] }, 'file': '' /* string */, 'lastplayed': '' /* string */, 'plot': '' /* string */, 'title': '' /* string */, 'playcount': 0 /* integer */, 'fanart': '' /* string */, 'thumbnail': '' /* string */, 'label': undefined /* string */ } } }
VideoLibrary.GetMovieSetDetails
Retrieve details about a specific movie set
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.GetMovieSetDetails', 'id': undefined /* integer */, 'params': { 'setid': -1 /* integer, id: Library.Id, minimum: 1 */, 'properties': [ /* id: Video.Fields.MovieSet */ undefined /* string */ ], 'movies': { 'limits': { /* id: List.Limits */ 'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 'start': 0 /* integer, minimum: 0 */ }, 'properties': [ /* id: Video.Fields.Movie */ undefined /* string, Requesting the cast, set, showling and/or resume field will result in increased response times */ ], 'sort': { /* id: List.Sort */ 'ignorearticle': false /* boolean */, 'method': 'none' /* string */, 'order': 'ascending' /* string */ } } } }
Returns
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.GetMovieSetDetails', 'id': undefined /* integer */, 'result': { 'setdetails': { /* id: Video.Details.MovieSet.Extended */ 'movies': [ /* array */ { /* id: Video.Details.Movie */ 'cast': [ /* array, id: Video.Cast */ { 'name': undefined /* string */, 'role': undefined /* string */, 'thumbnail': '' /* string */ } ], 'country': '' /* string */, 'genre': '' /* string */, 'imdbnumber': '' /* string */, 'movieid': -1 /* integer, id: Library.Id, minimum: 1 */, 'mpaa': '' /* string */, 'originaltitle': '' /* string */, 'plotoutline': '' /* string */, 'premiered': '' /* string */, 'productioncode': '' /* string */, 'rating': 0 /* number */, 'set': [ /* array, id: Array.String */ undefined /* string, minimum length: 1 */ ], 'setid': [ /* array, id: Array.Integer */ undefined /* integer */ ], 'showlink': '' /* string */, 'sorttitle': '' /* string */, 'studio': '' /* string */, 'tagline': '' /* string */, 'top250': 0 /* integer */, 'trailer': '' /* string */, 'votes': '' /* string */, 'writer': '' /* string */, 'year': 0 /* integer */, 'director': '' /* string */, 'resume': { /* id: Video.Resume */ 'position': 0 /* number, minimum: 0 */, 'total': 0 /* number, minimum: 0 */ }, 'runtime': '' /* string */, 'streamdetails': { /* id: Video.Streams */ 'audio': [ /* array, minimum items: 1 */ { 'channels': 0 /* integer */, 'codec': '' /* string */, 'language': '' /* string */ } ], 'subtitle': [ /* array, minimum items: 1 */ { 'language': '' /* string */ } ], 'video': [ /* array, minimum items: 1 */ { 'aspect': 0 /* number */, 'codec': '' /* string */, 'duration': 0 /* integer */, 'height': 0 /* integer */, 'width': 0 /* integer */ } ] }, 'file': '' /* string */, 'lastplayed': '' /* string */, 'plot': '' /* string */, 'title': '' /* string */, 'playcount': 0 /* integer */, 'fanart': '' /* string */, 'thumbnail': '' /* string */, 'label': undefined /* string */ } ], 'setid': -1 /* integer, id: Library.Id, minimum: 1 */, 'title': '' /* string */, 'playcount': 0 /* integer */, 'fanart': '' /* string */, 'thumbnail': '' /* string */, 'label': undefined /* string */ } } }
VideoLibrary.GetMovieSets
Retrieve all movie sets
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.GetMovieSets', 'id': undefined /* integer */, 'params': { 'properties': [ /* id: Video.Fields.MovieSet */ undefined /* string */ ], 'limits': { /* id: List.Limits */ 'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 'start': 0 /* integer, minimum: 0 */ }, 'sort': { /* id: List.Sort */ 'ignorearticle': false /* boolean */, 'method': 'none' /* string */, 'order': 'ascending' /* string */ } } }
Returns
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.GetMovieSets', 'id': undefined /* integer */, 'result': { 'limits': { /* id: List.LimitsReturned */ 'end': -1 /* integer, minimum: 0 */, 'start': 0 /* integer, minimum: 0 */, 'total': undefined /* integer, minimum: 0 */ }, 'sets': [ /* array */ { /* id: Video.Details.MovieSet */ 'setid': -1 /* integer, id: Library.Id, minimum: 1 */, 'title': '' /* string */, 'playcount': 0 /* integer */, 'fanart': '' /* string */, 'thumbnail': '' /* string */, 'label': undefined /* string */ } ] } }
VideoLibrary.GetMovies
Retrieve all movies
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.GetMovies', 'id': undefined /* integer */, 'params': { 'properties': [ /* id: Video.Fields.Movie */ undefined /* string, Requesting the cast, set, showling and/or resume field will result in increased response times */ ], 'limits': { /* id: List.Limits */ 'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 'start': 0 /* integer, minimum: 0 */ }, 'sort': { /* id: List.Sort */ 'ignorearticle': false /* boolean */, 'method': 'none' /* string */, 'order': 'ascending' /* string */ } } }
Returns
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.GetMovies', 'id': undefined /* integer */, 'result': { 'limits': { /* id: List.LimitsReturned */ 'end': -1 /* integer, minimum: 0 */, 'start': 0 /* integer, minimum: 0 */, 'total': undefined /* integer, minimum: 0 */ }, 'movies': [ /* array */ { /* id: Video.Details.Movie */ 'cast': [ /* array, id: Video.Cast */ { 'name': undefined /* string */, 'role': undefined /* string */, 'thumbnail': '' /* string */ } ], 'country': '' /* string */, 'genre': '' /* string */, 'imdbnumber': '' /* string */, 'movieid': -1 /* integer, id: Library.Id, minimum: 1 */, 'mpaa': '' /* string */, 'originaltitle': '' /* string */, 'plotoutline': '' /* string */, 'premiered': '' /* string */, 'productioncode': '' /* string */, 'rating': 0 /* number */, 'set': [ /* array, id: Array.String */ undefined /* string, minimum length: 1 */ ], 'setid': [ /* array, id: Array.Integer */ undefined /* integer */ ], 'showlink': '' /* string */, 'sorttitle': '' /* string */, 'studio': '' /* string */, 'tagline': '' /* string */, 'top250': 0 /* integer */, 'trailer': '' /* string */, 'votes': '' /* string */, 'writer': '' /* string */, 'year': 0 /* integer */, 'director': '' /* string */, 'resume': { /* id: Video.Resume */ 'position': 0 /* number, minimum: 0 */, 'total': 0 /* number, minimum: 0 */ }, 'runtime': '' /* string */, 'streamdetails': { /* id: Video.Streams */ 'audio': [ /* array, minimum items: 1 */ { 'channels': 0 /* integer */, 'codec': '' /* string */, 'language': '' /* string */ } ], 'subtitle': [ /* array, minimum items: 1 */ { 'language': '' /* string */ } ], 'video': [ /* array, minimum items: 1 */ { 'aspect': 0 /* number */, 'codec': '' /* string */, 'duration': 0 /* integer */, 'height': 0 /* integer */, 'width': 0 /* integer */ } ] }, 'file': '' /* string */, 'lastplayed': '' /* string */, 'plot': '' /* string */, 'title': '' /* string */, 'playcount': 0 /* integer */, 'fanart': '' /* string */, 'thumbnail': '' /* string */, 'label': undefined /* string */ } ] } }
VideoLibrary.GetMusicVideoDetails
Retrieve details about a specific music video
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.GetMusicVideoDetails', 'id': undefined /* integer */, 'params': { 'musicvideoid': -1 /* integer, id: Library.Id, minimum: 1 */, 'properties': [ /* id: Video.Fields.MusicVideo */ undefined /* string, Requesting the resume field will result in increased response times */ ] } }
Returns
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.GetMusicVideoDetails', 'id': undefined /* integer */, 'result': { 'musicvideodetails': { /* id: Video.Details.MusicVideo */ 'album': '' /* string */, 'artist': '' /* string */, 'genre': '' /* string */, 'musicvideoid': -1 /* integer, id: Library.Id, minimum: 1 */, 'studio': '' /* string */, 'track': 0 /* integer */, 'year': 0 /* integer */, 'director': '' /* string */, 'resume': { /* id: Video.Resume */ 'position': 0 /* number, minimum: 0 */, 'total': 0 /* number, minimum: 0 */ }, 'runtime': '' /* string */, 'streamdetails': { /* id: Video.Streams */ 'audio': [ /* array, minimum items: 1 */ { 'channels': 0 /* integer */, 'codec': '' /* string */, 'language': '' /* string */ } ], 'subtitle': [ /* array, minimum items: 1 */ { 'language': '' /* string */ } ], 'video': [ /* array, minimum items: 1 */ { 'aspect': 0 /* number */, 'codec': '' /* string */, 'duration': 0 /* integer */, 'height': 0 /* integer */, 'width': 0 /* integer */ } ] }, 'file': '' /* string */, 'lastplayed': '' /* string */, 'plot': '' /* string */, 'title': '' /* string */, 'playcount': 0 /* integer */, 'fanart': '' /* string */, 'thumbnail': '' /* string */, 'label': undefined /* string */ } } }
VideoLibrary.GetMusicVideos
Retrieve all music videos
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.GetMusicVideos', 'id': undefined /* integer */, 'params': { 'artistid': -1 /* integer, id: Library.Id, minimum: 1 */, 'albumid': -1 /* integer, id: Library.Id, minimum: 1 */, 'properties': [ /* id: Video.Fields.MusicVideo */ undefined /* string, Requesting the resume field will result in increased response times */ ], 'limits': { /* id: List.Limits */ 'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 'start': 0 /* integer, minimum: 0 */ }, 'sort': { /* id: List.Sort */ 'ignorearticle': false /* boolean */, 'method': 'none' /* string */, 'order': 'ascending' /* string */ } } }
Returns
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.GetMusicVideos', 'id': undefined /* integer */, 'result': { 'limits': { /* id: List.LimitsReturned */ 'end': -1 /* integer, minimum: 0 */, 'start': 0 /* integer, minimum: 0 */, 'total': undefined /* integer, minimum: 0 */ }, 'musicvideos': [ /* array */ { /* id: Video.Details.MusicVideo */ 'album': '' /* string */, 'artist': '' /* string */, 'genre': '' /* string */, 'musicvideoid': -1 /* integer, id: Library.Id, minimum: 1 */, 'studio': '' /* string */, 'track': 0 /* integer */, 'year': 0 /* integer */, 'director': '' /* string */, 'resume': { /* id: Video.Resume */ 'position': 0 /* number, minimum: 0 */, 'total': 0 /* number, minimum: 0 */ }, 'runtime': '' /* string */, 'streamdetails': { /* id: Video.Streams */ 'audio': [ /* array, minimum items: 1 */ { 'channels': 0 /* integer */, 'codec': '' /* string */, 'language': '' /* string */ } ], 'subtitle': [ /* array, minimum items: 1 */ { 'language': '' /* string */ } ], 'video': [ /* array, minimum items: 1 */ { 'aspect': 0 /* number */, 'codec': '' /* string */, 'duration': 0 /* integer */, 'height': 0 /* integer */, 'width': 0 /* integer */ } ] }, 'file': '' /* string */, 'lastplayed': '' /* string */, 'plot': '' /* string */, 'title': '' /* string */, 'playcount': 0 /* integer */, 'fanart': '' /* string */, 'thumbnail': '' /* string */, 'label': undefined /* string */ } ] } }
VideoLibrary.GetRecentlyAddedEpisodes
Retrieve all recently added tv episodes
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.GetRecentlyAddedEpisodes', 'id': undefined /* integer */, 'params': { 'properties': [ /* id: Video.Fields.Episode */ undefined /* string, Requesting the cast and/or resume field will result in increased response times */ ], 'limits': { /* id: List.Limits */ 'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 'start': 0 /* integer, minimum: 0 */ }, 'sort': { /* id: List.Sort */ 'ignorearticle': false /* boolean */, 'method': 'none' /* string */, 'order': 'ascending' /* string */ } } }
Returns
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.GetRecentlyAddedEpisodes', 'id': undefined /* integer */, 'result': { 'episodes': [ /* array */ { /* id: Video.Details.Episode */ 'cast': [ /* array, id: Video.Cast */ { 'name': undefined /* string */, 'role': undefined /* string */, 'thumbnail': '' /* string */ } ], 'episode': 0 /* integer */, 'episodeid': -1 /* integer, id: Library.Id, minimum: 1 */, 'firstaired': '' /* string */, 'originaltitle': '' /* string */, 'productioncode': '' /* string */, 'rating': 0 /* number */, 'season': 0 /* integer */, 'showtitle': '' /* string */, 'tvshowid': -1 /* integer, id: Library.Id, minimum: 1 */, 'votes': '' /* string */, 'writer': '' /* string */, 'director': '' /* string */, 'resume': { /* id: Video.Resume */ 'position': 0 /* number, minimum: 0 */, 'total': 0 /* number, minimum: 0 */ }, 'runtime': '' /* string */, 'streamdetails': { /* id: Video.Streams */ 'audio': [ /* array, minimum items: 1 */ { 'channels': 0 /* integer */, 'codec': '' /* string */, 'language': '' /* string */ } ], 'subtitle': [ /* array, minimum items: 1 */ { 'language': '' /* string */ } ], 'video': [ /* array, minimum items: 1 */ { 'aspect': 0 /* number */, 'codec': '' /* string */, 'duration': 0 /* integer */, 'height': 0 /* integer */, 'width': 0 /* integer */ } ] }, 'file': '' /* string */, 'lastplayed': '' /* string */, 'plot': '' /* string */, 'title': '' /* string */, 'playcount': 0 /* integer */, 'fanart': '' /* string */, 'thumbnail': '' /* string */, 'label': undefined /* string */ } ], 'limits': { /* id: List.LimitsReturned */ 'end': -1 /* integer, minimum: 0 */, 'start': 0 /* integer, minimum: 0 */, 'total': undefined /* integer, minimum: 0 */ } } }
VideoLibrary.GetRecentlyAddedMovies
Retrieve all recently added movies
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.GetRecentlyAddedMovies', 'id': undefined /* integer */, 'params': { 'properties': [ /* id: Video.Fields.Movie */ undefined /* string, Requesting the cast, set, showling and/or resume field will result in increased response times */ ], 'limits': { /* id: List.Limits */ 'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 'start': 0 /* integer, minimum: 0 */ }, 'sort': { /* id: List.Sort */ 'ignorearticle': false /* boolean */, 'method': 'none' /* string */, 'order': 'ascending' /* string */ } } }
Returns
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.GetRecentlyAddedMovies', 'id': undefined /* integer */, 'result': { 'limits': { /* id: List.LimitsReturned */ 'end': -1 /* integer, minimum: 0 */, 'start': 0 /* integer, minimum: 0 */, 'total': undefined /* integer, minimum: 0 */ }, 'movies': [ /* array */ { /* id: Video.Details.Movie */ 'cast': [ /* array, id: Video.Cast */ { 'name': undefined /* string */, 'role': undefined /* string */, 'thumbnail': '' /* string */ } ], 'country': '' /* string */, 'genre': '' /* string */, 'imdbnumber': '' /* string */, 'movieid': -1 /* integer, id: Library.Id, minimum: 1 */, 'mpaa': '' /* string */, 'originaltitle': '' /* string */, 'plotoutline': '' /* string */, 'premiered': '' /* string */, 'productioncode': '' /* string */, 'rating': 0 /* number */, 'set': [ /* array, id: Array.String */ undefined /* string, minimum length: 1 */ ], 'setid': [ /* array, id: Array.Integer */ undefined /* integer */ ], 'showlink': '' /* string */, 'sorttitle': '' /* string */, 'studio': '' /* string */, 'tagline': '' /* string */, 'top250': 0 /* integer */, 'trailer': '' /* string */, 'votes': '' /* string */, 'writer': '' /* string */, 'year': 0 /* integer */, 'director': '' /* string */, 'resume': { /* id: Video.Resume */ 'position': 0 /* number, minimum: 0 */, 'total': 0 /* number, minimum: 0 */ }, 'runtime': '' /* string */, 'streamdetails': { /* id: Video.Streams */ 'audio': [ /* array, minimum items: 1 */ { 'channels': 0 /* integer */, 'codec': '' /* string */, 'language': '' /* string */ } ], 'subtitle': [ /* array, minimum items: 1 */ { 'language': '' /* string */ } ], 'video': [ /* array, minimum items: 1 */ { 'aspect': 0 /* number */, 'codec': '' /* string */, 'duration': 0 /* integer */, 'height': 0 /* integer */, 'width': 0 /* integer */ } ] }, 'file': '' /* string */, 'lastplayed': '' /* string */, 'plot': '' /* string */, 'title': '' /* string */, 'playcount': 0 /* integer */, 'fanart': '' /* string */, 'thumbnail': '' /* string */, 'label': undefined /* string */ } ] } }
VideoLibrary.GetRecentlyAddedMusicVideos
Retrieve all recently added music videos
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.GetRecentlyAddedMusicVideos', 'id': undefined /* integer */, 'params': { 'properties': [ /* id: Video.Fields.MusicVideo */ undefined /* string, Requesting the resume field will result in increased response times */ ], 'limits': { /* id: List.Limits */ 'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 'start': 0 /* integer, minimum: 0 */ }, 'sort': { /* id: List.Sort */ 'ignorearticle': false /* boolean */, 'method': 'none' /* string */, 'order': 'ascending' /* string */ } } }
Returns
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.GetRecentlyAddedMusicVideos', 'id': undefined /* integer */, 'result': { 'limits': { /* id: List.LimitsReturned */ 'end': -1 /* integer, minimum: 0 */, 'start': 0 /* integer, minimum: 0 */, 'total': undefined /* integer, minimum: 0 */ }, 'musicvideos': [ /* array */ { /* id: Video.Details.MusicVideo */ 'album': '' /* string */, 'artist': '' /* string */, 'genre': '' /* string */, 'musicvideoid': -1 /* integer, id: Library.Id, minimum: 1 */, 'studio': '' /* string */, 'track': 0 /* integer */, 'year': 0 /* integer */, 'director': '' /* string */, 'resume': { /* id: Video.Resume */ 'position': 0 /* number, minimum: 0 */, 'total': 0 /* number, minimum: 0 */ }, 'runtime': '' /* string */, 'streamdetails': { /* id: Video.Streams */ 'audio': [ /* array, minimum items: 1 */ { 'channels': 0 /* integer */, 'codec': '' /* string */, 'language': '' /* string */ } ], 'subtitle': [ /* array, minimum items: 1 */ { 'language': '' /* string */ } ], 'video': [ /* array, minimum items: 1 */ { 'aspect': 0 /* number */, 'codec': '' /* string */, 'duration': 0 /* integer */, 'height': 0 /* integer */, 'width': 0 /* integer */ } ] }, 'file': '' /* string */, 'lastplayed': '' /* string */, 'plot': '' /* string */, 'title': '' /* string */, 'playcount': 0 /* integer */, 'fanart': '' /* string */, 'thumbnail': '' /* string */, 'label': undefined /* string */ } ] } }
VideoLibrary.GetSeasons
Retrieve all tv seasons
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.GetSeasons', 'id': undefined /* integer */, 'params': { 'tvshowid': -1 /* integer, id: Library.Id, minimum: 1 */, 'properties': [ /* id: Video.Fields.Season */ undefined /* string */ ], 'limits': { /* id: List.Limits */ 'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 'start': 0 /* integer, minimum: 0 */ }, 'sort': { /* id: List.Sort */ 'ignorearticle': false /* boolean */, 'method': 'none' /* string */, 'order': 'ascending' /* string */ } } }
Returns
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.GetSeasons', 'id': undefined /* integer */, 'result': { 'limits': { /* id: List.LimitsReturned */ 'end': -1 /* integer, minimum: 0 */, 'start': 0 /* integer, minimum: 0 */, 'total': undefined /* integer, minimum: 0 */ }, 'seasons': [ /* array */ { /* id: Video.Details.Season */ 'episode': 0 /* integer */, 'season': undefined /* integer */, 'showtitle': '' /* string */, 'tvshowid': -1 /* integer, id: Library.Id, minimum: 1 */, 'playcount': 0 /* integer */, 'fanart': '' /* string */, 'thumbnail': '' /* string */, 'label': undefined /* string */ } ] } }
VideoLibrary.GetTVShowDetails
Retrieve details about a specific tv show
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.GetTVShowDetails', 'id': undefined /* integer */, 'params': { 'tvshowid': -1 /* integer, id: Library.Id, minimum: 1 */, 'properties': [ /* id: Video.Fields.TVShow */ undefined /* string, Requesting the cast field will result in increased response times */ ] } }
Returns
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.GetTVShowDetails', 'id': undefined /* integer */, 'result': { 'tvshowdetails': { /* id: Video.Details.TVShow */ 'cast': [ /* array, id: Video.Cast */ { 'name': undefined /* string */, 'role': undefined /* string */, 'thumbnail': '' /* string */ } ], 'episode': 0 /* integer */, 'episodeguide': '' /* string */, 'genre': '' /* string */, 'imdbnumber': '' /* string */, 'mpaa': '' /* string */, 'originaltitle': '' /* string */, 'premiered': '' /* string */, 'rating': 0 /* number */, 'sorttitle': '' /* string */, 'studio': '' /* string */, 'tvshowid': -1 /* integer, id: Library.Id, minimum: 1 */, 'votes': '' /* string */, 'year': 0 /* integer */, 'file': '' /* string */, 'lastplayed': '' /* string */, 'plot': '' /* string */, 'title': '' /* string */, 'playcount': 0 /* integer */, 'fanart': '' /* string */, 'thumbnail': '' /* string */, 'label': undefined /* string */ } } }
VideoLibrary.GetTVShows
Retrieve all tv shows
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.GetTVShows', 'id': undefined /* integer */, 'params': { 'properties': [ /* id: Video.Fields.TVShow */ undefined /* string, Requesting the cast field will result in increased response times */ ], 'limits': { /* id: List.Limits */ 'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 'start': 0 /* integer, minimum: 0 */ }, 'sort': { /* id: List.Sort */ 'ignorearticle': false /* boolean */, 'method': 'none' /* string */, 'order': 'ascending' /* string */ } } }
Returns
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.GetTVShows', 'id': undefined /* integer */, 'result': { 'limits': { /* id: List.LimitsReturned */ 'end': -1 /* integer, minimum: 0 */, 'start': 0 /* integer, minimum: 0 */, 'total': undefined /* integer, minimum: 0 */ }, 'tvshows': [ /* array */ { /* id: Video.Details.TVShow */ 'cast': [ /* array, id: Video.Cast */ { 'name': undefined /* string */, 'role': undefined /* string */, 'thumbnail': '' /* string */ } ], 'episode': 0 /* integer */, 'episodeguide': '' /* string */, 'genre': '' /* string */, 'imdbnumber': '' /* string */, 'mpaa': '' /* string */, 'originaltitle': '' /* string */, 'premiered': '' /* string */, 'rating': 0 /* number */, 'sorttitle': '' /* string */, 'studio': '' /* string */, 'tvshowid': -1 /* integer, id: Library.Id, minimum: 1 */, 'votes': '' /* string */, 'year': 0 /* integer */, 'file': '' /* string */, 'lastplayed': '' /* string */, 'plot': '' /* string */, 'title': '' /* string */, 'playcount': 0 /* integer */, 'fanart': '' /* string */, 'thumbnail': '' /* string */, 'label': undefined /* string */ } ] } }
VideoLibrary.Scan
Scans the video sources for new library items
Permissions
UpdateData
Syntax
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.Scan', 'id': undefined /* integer */ }
Returns
{ 'jsonrpc': '2.0', 'method': 'VideoLibrary.Scan', 'id': undefined /* integer */, 'result': undefined /* string */ }
Input
Allows limited navigation within XBMC
Methods
Input.Back
Goes back in GUI
Permissions
Navigate
Syntax
{ 'jsonrpc': '2.0', 'method': 'Input.Back', 'id': undefined /* integer */ }
Returns
{ 'jsonrpc': '2.0', 'method': 'Input.Back', 'id': undefined /* integer */, 'result': undefined /* string */ }
Input.Down
Navigate down in GUI
Permissions
Navigate
Syntax
{ 'jsonrpc': '2.0', 'method': 'Input.Down', 'id': undefined /* integer */ }
Returns
{ 'jsonrpc': '2.0', 'method': 'Input.Down', 'id': undefined /* integer */, 'result': undefined /* string */ }
Input.Home
Goes to home window in GUI
Permissions
Navigate
Syntax
{ 'jsonrpc': '2.0', 'method': 'Input.Home', 'id': undefined /* integer */ }
Returns
{ 'jsonrpc': '2.0', 'method': 'Input.Home', 'id': undefined /* integer */, 'result': undefined /* string */ }
Input.Left
Navigate left in GUI
Permissions
Navigate
Syntax
{ 'jsonrpc': '2.0', 'method': 'Input.Left', 'id': undefined /* integer */ }
Returns
{ 'jsonrpc': '2.0', 'method': 'Input.Left', 'id': undefined /* integer */, 'result': undefined /* string */ }
Input.Right
Navigate right in GUI
Permissions
Navigate
Syntax
{ 'jsonrpc': '2.0', 'method': 'Input.Right', 'id': undefined /* integer */ }
Returns
{ 'jsonrpc': '2.0', 'method': 'Input.Right', 'id': undefined /* integer */, 'result': undefined /* string */ }
Input.Select
Select current item in GUI
Permissions
Navigate
Syntax
{ 'jsonrpc': '2.0', 'method': 'Input.Select', 'id': undefined /* integer */ }
Returns
{ 'jsonrpc': '2.0', 'method': 'Input.Select', 'id': undefined /* integer */, 'result': undefined /* string */ }
Input.Up
Navigate up in GUI
Permissions
Navigate
Syntax
{ 'jsonrpc': '2.0', 'method': 'Input.Up', 'id': undefined /* integer */ }
Returns
{ 'jsonrpc': '2.0', 'method': 'Input.Up', 'id': undefined /* integer */, 'result': undefined /* string */ }
Application
Application information and control
Methods
Application.GetProperties
Retrieves the values of the given properties
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'Application.GetProperties', 'id': undefined /* integer */, 'params': { 'properties': [ /* array */ 'volume' /* string, id: Application.Property.Name */ ] } }
Returns
{ 'jsonrpc': '2.0', 'method': 'Application.GetProperties', 'id': undefined /* integer */, 'result': { /* id: Application.Property.Value */ 'muted': false /* boolean */, 'name': '' /* string, minimum length: 1 */, 'version': { 'major': undefined /* integer, minimum: 0 */, 'minor': undefined /* integer, minimum: 0 */, 'revision': undefined /* string */ or undefined /* integer, minimum: 0 */, 'tag': undefined /* string */ }, 'volume': 0 /* integer */ } }
Application.Quit
Quit application
Permissions
ControlPower
Syntax
{ 'jsonrpc': '2.0', 'method': 'Application.Quit', 'id': undefined /* integer */ }
Returns
{ 'jsonrpc': '2.0', 'method': 'Application.Quit', 'id': undefined /* integer */, 'result': undefined /* string */ }
Application.SetMute
Toggle mute/unmute
Permissions
ControlPlayback
Syntax
{ 'jsonrpc': '2.0', 'method': 'Application.SetMute', 'id': undefined /* integer */, 'params': { 'mute': undefined /* boolean */ or undefined /* string */ } }
Returns
{ 'jsonrpc': '2.0', 'method': 'Application.SetMute', 'id': undefined /* integer */, 'result': undefined /* boolean, Mute state */ }
Application.SetVolume
Set the current volume
Permissions
ControlPlayback
Syntax
{ 'jsonrpc': '2.0', 'method': 'Application.SetVolume', 'id': undefined /* integer */, 'params': { 'volume': undefined /* integer, minimum: 0, maximum: 100 */ } }
Returns
{ 'jsonrpc': '2.0', 'method': 'Application.SetVolume', 'id': undefined /* integer */, 'result': undefined /* integer, minimum: 0 */ }
System
System controls and information
Notifications
System.OnLowBattery
The system is on low battery.
Returns
{ 'jsonrpc': '2.0', 'method': 'System.OnLowBattery', 'params': { 'sender': undefined /* string */, 'data': undefined /* null */ } }
System.OnQuit
XBMC will be closed.
Returns
{ 'jsonrpc': '2.0', 'method': 'System.OnQuit', 'params': { 'sender': undefined /* string */, 'data': undefined /* null */ } }
System.OnRestart
The system will be restarted.
Returns
{ 'jsonrpc': '2.0', 'method': 'System.OnRestart', 'params': { 'sender': undefined /* string */, 'data': undefined /* null */ } }
System.OnSleep
The system will be suspended.
Returns
{ 'jsonrpc': '2.0', 'method': 'System.OnSleep', 'params': { 'sender': undefined /* string */, 'data': undefined /* null */ } }
System.OnWake
The system woke up from suspension.
Returns
{ 'jsonrpc': '2.0', 'method': 'System.OnWake', 'params': { 'sender': undefined /* string */, 'data': undefined /* null */ } }
Methods
System.GetProperties
Retrieves the values of the given properties
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'System.GetProperties', 'id': undefined /* integer */, 'params': { 'properties': [ /* array */ 'canshutdown' /* string, id: System.Property.Name */ ] } }
Returns
{ 'jsonrpc': '2.0', 'method': 'System.GetProperties', 'id': undefined /* integer */, 'result': { /* id: System.Property.Value */ 'canhibernate': false /* boolean */, 'canreboot': false /* boolean */, 'canshutdown': false /* boolean */, 'cansuspend': false /* boolean */ } }
System.Hibernate
Puts the system running XBMC into hibernate mode
Permissions
ControlPower
Syntax
{ 'jsonrpc': '2.0', 'method': 'System.Hibernate', 'id': undefined /* integer */ }
Returns
{ 'jsonrpc': '2.0', 'method': 'System.Hibernate', 'id': undefined /* integer */, 'result': undefined /* string */ }
System.Reboot
Reboots the system running XBMC
Permissions
ControlPower
Syntax
{ 'jsonrpc': '2.0', 'method': 'System.Reboot', 'id': undefined /* integer */ }
Returns
{ 'jsonrpc': '2.0', 'method': 'System.Reboot', 'id': undefined /* integer */, 'result': undefined /* string */ }
System.Shutdown
Shuts the system running XBMC down
Permissions
ControlPower
Syntax
{ 'jsonrpc': '2.0', 'method': 'System.Shutdown', 'id': undefined /* integer */ }
Returns
{ 'jsonrpc': '2.0', 'method': 'System.Shutdown', 'id': undefined /* integer */, 'result': undefined /* string */ }
System.Suspend
Suspends the system running XBMC
Permissions
ControlPower
Syntax
{ 'jsonrpc': '2.0', 'method': 'System.Suspend', 'id': undefined /* integer */ }
Returns
{ 'jsonrpc': '2.0', 'method': 'System.Suspend', 'id': undefined /* integer */, 'result': undefined /* string */ }
XBMC
Dumping ground for very XBMC specific operations
Methods
XBMC.GetInfoBooleans
Retrieve info booleans about XBMC and the system
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'XBMC.GetInfoBooleans', 'id': undefined /* integer */, 'params': { 'booleans': [ /* array, minimum items: 1 */ undefined /* string */ ] } }
Returns
{ 'jsonrpc': '2.0', 'method': 'XBMC.GetInfoBooleans', 'id': undefined /* integer */, 'result': { /* List of key-value pairs of the retrieved info booleans */ } }
XBMC.GetInfoLabels
Retrieve info labels about XBMC and the system
Permissions
ReadData
Syntax
{ 'jsonrpc': '2.0', 'method': 'XBMC.GetInfoLabels', 'id': undefined /* integer */, 'params': { 'labels': [ /* array, minimum items: 1, See http://wiki.xbmc.org/index.php?title=InfoLabels for a list of possible info labels */ undefined /* string */ ] } }
Returns
{ 'jsonrpc': '2.0', 'method': 'XBMC.GetInfoLabels', 'id': undefined /* integer */, 'result': { /* List of key-value pairs of the retrieved info labels */ } }
JSON-RPC 2.0 compatibility
Version | Method calls | Notifications (server-side) |
Notifications (client-side) |
Parameters by-name |
Parameters by-position |
Batch requests |
---|---|---|---|---|---|---|
Version 4 | Yes | Yes | Yes | Yes | Yes | Yes |