cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right 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: 

search with file tags api

search with file tags api

adityadsq
Explorer | Level 3

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

12 Replies 12

Здравко
Legendary | Level 20

@amilcarvalho wrote:

...

Thanks for you answer. I  post to the endpoint "/2/files/search_v2". With just {"query":"tag1"} on body.
I want to retrieve content that contains the tag1. Is this possible?

...


In such a way you will receive all entries metadata matching to the query. Matching are all entries (files and folders) containing in their names, tags, or content the query value - tag1. If you want to receive content of particular entry, you need to read it accordingly! Tags themself don't have any content, they're... just tags! Clarify to yourself what content you're looking for.

Greg-DB
Dropbox Staff

@amilcarvalho Thanks for the report. If you have a file with a tag "tag1" in the connected account, that /2/files/search_v2 call should return that file, so it sounds like something may not be working properly. We'll look into it.

Greg-DB
Dropbox Staff

@amilcarvalho Are you still seeing the issue with the file not being returned in the /2/files/search_v2 results when searching by tag? If so, please share the affected account ID and file ID so we can look into more specifically. Feel free to open an API ticket here to share privately. Thanks!

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    Здравко Legendary | Level 20
  • User avatar
    amilcarvalho Explorer | Level 3
What do Dropbox user levels mean?