You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

Ragindev's avatar
Ragindev
Explorer | Level 3
3 years ago

Dropbox list folder API not returning folder items.

Previously I have used the following API end-point to list all files in the folder
Now its not working as previous, it returns empty list
 
Is there any new API update from Dropbox. ?
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    Ragindev As Здравко noted, make sure you implement both /2/files/list_folder and /2/files/list_folder/continue. You're not guaranteed to get everything back in one call. Check out the linked documentation for more information.

     

    Also, if you're using a team account, note that the team may have recently switched to the "team space" configuration. By default, API calls operate in the "member folder" of the connected account, not the "team space", so you wouldn't see anything in the team space when using the API by default. You can configure API calls to operate in the "team space" instead though. To do so, you'll need to set the "Dropbox-Api-Path-Root" header. You can find information on this in the Team Files Guide.