Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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?
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
@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?
... 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
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.
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?!
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.
Yeah, "the same information" isn't what's necessary. "Doing the most basic thing that it did in v1", ie. listing files, is necessary.
Crying here.
Vincent, could you please share a bit in V1 how you use that list that v1 https://api.dropbox.com/1/metadata/link gives?
I'm after links to actual files, not just their names.
Can't figure that out from docs so far 😞
Hi there!
If you need more help you can view your support options (expected response time for a 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!