cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Great and all as it is to hear how we use Dropbox, we want to know how you use it! Day to day, big projects, sharing files with friends and family - we want to know about it.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

API: Folder and Recursive search for File or Folder by name (and by extension)?

API: Folder and Recursive search for File or Folder by name (and by extension)?

jeff00coder
Explorer | Level 4

Good day,

Through the main user console of an Dropbox account, one can search for files by name:

https://help.dropbox.com/files-folders/sort-preview/search

It is not clear looking at the API documentation if it possible via API to search for a file (by name or extension) and for a Folder (by name)?

Search either:

  • Only within a specific Folder (not recursive) given Path or ID?
  • Recursively from a Folder given Path or ID?

Thx

1 Reply 1

Re: API: Folder and Recursive search for File or Folder by name (and by extension)?

Greg-DB
Dropboxer

The Dropbox API does offer the ability to programmatically search in the connected account, with a number of different options. You can find more information in the documentation here:

https://www.dropbox.com/developers/documentation/http/documentation#files-search

You can specify the query, such as a file or folder name or file extension, that you want to search for you in the "query" parameter. 

You can also restrict the search to a particular path using the "path" parameter under the "options" field, specifying either path or ID.

It's not currently possible to request non-recursive search, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. 

Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?