Is there an API for detecting websites and when they are visited?