killride 45 Posted April 6, 2020 Share Posted April 6, 2020 Hi Guys, I try to figure it out how to get latest added files primary images to make a nice website announcing the recently added files. Do you know the API call for this? I try emby/items/latest but doesn't work. Thanks @@chef @@PenkethBoy Link to comment Share on other sites More sharing options...
PenkethBoy 2063 Posted April 6, 2020 Share Posted April 6, 2020 latest endpoint works fine ....."/emby/users/" + $User.User.Id + "/items/latest?limit=10&EnableImageTypes=Primary&ParentId=" + <library parent id> + "&api_key=" + $User.AccessToken give us something to work with show us what you tried and what the result was my crystal ball is not working today Link to comment Share on other sites More sharing options...
killride 45 Posted April 6, 2020 Author Share Posted April 6, 2020 (edited) Hi @@PenkethBoy, "Name":"Strike Back", "ServerId":"xxxx", "Id":"8822", "RunTimeTicks":27000000512, "IsFolder":true, "Type":"Series", "UserData":{"UnplayedItemCount":71, "PlaybackPositionTicks":0, "PlayCount":0, "IsFavorite":false, "Played":false }, "Status":"Continuing", "AirDays":[ ], "ImageTags":{"Primary":"b73777a51b75f00b2bc72c352feaaf0f"} }, Here is what I get. and now I would like to get the Primary image. I tried emby/users/xxxx/Items/8822/Images but It doesn't work. I would like to see the png image do add to a website. Edited April 6, 2020 by killride Link to comment Share on other sites More sharing options...
Luke 37008 Posted April 6, 2020 Share Posted April 6, 2020 The primary image tag is right there in the json. Now you need to properly use our images api in order to download an image if that's what you want to do. Link to comment Share on other sites More sharing options...
killride 45 Posted April 6, 2020 Author Share Posted April 6, 2020 (edited) @Luke How to use the Image API? some documentation around? EDIT: My bad, we have to remove the user ID on the call. xxxx Works like charm Edited April 26, 2020 by killride Link to comment Share on other sites More sharing options...
Luke 37008 Posted April 6, 2020 Share Posted April 6, 2020 https://github.com/MediaBrowser/Emby/wiki Link to comment Share on other sites More sharing options...
mpg732 8 Posted April 26, 2020 Share Posted April 26, 2020 @Luke How to use the Image API? some documentation around? EDIT: My bad, we have to remove the user ID on the call. xxxx/emby/Items/8822/Images/Primary?&api_key=xxxxxx Works like charm Where did you get your image ID from 8822? Thanks Mike Link to comment Share on other sites More sharing options...
PenkethBoy 2063 Posted April 26, 2020 Share Posted April 26, 2020 thats the emby database id for the item if you use the web app and go to the detail screem of say a movie and look in the url of the browser you can see the ID - if its for a one off query or use the api to pull back say all your movies and each item will have an ID - which can then be used to query individual items for more info etc etc Link to comment Share on other sites More sharing options...
mpg732 8 Posted April 26, 2020 Share Posted April 26, 2020 (edited) thats the emby database id for the item if you use the web app and go to the detail screem of say a movie and look in the url of the browser you can see the ID - if its for a one off query or use the api to pull back say all your movies and each item will have an ID - which can then be used to query individual items for more info etc etc Thats what I am asking. I am looking through the data in a web browser and nor seeing an ID, I do see URl's for IMB and so forth but those ID's are not working. I also see, "ImageTags": { "Primary": "5d29cdaf189631ae8cd7feff1b15ac89", "Logo": "a13976cdf35f2ae407a75d829da3fefc", "Thumb": "4c61b8c16e769a62304ff9cd6fa3cea1" how ever they do not seem to be working. Never Mind, I found it. Thanks Edited April 26, 2020 by mpg732 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