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.
| Field | Type | Meaning |
|---|---|---|
| status | string | matched or no_match. |
| matched_address | string or null | Address as the Geocoder matched it. |
| coordinates.latitude | number | Latitude, interpolated along the street segment. |
| coordinates.longitude | number | Longitude, interpolated along the street segment. |
| state.fips | string | State FIPS code, with name and postal code. |
| county.geoid | string | County GEOID (5 digits) and name. |
| tract.geoid | string | Census tract GEOID (11 digits), code and name. |
| block_group.geoid | string | Block group GEOID (12 digits). |
| block.geoid | string | Census block GEOID (15 digits). |
| congressional_district.code | string | Congressional district, with its name and Congress number. |
| place.name | string or null | Incorporated place or census designated place. |
| metro_area.name | string or null | Metropolitan or micropolitan statistical area. |
| zcta | string or null | ZIP Code Tabulation Area. |
Live example
The response below was returned by the API for this 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"}'| address | string · RequiredOne-line US street address with city and state, or ZIP code. |
|---|---|
| fresh | boolean · 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 pricingData source and freshness
Queried live from the source at request time. Results are cached for 30 days; send "fresh": true to query again.
- Census Geocoder, geographies by one-line address (Public_AR_Current benchmark)
License: U.S. Government work, public domain · Refresh: per request
Frequently asked questions
Where does the data come from?
Why did my address not match?
How precise are the coordinates?
Which geographies are used?
What does a lookup cost?
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