Finished the first method: send an API request.