We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
bethesda4
6 years agoExplorer | Level 4
Using API to get a list of *direct* url's to images in a folder
We're building an app in Python that will need to retrieve a list of every file in a particular folder containing jpg images, and for each image, we need to get a direct http url that can be used in ...
Greg-DB
Dropbox Community Moderator
6 years agoTo get a direct link to a file via the API you can call the /2/files/get_temporary_link endpoint. In the official Dropbox API v2 Python SDK, that's available as files_get_temporary_link.
Note that those links are only valid for four hours. If you need longer-lived links, you can instead use /2/sharing/create_shared_link_with_settings / sharing_create_shared_link_with_settings. Those point to the HTML preview page by default, but you can modify them for direct access as documented in this help center article.
Also, be aware that these links are subject to the bandwidth limits documented here.
bethesda4
6 years agoExplorer | Level 4
Thanks!
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!