Bitstamp
stdClass Object
(
[high] => 386.79
[last] => 384.68
[timestamp] => 1447080345
[bid] => 383.50
[vwap] => 377.17
[volume] => 31617.08639580
[low] => 360.54
[ask] => 384.68
[open] => 372.86
)
Cryptonator
stdClass Object
(
[ticker] => stdClass Object
(
[base] => BTC
[target] => USD
[price] => 384.00554772
[volume] => 86389.13547003
[change] => 1.19810497
)
[timestamp] => 1447080181
[success] => 1
[error] =>
)
So basically you need something like:
$btc_usd = json_decode(file_get_contents('https://www.cryptonator.com/api/ticker/btc-usd'));
echo $btc_usd->ticker->price;
?>