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

qa santacruzsoftware's avatar
qa santacruzsoftware
New member | Level 2
8 months ago

Searching for '*' in the search api returns 0 results

This request should return all jpg assets but returns 0 results. (this used to work, but doesn't work anymore)

Any ideas?


Requets:
curl --location 'https://api.dropboxapi.com/2/files/search_v2' \
--header 'Authorization: Bearer sl.BzCOB6xVGXCxDTFiA4UQVtdcxTjaio7RIM4_8NnHHuMlrXkiyhvdtD6fKK8xmdCzWOJo0AbFcNzVym--OCYucSJev8YiVGK65d7BYtpT6SfdcivdISN7lC1KvG3TiOFFhv6gTgKVU788Spc' \
--header 'Content-Type: application/json' \
--data '{"query":"*","options":{"file_extensions":["jpg","jpeg"],"max-results":50}}'

Response:
{"has_more":false,"matches":[]}

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    The Dropbox API search functionality does not support searching by a wildcard like this, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.

     

    I can't speak to if/why that query might have done what you wanted before, but this was not officially supported or documented.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,888 PostsLatest Activity: 50 minutes ago
326 Following

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 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!