return api from provider