made api call