Catalog/gov-spending-agency

Government

Federal agency spending totals API

Return current-fiscal-year spending totals for a federal agency (matched by name, abbreviation, or 3-digit toptier code) from the keyless USAspending.gov toptier-agencies API, normalized into a clean schema (obligated amount, outlays, budget authority, percent of total federal budget). Answers 'how much did the Department of Defense obligate this year?','what share of the federal budget does agency X represent?'.

Price$0.01per request
MethodPOST
Route/v1/gov/spending-agency
StatusLive
MIME typeapplication/json
Rate limit60/minute
Cache3600s public
govusaspendingagencybudgetobligationsoutlaysspendingus
API URLhttps://x402.hexl.dev/v1/gov/spending-agency
Integration docs
Example request
{
  "agency": "Department of Defense"
}
Example response
{
  "query": "Department of Defense",
  "found": true,
  "agency": {
    "name": "Department of Defense",
    "code": "097",
    "abbreviation": "DOD",
    "fiscalYear": "2026",
    "obligatedAmount": 612345678901.23,
    "outlayAmount": 543210987654.32,
    "budgetAuthority": 812345678901,
    "pctOfTotalBudget": 11.84
  }
}
Input schema
{
  "type": "object",
  "required": [
    "agency"
  ],
  "properties": {
    "agency": {
      "type": "string",
      "examples": [
        "Department of Defense",
        "DOD",
        "097"
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}