FORMAT: 1A HOST: https://api.usaspending.gov
This endpoint provides geographical spending information from emergency/disaster funding based on recipient location.
-
Request (application/json)
-
Schema
{ "$schema": "http://json-schema.org/draft-04/schema#", "type": "string" }
-
Attributes (object)
filter
(required, Filter, fixed-type)geo_layer
(required, enum[string]) Set the type of shape codes in the response- Members
state
county
district
- Members
geo_layer_filters
(optional, array[string]) Allows us to only request data for what is currently in view in the mapscope
(optional, enum[string]) When fetching awards, use the primary place of performance or recipient location- Default:
recipient_location
- Members
place_of_performance
recipient_location
- Default:
spending_type
(required, enum[string])- Members
obligation
outlay
face_value_of_loan
- Members
-
Body
{ "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" }
-
-
Response 200 (application/json)
-
Attributes (object)
geo_layer
(required, enum[string], fixed-type)- Members
state
county
district
- Members
scope
(required, enum[string]) When fetching transactions, use the primary place of performance or recipient location- Members
place_of_performance
recipient_location
- Members
spending_type
(required, enum[string])- Members
obligation
outlay
face_value_of_loan
- Members
results
(array[GeographyTypeResult], fixed-type)
-
Body
{ "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 } ] }
-
def_codes
(required, array[DEFC], fixed-type) Return an award if one of the DEF Codes match the supplied filter since an Award can have multiple DEF Codes. If thedef_codes
provided are in the COVID-19 group, the query will only return results of transactions where theaction_date
is on or after2020-04-01
.award_type_codes
(optional, array[AwardTypeCodes], fixed-type)
amount
(required, number) Dollar obligated or outlayed amount (depending on thespending_type
requested)display_name
(required, string)shape_code
(required, string)population
(required, number, nullable)per_capita
(required, number, nullable)award_count
(required, number)
List of Disaster Emergency Fund (DEF) Codes (DEFC) defined by legislation at the time of writing. A list of current DEFC can be found here.
List of procurement and assistance award type codes supported by USAspending.gov
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