We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Artem K.
10 years agoNew member | Level 1
list_folder limit is not documented
I cannot find in the documentation for http endpoint https://api.dropboxapi.com/2/files/list_folder the maximum number of files that is retrieved in one call. From the fact it returns has_more property in the response, I assume there must be a limit. I would like to know what that limit is.
7 Replies
- Greg-DB10 years ago
Dropbox Community Moderator
We don't guarantee any particular page size, and I believe it can vary in practice. Apps should always just check has_more and call back to /files/list_folder/continue if it's true, and so on.
- Artem K.10 years agoNew member | Level 1
Understood, thank you
- Tom B.3810 years agoNew member | Level 1
I understand that there is no guarantee. However I would like to test my /files/list_folder/continue logic. Can we get a rough estimate? Or is there a way for me to set the limit for testing purposes?
- Greg-DB10 years ago
Dropbox Community Moderator
If I recall correctly, I believe you should get multiple pages after around 1,000 items. There isn't a way to force the limit though.
- Tom B.3810 years agoNew member | Level 1
Thanks, I'll give that a go.
- Tom B.3810 years agoNew member | Level 1
For anyone else looking. I got a second page at 2000 files exactly. Guess YMMV though.
- Greg-DB9 years ago
Dropbox Community Moderator
I just wanted to follow up here to let you know that you can now set an approximate limit on the list_folder page size using the "limit" parameter:
https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder
Hope this helps!
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!