api call and save result