search_categories Property
Resource categories to restrict the search to.
Syntax
def get_search_categories() -> str: ... def set_search_categories(value: str) -> None: ...
search_categories = property(get_search_categories, set_search_categories)
Default Value
""
Remarks
This property may be set to a comma-separated list of resource categories to restrict the search results returned by search. Possible categories include:
Category | Associated File Extensions |
image | jpg, png, gif, ... |
document | doc, docx, txt, ... |
spreadsheet | xls, xlsx, csv, ... |
presentation | ppt, pptx, key, ... |
audio | mp3, wav, mid, ... |
video | mov, wmv, mp4, ... |
folder | (Dropbox folders) |
paper | (Dropbox Paper documents) |
others | (all other files) |
The list of valid categories (and their associated file extensions) is defined by Dropbox and may change at any time; refer to the Dropbox API documentation for more information.
Note that the server will only apply this search restriction when search_kind is set to dskActive (0).