pings api at correct frequency