Advertisement
metalx1000

list of Kodi http request commands

Feb 12th, 2019
839
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.68 KB | None | 0 0
  1. Transport Commands:
  2. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.PlayPause","params":{ "playerid": 1},"id":1} -- play pause
  3. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.PlayPause","params":{"playerid":1,"play":true},"id":1} – play
  4. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.PlayPause","params":{"playerid":1,"play":false},"id":1} -- pause
  5. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0", "method":"Player.Stop","params":{ "playerid":1},"id":1}—stop
  6. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.GoTo","params":{ "playerid":1,"to":"next"},"id":1} – next
  7. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.GoTo","params":{ "playerid":1,"to":"previous"},"id":1} – previous
  8. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.SetSpeed","params":{"playerid":1,"speed":2},"id":1} -- ffwd with speed 2
  9. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.SetSpeed","params":{"playerid":1,"speed":4},"id":1} -- ffwd with speed 4
  10. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.SetSpeed","params":{"playerid":1,"speed":8},"id":1} -- ffwd with speed 8
  11. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.SetSpeed","params":{"playerid":1,"speed":16},"id":1} -- ffwd with speed 16
  12. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.SetSpeed","params":{"playerid":1,"speed":32},"id":1} -- ffwd with speed 32
  13. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.SetSpeed","params":{"playerid":1,"speed":-2},"id":1} -- rwd with speed 2
  14. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.SetSpeed","params":{"playerid":1,"speed":-4},"id":1} -- rwd with speed 4
  15. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.SetSpeed","params":{"playerid":1,"speed":-8},"id":1} -- rwd with speed 8
  16. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.SetSpeed","params":{"playerid":1,"speed":-16},"id":1} -- rwd with speed 16
  17. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.SetSpeed","params":{"playerid":1,"speed":-32},"id":1} -- rwd with speed 32
  18. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.Seek","params":{ "playerid":1,"value":"smallforward"},"id":1} -- jump forward
  19. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.Seek","params":{ "playerid":1, "value":"smallbackward"},"id":1} -- jump backward
  20.  
  21. Repeat and Shuffle commands. Note that I only confirmed a return result of OK in Chrome REST app, I did not visually confirm the result on Kodi.
  22. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc": "2.0","method":"Player.SetRepeat","params":{ "playerid":1,"repeat":"one" },"id":1} -- repeat one
  23. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.SetRepeat","params":{ "playerid":1,"repeat":"all" },"id":1} -- repeat all
  24. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.SetShuffle","params":{"playerid":1,"shuffle":true},"id":1} -- shuffle on
  25. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.SetShuffle","params":{"playerid":1,"shuffle":false},"id":1} -- shuffle false
  26. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.SetRepeat","params":{ "playerid":1,"repeat":"off" },"id":1} -- repeat off
  27.  
  28.  
  29. Navigation Commands.
  30. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc": "2.0", "method": "Input.Back", "id": 1} – Back
  31. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc": "2.0", "method": "Input.Select", "id": 1} – Select
  32. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc": "2.0", "method": "Input.Left", "id": 1} – left
  33. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc": "2.0", "method": "Input.Right", "id": 1} – Right
  34. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc": "2.0", "method": "Input.Up", "id": 1} – Up
  35. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc": "2.0", "method": "Input.Down", "id": 1} – Down
  36. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc": "2.0", "method": "Input.Home", "id": 1} – Home
  37. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc": "2.0", "method": "Input.info", "id": 1} --Info
  38. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc": "2.0", "method": "Input.showOSD", "id": 1} –ShowOSD
  39. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc": "2.0", "method": "Input.ContextMenu", "id": 1} -- Context Menu
  40. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc": "2.0", "method": "Input.ShowCodec", "id": 1} – Show codec information of the playing item
  41. http://192.168.0.1:8080/jsonrpc?request={"jsonrpc":"2.0","method":"input.executeaction","params":{"action":"pagedown"},"id":1} – Page Down
  42. http://192.168.0.1:8080/jsonrpc?request={"jsonrpc":"2.0","method":"input.executeaction","params":{"action":"pageup"},"id":1} -- Page Up
  43.  
  44. Additional commands.
  45. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Application.SetVolume","params":{"volume":"increment"},"id":1 } -- volume up
  46. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Application.SetVolume","params":{"volume":"decrement"},"id":1 } -- volume down
  47. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Playlist.GetItems","params":{"properties":["title","album","artist","duration"],"playlistid":1},"id":1} -- get Playlists
  48. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"AudioLibrary.GetAlbums","params":{"properties":["playcount","artist","genre"],"limits":{"end":10,"start":0},"sort":{"order":"ascending","method":"album","ignorearticle":true}},"id":"libAlbums"} -- get Albums
  49. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"GUI.ActivateWindow","params":{"window":"music","parameters":["musicdb://1/"] },"id":1} -- activate Geners
  50. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"GUI.ActivateWindow","params":{"window":"music","parameters":["musicdb://2/"]},"id":1} -- activate artists
  51. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"GUI.ActivateWindow","params":{"window":"music","parameters":["musicdb://3/"]},"id":1} -- activate albums
  52. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"GUI.ActivateWindow","params":{"window":"music","parameters":["musicdb://4/"]},"id":1} -- activate songs
  53.  
  54. System Commands.
  55. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"System.Reboot","id":1} --Reboot
  56. http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"System.Shutdown","id":1} –Shutdown
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement