Adaptation for API calls