Aller au contenu
GET /v1/yield_curve

Euro-area AAA bond yield curve

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/ecb-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/ecb-api/v1/yield_curve" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/ecb-api/v1/yield_curve", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/ecb-api/v1/yield_curve");
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/ecb-api/v1/yield_curve",
    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": {
        "date": "2026-06-08",
        "basis": "AAA-rated central government bonds, spot rate",
        "count": 7,
        "curve": [
            {
                "tenor": "3M",
                "months": 3,
                "yield_pct": 2.2654
            },
            {
                "tenor": "6M",
                "months": 6,
                "yield_pct": 2.3824
            },
            {
                "tenor": "1Y",
                "months": 12,
                "yield_pct": 2.5225
            },
            {
                "tenor": "2Y",
                "months": 24,
                "yield_pct": 2.6236
            },
            {
                "tenor": "5Y",
                "months": 60,
                "yield_pct": 2.7495
            },
            {
                "tenor": "10Y",
                "months": 120,
                "yield_pct": 3.0921
            },
            {
                "tenor": "30Y",
                "months": 360,
                "yield_pct": 3.5611
            }
        ],
        "region": "Euro area",
        "source": "European Central Bank",
        "spread_10y_1y_bps": 57
    },
    "meta": {
        "timestamp": "2026-06-09T11:39:44.982Z",
        "request_id": "a6b4b219-b30d-45b9-aa4c-b99deb699b3a"
    },
    "status": "ok",
    "message": "Yield curve retrieved successfully",
    "success": true
}