USAspending API ReferenceIndependent
Try the API

Agency Reporting Discrepancies

GET/api/v2/reporting/agencies/{toptier_code}/discrepancies/

This endpoint is used to power USAspending.gov's About the Data | Agencies TAS discrepencies over a submission period

This endpoint returns an overview of government agency TAS discrepancies data.

Request

curl 'https://api.usaspending.gov/api/v2/reporting/agencies/020/discrepancies/?fiscal_year=2020&fiscal_period=10'

Path parameters

  • toptier_codestringRequired

    The specific agency's toptier code.

    Example 020

Query parameters

  • fiscal_yearstringRequired

    The fiscal year (2017 or later).

    Example 2020

  • fiscal_periodstringRequired

    The fiscal period. Valid values: 2-12 (2 = November ... 12 = September) For retrieving quarterly data, provide the period which equals 'quarter * 3' (e.g. Q2 = P6)

    Example 10

  • pagestring

    The page of results to return based on the limit.

    Default 1

  • limitstring

    The number of results to include per page.

    Default 10

  • orderenum (string)

    The direction (asc or desc) that the sort field will be sorted in.

    Allowed values
    • asc
    • desc

    Default desc

  • sortenum (string)

    A data field that will be used to sort the response array.

    Allowed values
    • amount
    • tas

    Default amount

Try it

Runs against the live API. Responses are real data.

GET/api/v2/reporting/agencies/020/discrepancies/?fiscal_year=2020&fiscal_period=10

Response · 200

  • page_metadataobject · PaginationMetadataRequired7 fields
    • pagenumberRequired
    • nextnumberRequiredNullable
    • previousnumberRequiredNullable
    • hasNextbooleanRequired
    • hasPreviousbooleanRequired
    • totalnumberRequired
    • limitnumberRequired
  • resultsarray of TASDiscrepanciesRequired2 fields
    • tasstringRequired
    • amountnumberRequired
Example response
{
  "page_metadata": {
    "page": 1,
    "next": 2,
    "previous": 0,
    "hasNext": false,
    "hasPrevious": false,
    "total": 2,
    "limit": 10
  },
  "results": [
    {
      "tas": "210-1503",
      "amount": 234543543
    },
    {
      "tas": "012-0212",
      "amount": 43637623
    }
  ]
}

Recent changes

Generated from contracts/v2/reporting/agencies/toptier_code/discrepancies.md in the USAspending API repo.

Loading…