Welcome to the new Box Support website. Check out all the details here on what’s changed.

Comments

6 comments

  • Murtza

    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.

    0
    Comment actions Permalink
  • andrewsalveson

    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?

    0
    Comment actions Permalink
  • akLzoR

    I would be interested too

    0
    Comment actions Permalink
  • jbonner

    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.  

    0
    Comment actions Permalink
  • Murtza

     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.

    0
    Comment actions Permalink
  • nadellad

    Hey, 

    I have similar requirement were you able to achieve this?

     

    Thanks

    0
    Comment actions Permalink

Please sign in to leave a comment.