Clean up API calls.