API call for fetching availability within a given period.