Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Vincent P.9
10 years agoExplorer | Level 4
How to read a shared folder link in v2?
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
- Greg-DB10 years ago
Dropbox Community Moderator
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
- tim10 years agoExplorer | 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?
- tim10 years agoExplorer | 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-DB10 years ago
Dropbox Community Moderator
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.
- tim10 years agoExplorer | 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-DB10 years ago
Dropbox Community Moderator
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.
- tim10 years agoExplorer | 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.510 years agoNew member | Level 1
Crying here.
- Alexander P.510 years agoNew member | Level 1
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 :(
- Greg-DB10 years ago
Dropbox Community Moderator
Alexander, it sounds like you already sorted some of this out, so I'll follow up on the latest thread you replied on, so as not to spam others on these threads.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
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, Facebook or Instagram.
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!