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?
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.
Thank you.
so how does dropbox decide what files names to retrieve in the first request of /files/list_folder?
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.