You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
tohsumi
6 years agoExplorer | Level 3
How do I get programmatically Dropbox links of all subdirectories in a folder?
Greetings. Our company has Dropbox Business. We would like to get Dropbox HTML links, e.g. https://www.dropbox.com/sh/{long string}/{long string}, for each subdirectory in some folder. There are many (> 100) folders in this subdirectory, so I would like to automate the process. Is there a way to accomplish this? Any program or programming language (C++, Perl, Python, etc.) is fine. Many thanks!
Yes, Dropbox does offer an API you can use for programmatically interacting with Dropbox lke this. You can find everything you need to get started with the Dropbox API, including documentation, tutorials, and SDKs here:
https://www.dropbox.com/developers
Specifically, to create a shared link to any file or folder, you can use the /2/sharing/create_shared_link_with_settings endpoint:
Or, to list existing shared links, use /2/sharing/list_shared_links:
https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_shared_links
Those are links to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible:
https://www.dropbox.com/developers/documentation
Those have corresponding native methods for the HTTPS endpoints.
- Greg-DBDropbox Staff
Yes, Dropbox does offer an API you can use for programmatically interacting with Dropbox lke this. You can find everything you need to get started with the Dropbox API, including documentation, tutorials, and SDKs here:
https://www.dropbox.com/developers
Specifically, to create a shared link to any file or folder, you can use the /2/sharing/create_shared_link_with_settings endpoint:
Or, to list existing shared links, use /2/sharing/list_shared_links:
https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_shared_links
Those are links to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible:
https://www.dropbox.com/developers/documentation
Those have corresponding native methods for the HTTPS endpoints.
- tohsumiExplorer | Level 3
Thank you very much!
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,912 PostsLatest Activity: 2 hours agoIf 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!