USAspending API ReferenceIndependent
Try the API

Spending Explorer

Drill down from budget function, agency, or object class to individual accounts.

Open a row for parameters and ready-to-run samples. The full reference has every field and a live console.

POSTSpending Explorer/api/v2/spending/

These endpoints are used to power USAspending.gov's Spending Explorer.

typefilters
curl -X POST 'https://api.usaspending.gov/api/v2/spending/' \
  -H 'Content-Type: application/json' \
  -d '{
  "type": "recipient",
  "filters": {
    "fy": "2020",
    "quarter": "1",
    "budget_function": "500",
    "budget_subfunction": "501",
    "federal_account": "5901"
  }
}'

Loading…