Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

ssergio's avatar
ssergio
New member | Level 2
2 years ago

Complex add shared links in account

Hello, please help me solve the problem.

I have 500+ shared links from another user.
I created my Dropbox account and created an application where I obtained KEY, SECRET, and TOKEN.

The shared links look like this:

https://www.dropbox.com/scl/fo/mp**********mwkrdxiko/h?rlkey=bu9j7zrcn**********p09lep&dl=0
https://www.dropbox.com/scl/fo/xffn**********7luxape/h?rlkey=bw5vgt01fyj0**********b4i&dl=0
https://www.dropbox.com/scl/fo/mo9xzivg**********032/h?rlkey=etvds95uk3o**********r1a7&dl=0
https://www.dropbox.com/scl/fo/21csj43p**********214/h?rlkey=huj6s4cdhhc71fw**********&dl=0
https://www.dropbox.com/scl/fo/hcrjwuj**********p3oh/h?rlkey=pt5f7tw0yr**********xl99n&dl=0

I need to add these folders to my account (in bulk).
Trying to get some information, I can only call the `get_shared_link_metadata` method, which returns an ID like this: id:mKIwYbAWl2A********Y0A

Unfortunately, with this ID, I can't do anything further. None of the methods accept it.

Going to each link and manually clicking the "Join folder" button is torture. There must be some way to automate this process, right?

2 Replies

  • Здравко's avatar
    Здравко
    Legendary | Level 20
    2 years ago

    Hi ssergio,

    Your links are links to folders. Unfortunately, Dropbox provides endpoint to add only file as a single call (/2/files/save_url), not folder. You may try walk through the folder tree in a script and add all files one by one. Other solution may be download all folders locally in your Dropbox folder using something like here in a loop. One more solution may be mixture of the previous two. 😉 Whatever is most convenient for you.

    Hope this gives direction.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    2 years ago

    ssergio Здравко is correct; the Dropbox API does not offer a way to save entire folders from shared links into an account, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.

     

    For reference, for information on using the 'dl' and 'raw' URL parameters when directly accessing a shared link, refer to this help center article: https://help.dropbox.com/share/force-download

About Dropbox API Support & Feedback

Node avatar for 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!