Program Activities Total
/api/v2/federal_accounts/{federal_account_code}/program_activities/totalThis endpoint returns an array of each program activity's obligation, code, name, and type for the specified federal account
Request
curl -X POST 'https://api.usaspending.gov/api/v2/federal_accounts/431-0500/program_activities/total' \
-H 'Content-Type: application/json' \
-d '{
"filters": {
"time_period": [
{
"start_date": "2019-10-01",
"end_date": "2020-09-30"
}
],
"program_activity": [
"0001"
]
}
}'Path parameters
federal_account_codestringRequiredFederal account code consisting of the AID and main account code
Request body
The filters object is shared by every search endpoint. The filter object explains each filter with examples.
filtersobject · FederalAccountTotalsFilterObject3 fieldsThis can filter by time period, object class, and/or program activity
time_periodstring{ "start_date": "2019-10-01", "end_date": "2020-09-30" }]`(optional, array[TimePeriod], fixed-type)
object_classarray of stringprogram_activityarray of stringEach string should be either PAC or PARK code
limitnumberThe number of results to include per page.
pagenumberThe page of results to return based on the limit.
Try it
Runs against the live API. Responses are real data.
/api/v2/federal_accounts/431-0500/program_activities/totalResponse · 200
resultsarray of FederalAccountTotalsRequired4 fieldsobligationsnumberRequiredcodestringRequirednamestringRequiredtypeenum (string)RequiredWhether the Program Activity values are from the older Program Activity Code / Name (PAC/PAN) or the Program Activity Reporting Key (PARK)
PAC/PANPARK
page_metadataobject · PageMetadataRequired7 fieldslimitnumberRequiredpagenumberRequirednextnumberRequiredNullablepreviousnumberRequiredNullablehasNextbooleanRequiredhasPreviousbooleanRequiredtotalnumberRequired
{
"results": [
{"obligations": 44112.0, "code": "00000000003", "name": "PARK 3", "type": "PARK"},
{"obligations": 6000.0, "code": "00000000001", "name": "PARK 1", "type": "PARK"},
{"obligations": 130.0, "code": "00000000002", "name": "PARK 2", "type": "PARK"},
{"obligations": 1.0, "code": "0001", "name": "PAC/PAN 1", "type": "PAC/PAN"},
],
"page_metadata": {
"page": 1,
"total": 4,
"limit": 10,
"next": None,
"previous": None,
"hasNext": False,
"hasPrevious": False
},
}Recent changes
- Mentioned in the September 10, 2025 release notes
- DEV-13016: Fix typo in api contract
- DEV-13016: Pr comment requests
- DEV-13016: Update endpoints.md and program_activities.md
- DEV-13055: Add object classes total
Generated from contracts/v2/federal_accounts/federal_account_totals/program_activities.md in the USAspending API repo.