State Overview
/api/v2/recipient/state/{fips}/These endpoints are used to power USAspending.gov's state profile pages. This data can be used to visualize the government spending that occurs in a specific state or territory.
This endpoint returns a high-level overview of a specific state or territory, given its USAspending.gov id.
Request
curl 'https://api.usaspending.gov/api/v2/recipient/state/51/'Path parameters
fipsstringRequiredThe FIPS code for the state you want to view. You must include leading zeros.
Query parameters
yearstringThe fiscal year you would like data for. Use
allto view all time orlatestto view the latest 12 months.
Try it
Runs against the live API. Responses are real data.
/api/v2/recipient/state/51/?year=2017Response · 200
namestringRequiredcodestringRequiredfipsstringRequiredtypestringRequiredA string representing the type of area. Possible values are
state,district,territory.populationnumberRequiredpop_yearnumberRequiredThe year the population is based on.
median_household_incomenumberRequiredmhi_yearnumberRequiredThe year the median household income is based on.
total_prime_amountnumberRequiredtotal_prime_awardsnumberRequiredtotal_face_value_loan_amountnumberRequiredtotal_face_value_loan_prime_awardsnumberRequiredaward_amount_per_capitanumberRequiredtotal_outlaysnumberRequired
{
"name": "Virginia",
"code": "VA",
"fips": "51",
"type": "state",
"population": 8414380,
"pop_year": 2017,
"median_household_income": 68114,
"mhi_year": 2017,
"total_prime_amount": 300200000000,
"total_prime_awards": 327721,
"total_face_value_loan_amount": 88888,
"total_face_value_loan_prime_awards": 10,
"award_amount_per_capita": 916023.08,
"total_outlays": 16657372472.78
}Recent changes
Generated from contracts/v2/recipient/state/fips.md in the USAspending API repo.