We Want to Hear From You! What Do You Want to See on the Community? Tell us here!

Forum Discussion

ravindra007's avatar
ravindra007
Explorer | Level 4
5 years ago

Pagination for listfolder content

How to acheive pagination using listfolder endpoint let me know. Because at a time all the folder content reteriving into window or page it taking too much time so we need to implement in this scenarion pagination please colud help any one advance Thanks

4 Replies

  • Lusil's avatar
    Lusil
    Icon for Dropbox Staff rankDropbox Staff
    5 years ago
    Hey there ravindra007, thanks for checking in with us. 

    Are you trying to do this via the web or a third party app?

    If it's through the web, could you clarify the browser you're using and which part of the web you're having this issue with?

    Let me know and we'll go from there, cheers!
  • ravindra007's avatar
    ravindra007
    Explorer | Level 4
    5 years ago

    Hi @Using chorme browser web application. I am getting json data whenever i call listfolder endpoint,  But i want show those content into paganation i don't want show all the folder content at time. Is there any endpoint to call limitted data from dropbox api(Ex: Endpoint with start index and limit for endpoint data).

  • Lusil's avatar
    Lusil
    Icon for Dropbox Staff rankDropbox Staff
    5 years ago
    Ah, I see, thanks for clarifying that for me.

    I moved your posts here, to the Develop & API section, where other like-minded users might be able to offer more input on this. 

    In the meantime, if you have any other questions, don't hesitate to give us another shout. Cheers!
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    5 years ago

    ravindra007 To list the contents of a path via the Dropbox API, you should use the /2/files/list_folder and /2/files/list_folder/continue endpoints. Those are already paginated, meaning that you may need to make multiple calls in order to retrieve all of the results. The exact page size isn't guaranteed though. You can specify the "limit" parameter on /2/files/list_folder to request an approximate maximum on the number of entries that would be returned per page. Please refer to the documentation linked above for more information.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,033 PostsLatest Activity: 4 hours ago
409 Following

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