CulleyS 0 Posted December 13, 2018 Share Posted December 13, 2018 I was reviewing both the Swagger docs and the GitHub docs for the Playlist endpoints in the Developer API, but am missing how to retrieve a list of all Playlists. I was thinking I'd just need to do a GET request to /Playlists, but that returns a 404. Here's an example of what I'm trying using httpie to hit the endpoint. http "http://<my_ip>:8096/emby/Playlists?api_key=<my_api_key>" And here is the response I'm seeing: HTTP/1.1 404 Not Found Content-Length: 34 Content-Type: text/html Date: Thu, 13 Dec 2018 05:00:33 GMT Server: Microsoft-NetCore/2.0 Unable to find the specified file. Link to comment Share on other sites More sharing options...
crunchyemby 9 Posted December 13, 2018 Share Posted December 13, 2018 This may help: http://{ip}:{port}/emby/Users/{user_id}/Items?api_key={api_key}&IncludeItemTypes=Playlist&format=json ...returns all playlists. Link to comment Share on other sites More sharing options...
Luke 37994 Posted December 13, 2018 Share Posted December 13, 2018 Yes playlists can be queried just like any other kind of item. That's why there is no playlist-specific endpoint. Thanks. Link to comment Share on other sites More sharing options...
CulleyS 0 Posted December 13, 2018 Author Share Posted December 13, 2018 Thanks for the replies. I've tried the above suggestion and variations on that. But the following requests all return the same same response (see below). Requests: http://{ip}:{port}/emby/Users/{id}/Items?IncludeItemTypes=Playlist&api_key={api_key} http://{ip}:{port}/emby/Items?IncludeItemTypes=Playlist&api_key={api_key} http://{ip}:{port}/emby/Users/{id}/Views?api_key={api_key} http://{ip}:{port}/emby/Items?api_key={api_key} http://{ip}:{port}/emby/Users/{id}/Items?IncludeItemTypes=Movie&api_key={api_key} http://{ip}:{port}/emby/Users/{id}/Items?IncludeItemTypes=Episode&api_key={api_key} Response: { "Items": [ { "Name": "Music videos", "ServerId": "obscured", "Id": "obscured", "IsFolder": true, "Type": "CollectionFolder", "UserData": { "PlaybackPositionTicks": 0, "PlayCount": 0, "IsFavorite": false, "Played": false, "Key": "obscured" }, "CollectionType": "musicvideos", "ImageTags": {}, "BackdropImageTags": [], "LocationType": "FileSystem" }, { "Name": "Movies", "ServerId": "obscured", "Id": "obscured", "IsFolder": true, "Type": "CollectionFolder", "UserData": { "PlaybackPositionTicks": 0, "PlayCount": 0, "IsFavorite": false, "Played": false, "Key": "obscured" }, "CollectionType": "movies", "ImageTags": { "Primary": "obscured" }, "BackdropImageTags": [], "LocationType": "FileSystem" }, { "Name": "TV Shows", "ServerId": "obscured", "Id": "obscured", "IsFolder": true, "Type": "CollectionFolder", "UserData": { "PlaybackPositionTicks": 0, "PlayCount": 0, "IsFavorite": false, "Played": false, "Key": "obscured" }, "CollectionType": "tvshows", "ImageTags": { "Primary": "obscured" }, "BackdropImageTags": [], "LocationType": "FileSystem" }, { "Name": "Music", "ServerId": "obscured", "Id": "obscured", "IsFolder": true, "Type": "CollectionFolder", "UserData": { "PlaybackPositionTicks": 0, "PlayCount": 0, "IsFavorite": false, "Played": false, "Key": "obscured" }, "CollectionType": "music", "ImageTags": { "Primary": "obscured" }, "BackdropImageTags": [], "LocationType": "FileSystem" }, { "Name": "Playlists", "ServerId": "obscured", "Id": "obscured", "IsFolder": true, "Type": "PlaylistsFolder", "UserData": { "PlaybackPositionTicks": 0, "PlayCount": 0, "IsFavorite": false, "Played": false, "Key": "obscured" }, "CollectionType": "playlists", "ImageTags": {}, "BackdropImageTags": [], "LocationType": "FileSystem" } ], "TotalRecordCount": 5 } The following request returned the expected response. http://{ip}:{port}/emby/Playlists/{id}/Items?api_key={api_key} If it helps, the version of Emby Server I'm using is 3.5.3.0-1. Installed on Arch Linux. Thank you. Link to comment Share on other sites More sharing options...
Solution Luke 37994 Posted December 13, 2018 Solution Share Posted December 13, 2018 Add recursive=true 1 Link to comment Share on other sites More sharing options...
CulleyS 0 Posted December 13, 2018 Author Share Posted December 13, 2018 Perfect! Thanks so much. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now