Disaster Spending By Geography
/api/v2/disaster/spending_by_geography/This endpoint provides geographical spending information from emergency/disaster funding based on recipient location.
Request
curl -X POST 'https://api.usaspending.gov/api/v2/disaster/spending_by_geography/' \
-H 'Content-Type: application/json' \
-d '{
"filter": {
"def_codes": [
"L",
"M",
"N",
"O",
"P",
"U"
]
},
"geo_layer": "state",
"geo_layer_filters": [
"NE",
"WY",
"CO",
"IA",
"IL",
"MI",
"IN",
"TX"
],
"scope": "recipient_location",
"spending_type": "obligation"
}'Request body
filterobject · FilterRequired2 fieldsdef_codesarray of DEFCRequiredReturn an award if one of the DEF Codes match the supplied filter since an Award can have multiple DEF Codes. If the
def_codesprovided are in the COVID-19 group, the query will only return results of transactions where theaction_dateis on or after2020-04-01.award_type_codesarray of AwardTypeCodesList of procurement and assistance award type codes supported by USAspending.gov
02030405060708091011ABCDIDV_AIDV_B_AIDV_B_BIDV_B_CIDV_BIDV_CIDV_DIDV_EF001F002F003F004F005F006F007F008F009F010
geo_layerenum (string)RequiredSet the type of shape codes in the response
statecountydistrict
geo_layer_filtersarray of stringAllows us to only request data for what is currently in view in the map
scopeenum (string)When fetching awards, use the primary place of performance or recipient location
place_of_performancerecipient_location
spending_typeenum (string)Requiredobligationoutlayface_value_of_loan
Try it
Runs against the live API. Responses are real data.
/api/v2/disaster/spending_by_geography/Response · 200
geo_layerenum (string)Requiredstatecountydistrict
scopeenum (string)RequiredWhen fetching transactions, use the primary place of performance or recipient location
place_of_performancerecipient_location
spending_typeenum (string)Requiredobligationoutlayface_value_of_loan
resultsarray of GeographyTypeResult6 fieldsamountnumberRequiredDollar obligated or outlayed amount (depending on the
spending_typerequested)display_namestringRequiredshape_codestringRequiredpopulationnumberRequiredNullableper_capitanumberRequiredNullableaward_countnumberRequired
{
"geo_layer": "state",
"scope": "recipient_location",
"spending_type": "obligation",
"results": [
{
"shape_code": "ND",
"amount": 4771026.93,
"display_name": "North Dakota",
"population": 762062,
"per_capita": 6.26,
"award_count": 185
},
{
"shape_code": "NV",
"amount": 26928552.59,
"display_name": "Nevada",
"population": 3080156,
"per_capita": 8.74,
"award_count": 124
},
{
"shape_code": "OH",
"amount": 187505278.16,
"display_name": "Ohio",
"population": 11689100,
"per_capita": 16.04,
"award_count": 134
}
]
}Recent changes
- DEV-15240: Update API contracts with new Assistance Type codes
- Mentioned in the September 08, 2020 release notes
- Mentioned in the August 07, 2020 release notes
Generated from contracts/v2/disaster/spending_by_geography.md in the USAspending API repo.