Jump to content

Get user viewing time


Recommended Posts

Posted

Hi,

is there any way that I can get a user's total viewing time group by time periods? From what I could see, the info is in the Playback Reporting part, but I don't know if and how I can access that from the API.  I've searched the documentation and around the web but couldn't find anything.

Posted

Hi, there is currently no way in the current api. Either we would have to add that for you, or you would have to build a plugin that creates api endpoints to supply the data you need.

Posted (edited)
54 minutes ago, Luke said:

Hi, there is currently no way in the current api. Either we would have to add that for you, or you would have to build a plugin that creates api endpoints to supply the data you need.

Got it, and do you guys have any plans to add that and maybe more stats to the API?  Creating a plugin for that looks a little redundant considering you already have that info and most of it should be available in the API anyway.

And thx for the quick reply.

 

Edited by Velun
Posted
19 hours ago, Velun said:

Got it, and do you guys have any plans to add that and maybe more stats to the API?  Creating a plugin for that looks a little redundant considering you already have that info and most of it should be available in the API anyway.

And thx for the quick reply.

 

Well, this exact thing I don't know yet, but in general we are planning for more statistics reporting so that new Emby features can be built off of it.

GrimReaper
Posted
On 9/11/2024 at 1:45 AM, Velun said:

is there any way that I can get a user's total viewing time group by time periods? From what I could see, the info is in the Playback Reporting part

Playback Reporting plugin has its own db (which can also be queried) and tracks usage since the time it is installed. 

Posted
35 minutes ago, GrimReaper said:

Playback Reporting plugin has its own db (which can also be queried) and tracks usage since the time it is installed. 

Yeah, but it's not possible to access it through the API from what Luke told me.

GrimReaper
Posted (edited)
21 minutes ago, Velun said:

Yeah, but it's not possible to access it through the API from what Luke told me.

Not that I know of, you'd have to ask plugin Dev @TeamBif it would be at all possible to insert few API endpoints from plugin end, though personally don't think that's feasible. 

Edited by GrimReaper
Posted
6 hours ago, Velun said:

Yeah, but it's not possible to access it through the API from what Luke told me.

the playback reporting plugin has its own api that you could call with a custom sql query, it would return the results as a json blob.

go to the platback reporting plugin custom query tab and use the browser debug console to see the network api call made when you run a custom query.

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...