We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

LKT's avatar
LKT
Explorer | Level 3
6 years ago

Get child folder link from shared folder link

Hi,

I am trying to use the API to get the already created shared url for child folders in a shared folder.

 

To demonstrate I have a shared folder link that contains some files and a folder here:

https://www.dropbox.com/sh/lgjbsmsdzyobz8a/AABQPF-7nPepYQO8XXRObsJ9a?dl=0

If I click the folder kittens I get a new url:

https://www.dropbox.com/sh/lgjbsmsdzyobz8a/AAAIfr7gFKAcPT_JhqJwqKN7a/kittens?dl=0&subfolder_nav_tracking=1

 

How can I get the url for the kittens folder from the first shared url using the API? I know I can use files/list_folder to get the file and folder names but I don't see how I can convert that to the shared link.

 

Thanks

 

  • The Dropbox API doesn't offer a way to get the child link like this unfortunately, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. 

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    The Dropbox API doesn't offer a way to get the child link like this unfortunately, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. 

    • Greg-DB's avatar
      Greg-DB
      Icon for Dropbox Staff rankDropbox Staff

      Update: The Dropbox API now returns the shared link for the nested item as 'url' when requesting the metadata for that item using the "path" parameter on /2/sharing/get_shared_link_metadata (instead of the original parent link).