We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
nameless witch
11 months agoNew member | Level 1
Can Dropbox API enable permanent share link extraction?
I used the Dropbox API to export file metadata, including titles, paths, created dates, and Dropbox links, into an Excel sheet for my employer. In my script, I enabled the "file.metadata.read", "sha...
DB-Des
Dropbox Community Moderator
11 months agoHi nameless witch,
The script you provided is first sending a request to /sharing/create_shared_link_with_settings endpoint, yet you mention you are wanting to "to export file metadata, including titles, paths, created dates, and Dropbox links". This endpoint is to create shared links. To extract metadata from existing shared links, you would need to send a request to /sharing/list_shared_links endpoint.
The second part of the script sends a request to /files/get_metadata endpoint. This endpoint will return metadata of a file or folder, however, the response will not include a "link" (or "url"). Similar to the previous statement, to retrieve shared link URLs, you would need to send a request to /sharing/list_shared_links.
If you are looking to create shared links with this script, the first section of the script—where it calls /sharing/create_shared_link_with_settings—will work. The response of this endpoint will contain a "link" (or "url") field.
As far as your last question, Dropbox does not place any restrictions on sharing links due to the account being a business account.
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!