API for access stats on BOX file
AnsweredHi Team,
This is regarding API for access stats on BOX file.
Consider the scenario, I have collaborated few documents with people and they are accessing these documents via their BOX Account.
I need an API which can give me the access stats like when the file has been accessed, viewed or downloaded etc.
Can anybody please let me know if BOX has such API to get those details?
-
Official comment
You would probably want to use our event stream API for this, specifically looking at ITEM_PREVIEW or ITEM_DOWNLOAD events. You can find out more information on using the endpoint in our guide section as well. Outside of this, we don't an API endpoint that combines access statistics like that together for one file.
Thanks,
Alex, Box Developer Advocate
Comment actions -
We have a scenario where our internal enterprise user sharing the file with outside enterprise user through collaboration. We would like to know what date and time, the outside enterprise user viewed or downloaded this file.
Question 1:
Does the Event stream API returns the outside enterprise user events info as well?
Question 2:
If Event stream API returns outside enterprise user events, for an internal user collaborated file, then without crawling through entire Enterprise event stream API responses, is there any way we can get particular file level all events done by inside or outside enterprise user?
Our goal is to track a particular file level item preview or item download event info, when collaborated users view or download a particular file.
Question 3:
Is there any way, other than Event stream API, can we get this info using internal or external User Events API?
Thanks for your response!
-
External user actions do show up in the enterprise event stream type - but there is no way to tell that they are external from response... you would have to parse the user id from a list of internal users.
You can filter by event type - but it will return events for all files/folders
The user events only works with internal users to your enterprise.
Post is closed for comments.
Comments
4 comments