[API] find latest files

Might be useful to use also the latest parameter