Forum Discussion

Artem K.'s avatar
Artem K.
New member | Level 1
10 years ago

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-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

    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.

  • Tom B.38's avatar
    Tom B.38
    New member | Level 1
    10 years ago

    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-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

    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.38's avatar
    Tom B.38
    New member | Level 1
    10 years ago

    For anyone else looking. I got a second page at 2000 files exactly. Guess YMMV though.

About Dropbox API Support & Feedback

Node avatar for 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!