API for tracking