Jump to content

Getting item count in linraries using the rest API


dmurphy22
Go to solution Solved by dmurphy22,

Recommended Posts

dmurphy22

Hey!

 

I am trying to find a total count that equals what is shown in the emby client for each library. Using the emby/Items end point I am able to get a count but it seems to be larger than what is actually showing in the client.

 

For example /Items?ParentId=0ba95d6d858831b8f144b5d5294b1e62 returns "TotalRecordCount": 1603 but the actual client is only showing 1594 items in the library.

 

Is there a better end point I should be hitting in order to get this information? /Items/Counts won't work because it does not return a per library number, just totals.

 

Thanks!

 

 

Link to comment
Share on other sites

No that's correct, but the web app could be showing a different number due to view settings, filtering, etc.

Link to comment
Share on other sites

dmurphy22

Hmm all filter settings are set to Any in the client. Does /emby/Items count the folders in the library or the actual series count? It's possible some folders are mismatched causing one series to be using multiple folders, would this explain the difference?

Link to comment
Share on other sites

  • Solution
dmurphy22

Good idea!

 

The query is different and when I run it myself too using the API I was able to get a matching number. Thank you!

  • Like 1
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...