Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

Goldmine's avatar
Goldmine
Explorer | Level 3
3 years ago

Search the file in folder

The basic search of  file in all folders work fine but I want to search a file in particular folder not whole dropbox. how to implement this.

4 Replies

  • Jay's avatar
    Jay
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    3 years ago

    Hi Goldmine, thanks for bringing this to our attention.

     

    You can navigate to a folder on the site, and then when you search, it will be limited to that folder.

     

    If you have any further queries, feel free to message back.

  • Goldmine's avatar
    Goldmine
    Explorer | Level 3
    3 years ago

    for implementation using /files/search_v2

    api and pass query and option path parameter for search but its not work for folder wise search. how to resolve this.

  • Jay's avatar
    Jay
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    3 years ago

    Thanks for the info, for any API queries, It needs to be in the appropriate forum, so I'll move this post there.

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

    Goldmine Using the options.path parameter on /2/files/search_v2 is the right way to restrict the search to a particular folder. (By the way, the API v2 Explorer can be useful for trying out calls like this.) I just tried that and it is working for me. If that doesn't appear to be working for you, please share the code and parameters you're using, along with the unexpected output, so we can look into it for you. Be sure to redact the access token though. If you'd prefer to share privately, you can open an API ticket here.

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!