/v1/rates
One BTC valued in every unit
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/btcrates-api/v1/rates" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/btcrates-api/v1/rates", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/btcrates-api/v1/rates");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/btcrates-api/v1/rates",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"base": "BTC",
"note": "Value is the amount of `unit` that one BTC is worth.",
"count": 76,
"rates": [
{
"name": "United Arab Emirates Dirham",
"type": "fiat",
"unit": "AED",
"value": 229952.336
},
{
"name": "Armenian Dram",
"type": "fiat",
"unit": "AMD",
"value": 23064410.575
},
{
"name": "Argentine Peso",
"type": "fiat",
"unit": "ARS",
"value": 89442885.421
},
{
"name": "Australian Dollar",
"type": "fiat",
"unit": "AUD",
"value": 89521.803
},
{
"name": "Bosnia and Herzegovina Convertible Mark",
"type": "fiat",
"unit": "BAM",
"value": 106126.777
},
{
"name": "Bitcoin Cash",
"type": "crypto",
"unit": "BCH",
"value": 313.503
},
{
"name": "Bangladeshi Taka",
"type": "fiat",
"unit": "BDT",
"value": 7696509.624
},
{
"name": "Bahraini Dinar",
"type": "fiat",
"unit": "BHD",
"value": 23615.071
},
{
"name": "Bits",
"type": "crypto",
"unit": "BITS",
"value": 1000000
},
{
"name": "Bermudian Dollar",
"type": "fiat",
"unit": "BMD",
"value": 62603.579
},
{
"name": "Binance Coin",
"type": "crypto",
"unit": "BNB",
"value": 104.571
},
{
"name": "Brazil Real",
"type": "fiat",
"unit": "BRL",
"value": 323334.965
},
{
"name": "Bitcoin",
"type": "crypto",
"unit": "BTC",
"value": 1
},
{
"name": "Canadian Dollar",
"type": "fiat",
"unit": "CAD",
"value": 87677.564
},
{
"name": "Swiss Franc",
"type": "fiat",
"unit": "CHF",
"value": 50124.87
},
{
"name": "Chilean Peso",
"type": "fiat",
"unit": "CLP",
"value": 57026226.273
},
{
"name": "Chinese Yuan",
"type": "fiat",
"unit": "CNY",
…