List Program Activities
/api/v2/agency/{toptier_code}/program_activity/Returns a list of Program Activity in the Agency's appropriations for a single fiscal year
Request
curl 'https://api.usaspending.gov/api/v2/agency/086/program_activity/'Path parameters
toptier_codestringRequiredThe toptier code of an agency (could be a CGAC or FREC) so only numeric character strings of length 3-4 are accepted.
Query parameters
fiscal_yearstringThe desired appropriations fiscal year. Defaults to the current FY.
filterstringThis will filter the Program Activity by their name to those matching the text.
orderenum (string)Indicates what direction results should be sorted by. Valid options include asc for ascending order or desc for descending order.
descasc
sortenum (string)Optional parameter indicating what value results should be sorted by.
nameobligated_amountgross_outlay_amount
pagestringThe page number that is currently returned.
limitstringHow many results are returned.
Try it
Runs against the live API. Responses are real data.
/api/v2/agency/086/program_activity/Response · 200
toptier_codestringRequiredfiscal_yearnumberRequiredpage_metadataobject · PageMetadataRequired7 fieldsInformation used for pagination of results.
limitnumberRequiredpagenumberRequirednextnumberRequiredNullablepreviousnumberRequiredNullablehasNextbooleanRequiredhasPreviousbooleanRequiredtotalnumberRequired
totalsobject · TotalsRequired2 fieldsobligated_amountnumberRequiredgross_outlay_amountnumberRequired
resultsarray of ProgramActivityRequired3 fieldsnamestringRequiredobligated_amountnumberRequiredgross_outlay_amountnumberRequired
messagesarray of stringRequiredAn array of warnings or instructional directives to aid consumers of this endpoint with development and debugging.
{
"toptier_code": "086",
"fiscal_year": 2018,
"page_metadata": {
"limit": 2,
"page": 1,
"next": 2,
"previous": null,
"hasNext": true,
"hasPrevious": false,
"count": 10
},
"totals": {
"obligated_amount": 36964.8,
"gross_outlay_amount": -397853.1,
},
"results": [
{
"name": "TI INFORMATION TECHNOLOGY",
"obligated_amount": 18482.4,
"gross_outlay_amount": -236601.1
},
{
"name": "CONTRACT RENEWALS",
"obligated_amount": 18482.4,
"gross_outlay_amount": -161252.0
}
],
"messages": []
}Recent changes
No contract changes to this endpoint since October 2024. The changelog covers every endpoint.
Generated from contracts/v2/agency/toptier_code/program_activity.md in the USAspending API repo.