Could you factor out the bit that does the API call, URL joining, etc? That'll make it easier to add more methods later.