Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

Filipe Q.'s avatar
Filipe Q.
New member | Level 1
10 years ago

File metadata through share link

Hi,
I'm Filipe and I've been using Dropbox android SDK for some years now. Currently i'm developing an application that receives a share link from Dropbox's native android application.
Is there any way for me to get that file (or folder) metadata (path and size) from the share link alone? Currently I'm querying all my files and folders for items with the same name, but that is not efficient and it wont work for duplicate items.
Is there any other (smart) way of doing this.
Cheers

3 Replies

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

    (Apologies for the delay. For future reference, be sure to post anything about the Dropbox API in the "API Development" forum so we'll see it quickly.)

    Unfortunately, no, there's currently no way to get metadata from the shared link itself, but I'll be sure to pass this along as a request.

  • Craig S.10's avatar
    Craig S.10
    New member | Level 2
    9 years ago

    Is this still the situation? I get shared_link_not_found when I provide a collection URL to the /get_shared_link_metadata.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    9 years ago

    Hi Craig, this thread was about something slightly different (i.e., getting metadata for the link without using the API at all), but what you found is correct. The get_shared_link_metadata API endpoint doesn't currently support collection links. We'll consider this a feature request for support for that though.

About Dropbox API Support & Feedback

Node avatar for 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!