Zum Inhalt springen
GET /v1/meta

Datasets & source

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "note": "Live US Treasury fiscal data. Filter by date or date range (from/to, YYYY-MM-DD); exchange rates by country or currency; interest rates by security. Public-domain US Treasury data.",
        "source": "US Treasury (api.fiscaldata.treasury.gov)",
        "datasets": {
            "debt": "US national debt to the penny (daily): total public debt, debt held by the public, intragovernmental holdings",
            "exchange_rates": "Official US Treasury reporting exchange rates (quarterly), ~170 currencies — used to convert foreign currency to USD for US government reporting",
            "interest_rates": "Average interest rates on US Treasury securities (monthly), by security type"
        },
        "endpoints": [
            "/v1/debt",
            "/v1/interest-rates",
            "/v1/exchange-rates",
            "/v1/meta"
        ]
    },
    "meta": {
        "timestamp": "2026-05-31T08:24:39.855Z",
        "request_id": "e658e0a3-5ab4-4160-b56e-dc34d0681b32"
    },
    "status": "ok",
    "message": "Meta retrieved",
    "success": true
}