fixed bug in api call, unneccessary date params removed.