<?php
$data = json_decode(file_get_contents("https://api.cryptonator.com/api/ticker/btc-rub"));
$price = $data->objects[0]->price;
echo $price;
?>
$price = $data->ticker->price;
object(stdClass)#2 (4) {
["ticker"]=>
object(stdClass)#1 (5) {
["base"]=>
string(3) "BTC"
["target"]=>
string(3) "RUR"
["price"]=>
string(15) "475260.76937314"
["volume"]=>
string(13) "1206.63030836"
["change"]=>
string(10) "3.44370048"
}
["timestamp"]=>
int(1521061861)
["success"]=>
bool(true)
["error"]=>
string(0) ""
}