REST API: Data in descending or limit from persistence service

I am trying to fetch data from the MongoDB setup and am able to fetch data but issue is the data i am interested in is last 50 values only but not able to retrive those. I ahev also tried with the start time and endtime but had no luck.

Please let me know any way around.