You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

yatin_manchanda's avatar
yatin_manchanda
Explorer | Level 4
11 months ago

search (/2/files/search_v2) using multiple paths/regex

Hi, I want to search within multiple folder/subfolders, I tried passing regex/ multiple paths but i got an error for invalid path. Is this possible anyway?

 

For example I want to search within these 2 paths

 

/folder1/subfolder1

/folder2/subfolder2

  • The Dropbox API does not offer the ability to search in multiple paths in a single call, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. Instead, you should issue one call per path.

     

    (Alternatively, you can omit the 'path' entirely, in which case the search will operate on the root and subfolders; you could then filter the results as desired.)

  • The Dropbox API does not offer the ability to search in multiple paths in a single call, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. Instead, you should issue one call per path.

     

    (Alternatively, you can omit the 'path' entirely, in which case the search will operate on the root and subfolders; you could then filter the results as desired.)

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,883 PostsLatest Activity: 14 hours ago
326 Following

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 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!