Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
I'm trying to pull in a list of all files from dropbox - I have a folder with ~ 500 files in it.
However, if I call list_folder, e.g.:
curl -X POST https://api.dropboxapi.com/2/files/list_folder \
--header "Authorization: Bearer REDACTED" \
--header "Content-Type: application/json" \
--data "{\"path\": \"/Tuckers\",\"recursive\": true,\"include_media_info\": false,\"include_deleted\": false,\"include_has_explicit_shared_members\": false,\"include_mounted_folders\": true,\"include_non_downloadable_files\": true}" &> whee.txt
and then list the files:
grep -o path_lower whee.txt | wc
230 230 2530
I only get back a subset of the number of files. The response has_more is false, so I don't quite understand why all the files aren't being returned.
If has_more is false, you should be getting all of the results for that folder in the account for that access token. It doesn't look like you're doing anything wrong here, so we'll need to look into this more closely. Can you open an API ticket and share that 'whee.txt' file so we can investigate? Thanks in advance!
Hi there!
If you need more help you can view your support options (expected response time for a 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!