One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
Sameer96
7 years agoExplorer | Level 4
How to download a directory from shareable link using Dropbox API in Python ?
Hi folks,
I want to download the directory and its files from a shareable link programmatically. I cannot find a good approach for that can anyone help me with suggestions?
Thanks
- Greg-DB
Dropbox Staff
There are two ways you can approach this:
- With the official Dropbox Python SDK, use the method sharing_get_shared_link_file to download the file content from a shared link. Or without the SDK, make the same call to /2/sharing/get_shared_link_file API endpoint itself directly.
- Without using the API/SDK, modify the shared link URL for raw access as documented here, and issue a GET request with your HTTPS client of choice to download the file content directly.
- Sameer96Explorer | Level 4
Hi Greg,
Thanks a lot for your answer it solved my issue. One more thing can I upload a zip file programmatically to the shared link provided by another user or else I can only download the files from a shared link?
Thanks
- Greg-DB
Dropbox Staff
Shared links only provide view/download access. You can't upload to them.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,950 PostsLatest Activity: 15 hours ago
If you need more help you can view your support options (expected response time for an email or 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!