api now takes start/stop time parameters