added api call to get data for run