/v1/meta
Datasets & source
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode 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_..."}
)
Example response
A real response from this endpoint, captured by the latest 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
}