We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

ravindra007's avatar
ravindra007
Explorer | Level 4
4 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

  • Lusil's avatar
    Lusil
    Icon for Dropbox Staff rankDropbox Staff
    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

      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
        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 Staff rankDropbox Staff

    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.