How do I perform a “get” call to an external API, and then display the JSON results on a page in my WordPress site?

Ended up developing a plugin using AJAX to make the calls to the API

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)