Jump to content

http://.../Items API questions


HawkXP71

Recommended Posts

HawkXP71

It doesnt appear that they Items API has the ability to return the PremiereDate, you can filter based on the Min/Max Premiere date, but its not returned.

Also, there is an ExcludeItemIds but there doesnt appear to be an IncludeItemIds, i cant find the http call for requesting a single ID when you know it, but just need the all the info (including PremiereDate :) )

I know I can get the information for it using /Users/{userid}/Items/{itemid} but this really is user independent, shouldnt /Items also supply the same data?

Edited by HawkXP71
Link to comment
Share on other sites

Happy2Play

What are you quering?

But may want to look at the Reports plugin Episode report grouped by Series with missing Episodes enabled.

image.png.aff640d6e828123c5e23c85219f73e1c.png

Link to comment
Share on other sites

HawkXP71
Just now, Happy2Play said:

What are you quering?

But may want to look at the Reports plugin Episode report grouped by Series with missing Episodes enabled.

image.png.aff640d6e828123c5e23c85219f73e1c.png

Thanks for the hint. Can you provide a link to the source? 

Link to comment
Share on other sites

  • 2 weeks later...
adminExitium

There is a Ids parameter available for the Items API if you need to retrieve a specific Item. And you can add PremiereDate to the Fields parameter to get the Premiere Date in the response.

Example Curl Request:

 

curl -X GET "https://emby.domain/emby/Items?Ids=123&Fields=PremiereDate&api_key=abcdef123456" -H "accept: application/json"

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

HawkXP71
On 11/2/2022 at 8:07 AM, adminExitium said:

There is a Ids parameter available for the Items API if you need to retrieve a specific Item. And you can add PremiereDate to the Fields parameter to get the Premiere Date in the response.

Example Curl Request:

 

curl -X GET "https://emby.domain/emby/Items?Ids=123&Fields=PremiereDate&api_key=abcdef123456" -H "accept: application/json"

I didnt change anything else (beyond the spelling error), and the Premier Date started working. I think fixing the other issues (the misspelling) is what was the root cause of everything

  • Thanks 1
Link to comment
Share on other sites

  • 2 weeks later...

If you want extra data using the c# API then make sure you add DtoOptions to your InternalItemsQuery.

When requesting extra data through a url, or usi g the JavaScript, add "premieredate" to the "fields" param in the url. 

  • Like 2
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...