Count of DEF Codes Receiving Disaster/Emergency Funding
POST
/api/v2/disaster/def_code/count/This endpoint provides the count of DEFC which received disaster/emergency funding per the requested filters.
This endpoint returns a count of DEFC
Request
curl -X POST 'https://api.usaspending.gov/api/v2/disaster/def_code/count/' \
-H 'Content-Type: application/json' \
-d '{
"filter": {
"def_codes": [
"L",
"M",
"N"
]
}
}'Request body
filterobject · FilterRequired1 fielddef_codesarray of DEFCRequiredList of Disaster Emergency Fund (DEF) Codes (DEFC) defined by legislation at the time of writing. A list of current DEFC can be found here.
Try it
Runs against the live API. Responses are real data.
POST
/api/v2/disaster/def_code/count/Response · 200
countnumberRequired
{
"count": 5
}Recent changes
No contract changes to this endpoint since October 2024. The changelog covers every endpoint.
Generated from contracts/v2/disaster/def_code/count.md in the USAspending API repo.