Added endingDate to API request.