Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
Per https://www.dropbox.com/help/desktop-web/download-entire-folders I can download any folder through the dropbox web interface. How can I do this via the API?
I'm guessing the web client uses some form of API for this so this should be doable from scripts as well?
Thanks
I think this would be nice resource saving feature. I've seen all kinds of recursive download scripts that basically inundate the dropbox API with requests for each individual file. Seems rather inefficient. Thanks.
Here is a workaround, you can create a sharedlink for that folder
curl -X POST https://api.dropboxapi.com/2/sharing/share_folder \ --header "Authorization: Bearer $TK" \ --header "Content-Type: application/json" \ --data '{"path": "/legacy/teste-curl","acl_update_policy": "editors","force_async": true,"member_policy": "anyone"}'
then download it using the preview_url
wget -v https://www.dropbox.com/sh/{shared_link_id}?dl=1
Like this example
wget -v https://www.dropbox.com/sh/j1msw4e8dup2c5q/AAANYUWXcyBDgxVGkveU7AFla?dl=1
After all you can unshare this folder for security reasons
curl -X POST https://api.dropboxapi.com/2/sharing/unshare_folder \ --header "Authorization: Bearer $TK" \ --header "Content-Type: application/json" \ --data "{\"shared_folder_id\": \"1896934208\",\"leave_a_copy\": false}"
Hi Greg
This is good news. thanks for the update to the API.
I just tried this API call and it worked great.
the only hiccup is an error when trying to d/l the root folder
"Dropbox-API-Arg": path: The root folder is unsupported
some files are saved in the application's root folder and the method seems to fail to get them zipped up
That's the expected behavior. Downloading the root folder is not supported unfortunately, but I'll pass this along as a feature request.
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!