add fromDate to api query