We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Caunz
8 years agoExplorer | Level 3
How i get a file ID from a share URL?
Hi, In my business they use functions to download files from others applications like OneDrive or Google Drive from the link generated when you share files and copy in a textbox, IDs generated fr...
- 8 years ago
Dropbox offers a "shared link" feature which enables you to share files or folders via a link.
You can create shared links via the API using /2/sharing/create_shared_link_with_settings. Note that these shared links themselves do contain a random token specific to the shared link, but this is not the "file ID".
If you have a shared link and want to get the ID for the file or folder it points to, you can use the /2/sharing/get_shared_link_metadata endpoint. The returned information will contain the 'id'. Likewise, to get the actual file data, you can use /2/sharing/get_shared_link_file.
Greg-DB
Dropbox Community Moderator
8 years agoDropbox offers a "shared link" feature which enables you to share files or folders via a link.
You can create shared links via the API using /2/sharing/create_shared_link_with_settings. Note that these shared links themselves do contain a random token specific to the shared link, but this is not the "file ID".
If you have a shared link and want to get the ID for the file or folder it points to, you can use the /2/sharing/get_shared_link_metadata endpoint. The returned information will contain the 'id'. Likewise, to get the actual file data, you can use /2/sharing/get_shared_link_file.
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!