Level up your Box knowledge with brand new learning paths on Box University. Visit training.box.com to get started

API for access stats on BOX file

Answered
New post

Comments

4 comments

  • Official comment
    Alex Novotny

    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 Permalink
  • ThirdPart testSharing

    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!

    0
    Comment actions Permalink
  • ruchikosh

    Can we get answer to above questions?

    0
    Comment actions Permalink
  • Alex Novotny

    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. 

    0
    Comment actions Permalink

Post is closed for comments.