Use AJAX to load and parse the API response after the page has loaded on the client side. Or, if the API has some keys that are all secret or whatever, then write a PHP 'relay' script that will use cURL to fetch the information and return it and that way your development keys don't get exposed to the client.