USAspending API ReferenceIndependent
Try the API

States

GET/api/v2/references/states/

This endpoint returns U.S. states, districts, and territories found in the state_data table. The table contains multiple entries per state; this endpoint returns only the latest entry for each FIPS code.

Request

curl 'https://api.usaspending.gov/api/v2/references/states/'

Try it

Runs against the live API. Responses are real data.

GET/api/v2/references/states/

Response · 200

  • (body)object
Example response
{
    "results": [
      {
          "fips": "01"
          "code": "AL",
          "name": "ALABAMA"
        },{
          "fips": "02"
          "code": "AK",
          "name": "ALASKA"
        },{
          "fips": "11"
          "code": "DC",
          "name": "DISTRICT OF COLUMBIA"
        },{
          "fips": "72"
          "code": "PR",
          "name": "PUERTO RICO"
        }
      ]
}

Recent changes

Contract notes

  • The contract doesn't state its URL. This path comes from the contract's location in the repo, which mirrors the URL by convention, and matches how usaspending.gov calls it.

Generated from contracts/v2/references/states.md in the USAspending API repo.

Loading…