add api method to get last hits over time