Take Your Search Game to the Next Level with Dropbox Dash 🚀✨ Curious how it works? Ask us here!
Forum Discussion
Ulf K.2
9 years agoNew member | Level 1
Get link for a file?
I'd like to get the public dropbox link for a local file.
E.g.: https://www.dropbox.com/s/<some id>/v16.90.0310_beta.zip?dl=0
is the public dropbox link for the local file:
C:\Users\%USERNAME%\Dropbox\XY_Updates\v16.90.0310_beta.zip
Is there a way to get this one with an API (preferred: Python) call? Unfortunately the Windows Version doesn't have a CLI interface (like the linux version) which would make the whole thing pretty easy...
2 Replies
Sort By
- Greg-DB
Dropbox Staff
Yes, the Dropbox API does offer the ability to get shared links for files. If you use the Python SDK, you can use the sharing_create_shared_link_with_settings method.
Or, if you prefer to use the HTTP endpoints themselves, that's /2/sharing/create_shared_link_with_settings.
- Ulf K.2New member | Level 1
Thank you, Gregory!
That's enough to write a small script that does what I need :)
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,000 PostsLatest Activity: 3 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!