We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
itsisaf
4 years agoExplorer | Level 3
Dropbox API read files from someones shared link
Hi, I am a PHP web developer trying to integrate dropbox API. What I need is to access files (CSV, Images). Scenario : I have a link to dropbox shared by some company [link removed by moderator] I...
- 4 years ago
Hi itsisaf,
If you have a shared file link, then you don't need any API to get its content. Just get it as you would do for any other link. Only additional thing you can care, if need, let link gets redirect before reaching final stage. In addition usually proper parameter for raw access is needed to be set (if not preset in the link - typically it's not). The same is valid for any type of file; proper content interpretation is entirely your responsibility.
If you have a shared folder link, you may need to use /2/files/list_folder[/continue] API points to list the content and reach to there. 😉 That's it.
Hope this helps.
Greg-DB
Dropbox Community Moderator
4 years agoitsisaf Здравко is correct; with a shared link you can download the content directly. Refer to this help article for more information on configuring these links.
And as they said, if the shared link is for a folder, you can use /2/files/list_folder[/continue] to list the contents of the folder. And to download a file from a shared link via the API, you can use /2/sharing/get_shared_link_file.
About Discuss Dropbox Developer & API
Make connections with 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!