api call and fromAPIResponse