cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox 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: 

Re: search for latest file?

search for latest file?

ram s.3
New member | Level 1

my goal is to retrieve a list of files for the last 100 newest files in a given folder for ex., Is it possible to use the search API for that? or there is a different API that can achieve that?

3 Replies 3

Greg-DB
Dropbox Staff

There isn't a way to do that exactly, but I'd recommend using /files/list_folder and /files/list_folder/continue to stay up to date, so you can order things by client_modified or server_modified.

ram s.3
New member | Level 1

Thank you.

so how does dropbox decide what files names to retrieve in the first request of /files/list_folder?

Greg-DB
Dropbox Staff

The order is based on how Dropbox itself works on the backend. As long as you process the entries in order, your app's local state will get up to date with the server state.

Need more support?