cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more 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: 

How to read a shared folder link in v2?

How to read a shared folder link in v2?

Vincent P.9
Explorer | Level 4

When I share a dropbox folder by passing a link to someone, the format is something like:

https://www.dropbox.com/sh/someid/someotherid?dl=0

Here is the API to read a shared folder:

https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_folder_metadata

What is the folder id? I tried every part of the shared link without any success, I just get a 409 error "Invalid id".

How can I read a shared link?

14 Replies 14

Greg-DB
Dropbox Staff

The /2/sharing/get_folder_metadata endpoint you're referring to is for operating on shared folders, but you have a shared link (to a folder) which is a different kind of sharing functionality on Dropbox and so uses a different ID.

If you want information about a shared link, for a file or folder, you can use /2/sharing/get_shared_link_metadata:

https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_shared_link_metadata

Or to download file content from a link:

https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_shared_link_file

tim
Explorer | Level 4

@Gregory, how can you list the files that are at the public shared link?

get_shared_link_metadata does not return the list of files, and does not return the shared folder ID, so how is this possible?

tim
Explorer | Level 4

... forgot to write: this must be possible because it is possible in API v1 with 

https://api.dropbox.com/1/metadata/link

... i'm using SwiftyDropbox v2 and not able to do this now

Greg-DB
Dropbox Staff

Hi Tim, unfortunately that endpoint in API v2 doesn't currently return those particular pieces of information, but I'll be sure to pass this along as a feature request. 

tim
Explorer | Level 4

Wait so in v2 there is no way to list the files in a shared folder?! Ugggh i have to revert my whole app to v1?!

Greg-DB
Dropbox Staff

Apologies for the inconvenience! The API v2 shared link endpoint doesn't return all of the same information. I've sent this along as a request but I can't offer a timeline for when it may be added to v2. 

tim
Explorer | Level 4

Yeah, "the same information" isn't what's necessary. "Doing the most basic thing that it did in v1", ie. listing files, is necessary.

Alexander P.5
New member | Level 1

Crying here.

Alexander P.5
New member | Level 1

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    carp21 Helpful | Level 6
  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    gilbertwulff Explorer | Level 3
What do Dropbox user levels mean?