cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to know what we learned at IBC? Check out our learnings on media, remote working and more right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

API response limited to 2,000 items

API response limited to 2,000 items

AlmightyOatmeal
Helpful | Level 6

I do a lot of photo work and try to automate some of my photo and video sorting and processing but I've run into a pretty big issue: Apparently there is a maximum of 2,000 items returned when getting a directory listing. Is it paginated? If so, why doesn't the Python API client handle pagination?

 

From one of my servers using the latest Python API client:

╭─jivanov@irony  ~
╰─$ dropbox-api ls /Camera\ Uploads | wc -l
    2000

 

 

From my personal laptop running the latest Dropbox client application:

 

╭─jamie@BeefCurtainMoses  ~/Dropbox/Camera Uploads
╰─$ ls -1 | wc -l
    2353

 

1 Reply 1

Greg-DB
Dropbox Staff

The list_folder response is paginated. If ListFolderResult.has_more is True, you should call back to files_list_folder_continue for more entries. The documentation for list_folder has information for processing these.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?