Using the WordPress Rest API and Ajax to have secure information brought in from an external API. The Javascript then adds the information to the HTML on the front end.
This is from a Youtube Video here
Read more about this via https://tomjn.blog/2017/01/23/writing-wp-rest-api-endpoint-2-minutes/