Skip to content

Enrich

Geocode a US address to its census geographies

Send a one-line US street address. The API geocodes it with the Census Geocoder of the US Census Bureau and returns the address as matched, coordinates interpolated along the street segment, and every geography it falls in: state, county, county subdivision, place, census tract, block group and block with their GEOIDs, congressional district, state legislative districts, metro area, ZCTA and school district.

What one lookup returns

The fields this product reads from the response. The full schema is in the API reference.

FieldTypeMeaning
statusstringmatched or no_match.
matched_addressstring or nullAddress as the Geocoder matched it.
coordinates.latitudenumberLatitude, interpolated along the street segment.
coordinates.longitudenumberLongitude, interpolated along the street segment.
state.fipsstringState FIPS code, with name and postal code.
county.geoidstringCounty GEOID (5 digits) and name.
tract.geoidstringCensus tract GEOID (11 digits), code and name.
block_group.geoidstringBlock group GEOID (12 digits).
block.geoidstringCensus block GEOID (15 digits).
congressional_district.codestringCongressional district, with its name and Congress number.
place.namestring or nullIncorporated place or census designated place.
metro_area.namestring or nullMetropolitan or micropolitan statistical area.
zctastring or nullZIP Code Tabulation Area.

Live example

The response below was returned by the API for this request.

Request
curl https://api.qelka.com/v1/census/tract \
  -H "Authorization: Bearer sk_test_your_key" \
  -H "Content-Type: application/json" \
  -d '{"address":"1600 Pennsylvania Ave NW, Washington, DC 20500"}'
Request fields
addressstring · RequiredOne-line US street address with city and state, or ZIP code.
freshboolean · Default falsetrue skips the result cache and runs the lookup again.

Response

{
  "id": "lkp_01M8CEFKXRYJS1HJSEGWVBDAVK",
  "object": "census_tract",
  "input": "1600 Pennsylvania Ave NW, Washington, DC 20500",
  "status": "matched",
  "matched_address": "1600 PENNSYLVANIA AVE NW, WASHINGTON, DC, 20500",
  "coordinates": {
    "latitude": 38.898702605245,
    "longitude": -77.035189204737
  },
  "tiger_line": {
    "id": "76225813",
    "side": "L"
  },
  "state": {
    "fips": "11",
    "code": "DC",
    "name": "District of Columbia"
  },
  "county": {
    "geoid": "11001",
    "name": "District of Columbia"
  },
  "county_subdivision": {
    "geoid": "1100150000",
    "name": "Washington city"
  },
  "place": {
    "geoid": "1150000",
    "name": "Washington city"
  },
  "tract": {
    "geoid": "11001980000",
    "code": "980000",
    "name": "Census Tract 9800"
  },
  "block_group": {
    "geoid": "110019800001",
    "code": "1"
  },
  "block": {
    "geoid": "110019800001034",
    "code": "1034"
  },
  "congressional_district": {
    "geoid": "1198",
    "code": "98",
    "name": "Delegate District (at Large)",
    "congress": 120
  },
  "state_legislative_upper": {
    "geoid": "11002",
    "name": "Ward 2"
  },
  "state_legislative_lower": null,
  "metro_area": {
    "geoid": "47900",
    "name": "Washington-Arlington-Alexandria, DC-VA-MD-WV Metro Area"
  },
  "zcta": "20006",
  "school_district": {
    "geoid": "1100030",
    "name": "District of Columbia Public Schools"
  },
  "credits_used": 1,
  "cached": false
}

Use cases

Join census statistics

Attach tract and block group GEOIDs to customer addresses to join demographic tables.

Report lending by tract

HMDA and CRA reports ask for the census tract of each property.

Route to representatives

Find the congressional and state legislative districts of a constituent.

Place addresses on a map

Get latitude and longitude for US street addresses without a commercial geocoder.

Price

1 credit per lookup, from the same balance as every other product.

Starter
$2.90 per 1,000 lookups
Growth
$1.98 per 1,000 lookups
Scale
$1.50 per 1,000 lookups
Business
$1.07 per 1,000 lookups

The free plan includes 100 credits every month. Errors, upstream failures and test keys are never billed.

See pricing

Data source and freshness

Queried live from the source at request time. Results are cached for 30 days; send "fresh": true to query again.

Data sources

Frequently asked questions

Where does the data come from?
From the Census Geocoder of the US Census Bureau, which matches addresses against the address ranges of the TIGER/Line street network. Census data is in the public domain.
Why did my address not match?
The Geocoder matches street addresses within known address ranges. PO boxes, rural routes, new streets and misspelled names often return no match, which is not billed.
How precise are the coordinates?
They are interpolated along the street segment from its address range, not measured on the building, so they can sit some distance from the door along the street.
Which geographies are used?
The geographies the Census Geocoder publishes as current. The response names the Congress of the congressional district it returns.
What does a lookup cost?
1 credit when the address matches. Results are cached for 30 days.

Put this check in your product

Get an API key in under a minute. 100 free credits every month, no card required.

  • 100 free credits a month
  • No card
  • Test keys spend nothing
  • Cancel any time