makes api for page hits