Make the API asynchronous