Skip to content

Latest commit

 

History

History
81 lines (63 loc) · 2.16 KB

File metadata and controls

81 lines (63 loc) · 2.16 KB

FORMAT: 1A HOST: https://api.usaspending.gov

Count of Agencies Receiving Disaster/Emergency Funding [/api/v2/disaster/agency/count/]

This endpoint provides the count of Agencies which received disaster/emergency funding per the requested filters.

POST

This endpoint returns a count of Agencies

  • Request (application/json)

    • Schema

        {
            "$schema": "http://json-schema.org/draft-04/schema#",
            "type": "object"
        }
      
    • Attributes

      • filter (required, Filter, fixed-type)
    • Body

        {
            "filter": {
                "def_codes": ["L", "M", "N"]
            }
        }
      
  • Response 200 (application/json)

    • Attributes (object)

      • count (required, number)
    • Body

        {
            "count": 5
        }
      

Data Structures

Filter (object)

  • def_codes (required, array[DEFC], fixed-type)

  • award_type_codes (optional, array[AwardTypeCodes], fixed-type)

    If this parameter provided, count will be calculated form the distinct set of toptier agencies, whose subtier agencies funded awards linked to FinancialAccountsByAwards records (which are derived from DABS File C) related to the provided DEF codes.

    If this parameter is not provided count will be calculated from the distinct set of toptier agencies "owning" appropriations accounts used in funding this disaster (from FinancialAccountsByProgramActivityObjectClass records, which are derived from DABS File B).

DEFC (enum[string])

List of Disaster Emergency Fund (DEF) Codes (DEFC) defined by legislation at the time of writing. When filtering on award_type_codes this will filter on File D records that have at least one File C with the provided DEFC and belong to CARES Act DEFC. A list of current DEFC can be found here.

AwardTypeCodes (enum[string])

List of procurement and assistance award type codes supported by USAspending.gov

Members

  • 02
  • 03
  • 04
  • 05
  • 06
  • 07
  • 08
  • 09
  • 10
  • 11
  • A
  • B
  • C
  • D
  • IDV_A
  • IDV_B_A
  • IDV_B_B
  • IDV_B_C
  • IDV_B
  • IDV_C
  • IDV_D
  • IDV_E