We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
prabhat1999
2 years agoExplorer | Level 3
Tagging Folder
I have manually added the tags to a folder. now I want to search the folders with the given tag. is there a way to get only folders not files? PS:- I am aware of 2/files/search_v2 API but I want...
prabhat1999
2 years agoExplorer | Level 3
I am creating a custom program to search the folder with specific tags
Greg-DB
Dropbox Community Moderator
2 years agoThat's correct, while this is not officially documented, you can put a tag as the search query for /2/files/search_v2 to search for the tag.
For example, in the Python SDK, along with setting the "folder" category, that would look like this:
result = dbx.files_search_v2(query="#testingtag", options=dropbox.files.SearchOptions(file_categories=[dropbox.files.FileCategory.folder]))
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
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, Facebook or Instagram.
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!