Hello, seems obvious but I couldn't figure it out via documentation. Is there a way to do this? Thanks
Currently we don't have an API that would let you download an entire folder in a single API call. You can get all the content of a folder in multiple API calls.
You would need to recursively call the Get Folder's Item endpoint to get the list of items in the folder. The process would be:
1. Call Get Folder's Items endpoint for the needed folder.
2. Call the Download File endpoint for each file returned in step 1.
3. For all folders returned from step 1, call the Get Folder's Items API for each of them and download the files in those folders.
4. Repeat this process until no more subfolders are returned.
Is this still the case? I can see you have a service that zips folders for download:
https://${domain}.app.box.com/index.php?rm=box_v2_zip_folder&folder_id=${folderId}
. . . but it seems that it doesn't want to talk to the javascript SDK. Is there a way to use this to programmatically provide a folder-zip link to a user?
I would be interested too
Chiming in, I really can't believe nothing like this exists. Unless someone is willing to share their code, this is going to take an eternity to code myself.
Can we add this to a requested feature list?
We need this for many reasons, but one of them is legal compliance.
Unfortunately, we still don't support downloading a folder by ZIP through the API.
What language are you looking for sample code for downloading all files? We might have some sample code available depending on the SDK language.
Hey,
I have similar requirement were you able to achieve this?
Thanks
Reply
Login to the community
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.