Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Dan L.10
10 years agoNew member | Level 1
HTTP API v2 files/search: not recursive until select top-level folder?
I'm using v2 of the API and running into an unexpected situation with the files/search HTTP endpoint. Wondering if this is a configuration issue or expected behavior.
I'm trying to list of a user's files of a certain type. With v1 of the api, you could set path: '' and query: '.xls'.
When I use v2 of the API and hit the files/search endpoint, it seems that the same parameters return nothing. Only when I set the path to be one of the top-level folders (eg returned from files/list_folder) does it seem to return results (and then it does return results recursively, ie any .xls file in any subfolder).
Is there something special about these top-level folders that prevents an overall search from finding all results? Is there any way to get around that so I can do a search like "Show me all .xls files in a user's dropbox"?
4 Replies
Replies have been turned off for this discussion
- Greg-DB10 years ago
Dropbox Community Moderator
Hi Dan, I'm not seeing the same behavior when trying this out myself. Can you share your code and output? (Just be sure the redact the access token.) Thanks in advance!
If you'd prefer to share privately, you can open an API ticket here:
- Dan L.1010 years agoNew member | Level 1
Just using the straight HTTP files/search endpoint. I get results like {matches: [], more: false, start: 0} with a path of '', and I get matches when I search in one of the folders.
One possible complication: I use a dropbox business account, and the top-level folders have a different icon (red) than the sub-folders that do work recursively (green):

- Greg-DB10 years ago
Dropbox Community Moderator
Thanks! That's helpful, and I can reproduce this now. This seems to only occur for shared folders (which is what that icon signifies). We're looking into it.
- Greg-DB10 years ago
Dropbox Community Moderator
This should be working properly now.
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!