I use this to retrieve data from url in JSON:
$apiUrl = "https://api.uphold.com/v0/ticker/UPXAU"; $upxau_rates = file_get_contents($apiUrl); if($upx