Start 2025 on time and up to date. Seamlessly integrate your calendars into Dropbox with these simple steps.

Forum Discussion

yatin_manchanda's avatar
yatin_manchanda
Explorer | Level 4
2 years 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.)

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    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,927 PostsLatest Activity: 4 hours ago
337 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!