Aller au contenu
GET /v1/rates

One BTC valued in every unit

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/btcrates-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "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",
    
…