Skip to main content
Question

Is there any Rest api to get metadata of all folders and files in Box Drive ?

  • May 22, 2025
  • 3 replies
  • 31 views

Forum|alt.badge.img

Hello,

In my application I want to get the whole box drive metadata, is there any rest API by which I can get the whole drive metadata .

 

Thank you.

3 replies

Forum|alt.badge.img

 We don't have an endpoint to get all this information in one call. Getting metadata for all files and folders in a Box instance requires calls to three endpoints: Get Folder Items, Get All Metadata on File, and Get All Metadata on Folder

 

You would first have call the Get Folder Items endpoint recursively. This would give you a list of all the files and folders in a Box instance. For the files in that list, you would call the Get All Metadata on File endpoint, which gives you the metadata for each file. For the folders in that list, you would call the Get All Metadata on Folder, which gives you the metadata for each folder.


Forum|alt.badge.img

Thanks  for your reply.

 

I want to store metadata of box drive in my database. For this i am thinking of single api through which i can get all data. Like Google Drive api :https://developers.google.com/drive/v3/reference/files/list 

 

If i use three endpoint suggested by you in a drive which have 1000 of folder and each folder contains 100 files then it will be very lengthy process . Is there any other alternative way to do it.


Forum|alt.badge.img

 Unfortunately, we don't have a single endpoint that would return all the metadata and files in a Box instance.