/v1/meta
Service metadata and endpoint list
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/usfiscal-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/usfiscal-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/usfiscal-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/usfiscal-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": {
"source": "US Treasury FiscalData (api.fiscaldata.treasury.gov, live)",
"service": "usfiscal-api",
"endpoints": {
"GET /v1/meta": "This document.",
"GET /v1/deficit": "Federal budget deficit/surplus by month for the current fiscal year (receipts, outlays, net).",
"GET /v1/avg-rates": "Average interest rate the Treasury pays on each class of its debt, plus the overall rate.",
"GET /v1/interest-expense": "Interest paid to service the national debt — month and fiscal-YTD, by security type."
},
"description": "Live US federal fiscal data from the US Treasury's official FiscalData API — the cost-and-flow side of US public finance. The deficit endpoint returns the federal budget deficit/surplus by month for the current fiscal year (receipts, outlays, net) from the Monthly Treasury Statement; the interest-expense endpoint returns the interest the US pays to service its national debt, by month and fiscal-year-to-date, broken down by security type; the avg-rates endpoint returns the average interest rate the Treasury pays on each class of its debt (Bills, Notes, Bonds, TIPS) plus the weighted overall rate. Live, no key, nothing stored. Distinct from debt-level (debt-to-the-penny) and auction feeds — this is the deficit, the interest bill and the average rate on the debt.",
"upstream_status": "ok",
"latest_record_date": "2026-05-31"
},
"meta": {
"timestamp": "2026-06-10T22:56:36.853Z",
"request_id": "48ddef71-5fa9-4c1b-a2a7-8add7d78dc3b"
},
"status": "ok",
"message": "Meta",
"success": true
}