Could you write a version that makes a request to an API?