implemented api for getting results by date offset