get data coming into the app from api