Vai al contenuto
GET /v1/meta

Service metadata

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/yieldcurve-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}