We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
qa santacruzsoftware
2 years agoNew member | Level 2
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":[]}
1 Reply
- Greg-DB2 years ago
Dropbox Community Moderator
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
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!