Agency Reporting Differences
/api/v2/reporting/agencies/{toptier_code}/differences/This endpoint is used to power USAspending.gov's About the Data | Agencies reported balance and spending differences over a submission period
This endpoint returns an overview of government agency obligation differences data.
Request
curl 'https://api.usaspending.gov/api/v2/reporting/agencies/020/differences/?fiscal_year=2020&fiscal_period=10'Path parameters
toptier_codestringRequiredThe specific agency code.
Query parameters
fiscal_yearstringRequiredThe fiscal year.
fiscal_periodstringRequiredThe fiscal period. Valid values: 2-12 (2 = November ... 12 = September) For retriving quarterly data, provide the period which equals 'quarter * 3' (e.g. Q2 = P6)
pagestringThe page of results to return based on the limit.
limitstringThe number of results to include per page.
orderenum (string)The direction (
ascordesc) that thesortfield will be sorted in.ascdesc
sortenum (string)A data field that will be used to sort the response array.
differencefile_a_obligationfile_b_obligationtas
Try it
Runs against the live API. Responses are real data.
/api/v2/reporting/agencies/020/differences/?fiscal_year=2020&fiscal_period=10Response · 200
page_metadataobject · PaginationMetadataRequired7 fieldspagenumberRequirednextnumberRequiredNullablepreviousnumberRequiredNullablehasNextbooleanRequiredhasPreviousbooleanRequiredtotalnumberRequiredlimitnumberRequired
resultsarray of ObligationDifferencesRequired4 fieldstasstringRequiredfile_a_obligationnumberRequiredfile_b_obligationnumberRequireddifferencenumberRequired
messagesarray of stringRequiredAn array of warnings or instructional directives to aid consumers of this endpoint with development and debugging.
{
"page_metadata": {
"page": 1,
"total": 10,
"limit": 2,
"next": 2,
"previous": null,
"hasNext": true,
"hasPrevious": false
},
"results": [
{
"tas": "011-X-8345-000",
"file_a_obligation": 47425.37,
"file_b_obligation": 240066.32,
"difference": -192640.95
},
{
"tas": "011-X-8245-000",
"file_a_obligation": 428508.11,
"file_b_obligation": 2358478.83,
"difference": -1929970.72
}
],
"messages": []
}Recent changes
Generated from contracts/v2/reporting/agencies/toptier_code/differences.md in the USAspending API repo.