Accenture Interview Question

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