basic API working with data collection script