Discuss Dropbox Developer & API
How to get a file download link with python and javascript?
If you need to download a file via the API, you can do so directly by using /2/files/download. That's files_download in the Python SDK, and filesDownload in the JavaScript SDK.
If you do need to download a file from a URL instead of directly from an API call though, you can call /2/files/get_temporary_link to get a temporary link to the file, which you can then use to download the file. That's files_get_temporary_link in the Python SDK, and filesGetTemporaryLink in the JavaScript SDK.
I want to put the fixed path
data/
├── folder1
├── hello.json
├── haha.json
├── folder2
├── aa.json
Could I search the folder1 and get the link of hello.json and the link of haha.json with code?
Do you have suggestions?
I see you opened a new thread for this. I'll follow up with you there.
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on X or Facebook.
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!