cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to know more about how you can find anything and protect everything? Check it out here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get link for a file?

Get link for a file?

Ulf K.2
New member | Level 1

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 2

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.2
New member | Level 1

Thank you, Gregory!

That's enough to write a small script that does what I need 🙂

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Ulf K.2 New member | Level 1
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?