USAspending API ReferenceIndependent
Try the API

Treasury Account's Program Activities

GET/api/v2/agency/treasury_account/{tas}/program_activity/

Returns a list of Program Activities for the specified Treasury Account Symbol (tas).

Request

curl 'https://api.usaspending.gov/api/v2/agency/treasury_account/001-X-0000-000/program_activity/'

Path parameters

  • tasstringRequired

    The treasury account symbol (tas) of a treasury account. This endpoint supports TAS codes with 0 or 1 slashes in the code.

    Example 001-X-0000-000

Query parameters

  • fiscal_yearstring

    The desired appropriations fiscal year. Defaults to the current FY.

  • filterstring

    This will filter the Object Classes 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.

    Allowed values
    • desc
    • asc

    Default desc

  • sortenum (string)

    Optional parameter indicating what value results should be sorted by.

    Allowed values
    • name
    • obligated_amount
    • gross_outlay_amount
    • type

    Default obligated_amount

  • pagestring

    The page number that is currently returned.

    Default 1

  • limitstring

    How many results are returned.

    Default 10

Try it

Runs against the live API. Responses are real data.

GET/api/v2/agency/treasury_account/001-X-0000-000/program_activity/

Response · 200

  • treasury_account_symbolstringRequired
  • fiscal_yearnumberRequired
  • page_metadataobject · PageMetadataRequired7 fields

    Information used for pagination of results.

    • limitnumberRequired
    • pagenumberRequired
    • nextnumberRequiredNullable
    • previousnumberRequiredNullable
    • hasNextbooleanRequired
    • hasPreviousbooleanRequired
    • totalnumberRequired
  • resultsarray of ProgramActivityRequired5 fields
    • namestringRequired
    • obligated_amountnumberRequired
    • gross_outlay_amountnumberRequired
    • typeenum (string)Required

      Indicates whether the values come from the Program Activity Reporting Key (PARK) or Program Activity Code/Name (PAC/PAN)

      Allowed values
      • PAC/PAN
      • PARK

      Default PARK

    • childrenarray of ObjectClassRequired3 fields
      • namestringRequired
      • obligated_amountnumberRequired
      • gross_outlay_amountnumberRequired
  • messagesarray of stringRequired

    An array of warnings or instructional directives to aid consumers of this endpoint with development and debugging.

Example response
{
    "treasury_account_symbol": "001-X-0000-000",
    "fiscal_year": 2020,
    "page_metadata": {
        "hasNext": False,
        "hasPrevious": False,
        "limit": 10,
        "next": None,
        "page": 1,
        "previous": None,
        "total": 2,
    },
    "results": [
        {
            "name": "EMPLOYEE RETENTION CREDIT",
            "obligated_amount": 150.0,
            "gross_outlay_amount": 100.26
            "children": [
                {
                    "name": "Tenant-Based Rental Assistance, Public and Indian Housing, Housing and Urban Development",
                    "obligated_amount": 350.0,
                    "gross_outlay_amount": 200.36
                }
            ]
        },
        {
            "name": "BASIC HEALTH PROGRAM",
            "obligated_amount": 200.0,
            "gross_outlay_amount": 100.10
            "children": [
                {
                    "name": "Tenant-Based Rental Assistance, Public and Indian Housing, Housing and Urban Development",
                    "obligated_amount": 350.0,
                    "gross_outlay_amount": 200.36
                }
            ]
        }
    ],
    "messages": []
}

Recent changes

Generated from contracts/v2/agency/treasury_account/tas/program_activity.md in the USAspending API repo.

Loading…