Added date search to API