Zum Inhalt springen
GET /v1/meta

Service metadata

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/yieldcurve-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/yieldcurve-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/yieldcurve-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/yieldcurve-api/v1/meta");
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/yieldcurve-api/v1/meta",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "source": "Yahoo Finance US Treasury yield indices (live)",
        "service": "yieldcurve-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/curve": "The whole yield curve + spreads, shape and inversion flag.",
            "GET /v1/yield": "A single maturity's yield (maturity=10y|2y|5y|30y|3m).",
            "GET /v1/spread": "Spread between two maturities (long=10y&short=2y)."
        },
        "maturities": [
            "3m",
            "2y",
            "5y",
            "10y",
            "30y"
        ],
        "description": "Live US Treasury yield curve from Yahoo Finance: current yields for the 3-month, 2-year, 5-year, 10-year and 30-year Treasuries with daily change in basis points, the curve shape (steep/normal/flat/inverted), the key 10y-2y and 10y-3m spreads (whose inversion has preceded US recessions) and an inverted flag. Get the whole curve, a single maturity, or any spread. Live, no key. Distinct from US Treasury fiscal-data APIs (debt and issuance) — this is the live market yield curve.",
        "upstream_status": "ok"
    },
    "meta": {
        "timestamp": "2026-06-09T03:02:18.288Z",
        "request_id": "269b7621-b885-4233-a780-620e0c92ca83"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}