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.
This endpoint returns a count of Agencies
Request
curl -X POST 'https://api.usaspending.gov/api/v2/disaster/agency/count/' \
-H 'Content-Type: application/json' \
-d '{
"filter": {
"def_codes": [
"L",
"M",
"N"
]
}
}'Request body
filterobject · FilterRequired2 fieldsdef_codesarray of DEFCRequiredList of Disaster Emergency Fund (DEF) Codes (DEFC) defined by legislation at the time of writing. When filtering on
award_type_codesthis 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.award_type_codesarray of AwardTypeCodesIf 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).
02030405060708091011ABCDIDV_AIDV_B_AIDV_B_BIDV_B_CIDV_BIDV_CIDV_DIDV_EF001F002F003F004F005F006F007F008F009F010
Try it
Runs against the live API. Responses are real data.
/api/v2/disaster/agency/count/Response · 200
countnumberRequired
{
"count": 5
}Recent changes
- DEV-15240: Update API contracts with new Assistance Type codes
- Mentioned in the August 24, 2020 release notes
Generated from contracts/v2/disaster/agency/count.md in the USAspending API repo.