Accenture interview question

How to make an API call using the webpage dynamic loading style?