Access Statistics on Files in Folders
AnsweredIs there any way to get access numbers for an individual file within a folder using the SDK?
I'm only seeing file downloads and previews availible for share links. As a user on the web client these numbers are visible to me so it's strange that these figures aren't visible through the file box.object.file module (or anywhere else). I know that these figures are availible in bulk through the admin console, but I am trying to generate a daily report across a wide range of folders in my organization so automation here is key.
Thanks!
-Michiel
-
Unfortunately, the aggregated file access stats are not available through the API. A workaround to get these stats would be using the Enterprise Events endpoint and requesting "PREVIEW" events. You would then have to filter the events returned for the specific files you need to track.
-
You can only get the individual "PREVIEW" events through the API. The running total is only accessible through the Box web app.
You can get preview events in two ways. You can get preview events as the user who owns the file using the User Events endpoint and requesting "ITEM_PREVIEW". You can also get these preview events as the admin through the Enterprise Events endpoint and request "PREVIEW" events.
-
Thank you for reaching out, and apologies for the miserable delay here. Our team is currently working on a UI Element that will allow you to display access stats for a file / folder in your own application, just as they currently show in our core web application (screenshot below). Would this help?
Or are you specifically looking for an API that would return the access stats?
Post is closed for comments.
Comments
14 comments