Pickyourtrail interview question

How do I get information from API?