Skip to main content
Question

Total number of files

  • May 21, 2025
  • 4 replies
  • 81 views

Forum|alt.badge.img

Hi

How do we get hold of total number of files on the Box server installation?

 

I checked out the Box api documentation, seems like one would need to recursively go through all the folders for each of the users to fetch files under the folders. 

 

Consider an enterprise installation where there are tens of thousands of users,  the above method will prove to be expensive in terms of time taken to process.

 

 

4 replies

Forum|alt.badge.img

 Unfortunately, we don't have an API endpoint that would provide the total file count across a Box Enterprise in one API call. As you mentioned, to get the total file count programmatically you would have to call the Get Folder Items endpoint recursively.

 

An alternative approach to using the API is getting this information from the Box Admin console. You can get the total file count by running Folders and Files report in the Box Admin console. Running that report generates a spreadsheet with a list of all the folders and files across a Box Enterprise. 

 

BOX_g1o0agg90eif2uzzlx2ra3i3r0b3uyz3.png


Forum|alt.badge.img

How long does this export normally take? I have exported Folders and Files but it is not showing in my Box Reports folder. 


Forum|alt.badge.img

Do we have an Api endpoint for total number of files for an AppUser ? I tried searching at my level and I think they have not supported this function yet. Is this function in the upcoming features, Box has planned ? 


Forum|alt.badge.img

Will you add this feature? Counting the files under all sub-folders iteratively does not look like a wise use of the resources especially when there is request rate limit imposed on us.

Thanks