/v1/meta
Datasets & source
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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
}