You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
adityadsq
3 years agoExplorer | Level 3
search with file tags api
i am trying to get the list of files based on tags using search api. when i search file name it return the data but not with the tags. please help
adityadsq
Explorer | Level 3
Hi Greg,
Thanks for your response.
Let me explain the requirement in-detailed:We have a set of videos and images added in Dropbox in various folders. Every file is associated with some tagnames. Further, I’ve developed a web page where it has a search box and entering a keyword, it should pickup all the files from dropbox. I am using 2/files/search_v2 API. It is working fine when I search with the file name/title. But it is not considering the tagnames. How can I implement this? Apart from the filename/title, it should return the relevant videos/pictures when searched with tag names as well. Hope this clarifies. Thanks in advance!
Greg-DB
3 years agoDropbox Staff
Thanks for the additional information. Just to clarify a bit further, are you referring to tags applied to items using the Dropbox web site or /2/files/tags/add, or something else?
- adityadsq3 years agoExplorer | Level 3
Hi,
I want to search and retrieve files with tag names. search_tags key is returning key not found error.
when i search in dropbox with tag names it was showing the files that matches to the tag names.
but in the same condition is not working in the api (https://api.dropboxapi.com/2/files/search_v2). i have given all the parameters required.
Parameters:
{"query": "test","options": {"path": "pathname","max_results": 10,"image_content_search": false,"order_by": {".tag": "relevance"},"reverse_order": false},"match_field_options": {"include_highlights": false}}- Greg-DB3 years agoDropbox Staff
Just to confirm exactly what functionality you are referring to, are you applying the tags you mentioned by using the Dropbox web site or /2/files/tags/add, or something else?
Also, note that you should only be using the options and fields documented for /2/files/search_v2 here, which does not include "search_tags", "image_content_search", or "reverse_order".
- amilcarvalho2 years agoExplorer | Level 3
Hello,
I'm getting the same issue. I have a file with tags added by website and by the api endpoint 2/files/tags/add.
When I make the request only works with file name.Hope you can help me
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,889 PostsLatest Activity: 44 minutes agoIf 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!