Delaying api call to 1sec