cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

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

Greg-DB
Dropbox Staff

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. 

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?