# US Address Geocoding (Batch) with Census Tract & FIPS (`singgendarhan/us-address-geocoding-census`) Actor

Batch geocode US addresses to latitude and longitude with census tract, block group and block GEOIDs, state and county FIPS, county name, place, urban/rural, and congressional and state legislative districts, via the U.S. Census Bureau Geocoder. $0.10 per 1,000 matches; no match, no charge.

- **URL**: https://apify.com/singgendarhan/us-address-geocoding-census.md
- **Developed by:** [Starry Night](https://apify.com/singgendarhan) (community)
- **Categories:** Developer tools, Real estate, Integrations
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.10 / 1,000 matched addresses

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## US Address Geocoding (Batch) with Census Tract & FIPS

**US address geocoding in batches**: turn street addresses into latitude and longitude plus the census tract, block group, block GEOID, state and county FIPS codes, county name, Census place, urban or rural status, and congressional and state legislative districts. The data comes from the U.S. Census Bureau's public geocoder, which takes up to 10,000 addresses per request. You pay **$0.10 per 1,000 matched addresses**, and addresses that do not match are free.

Built for real-estate, insurance and market analysts who join addresses to Census and ACS tables, and for anyone geocoding leads or property lists in Make, Zapier, n8n or an AI agent.

### What you get for each address

| Field | Example | Notes |
|---|---|---|
| `latitude`, `longitude` | 38.84505589808, -76.92836638093 | WGS84, interpolated along the street segment |
| `matchedAddress`, `matchType` | 4600 SILVER HILL RD, WASHINGTON, DC, 20233 · Exact | Standardized address; Exact or Non_Exact |
| `stateCode`, `stateFips` | MD · 24 | |
| `countyName`, `countyFips`, `countyGeoid` | Prince George's County · 033 · 24033 | |
| `tractCode`, `tractGeoid` | 802405 · 24033802405 | 11-digit GEOID joins to ACS tract tables |
| `blockGroup`, `blockGroupGeoid` | 2 · 240338024052 | 12-digit GEOID joins to block-group tables |
| `blockCode`, `blockGeoid` | 2004 · 240338024052004 | 15-digit 2020 census block |
| `placeName`, `placeGeoid`, `placeType` | Suitland CDP · 2475725 · Census designated place | City, town, village or CDP |
| `countySubdivisionName`, `countySubdivisionGeoid` | District 6, Spauldings · 2403390524 | Town, township or census county division |
| `urbanRural`, `urbanAreaName` | Urban · Washington--Arlington, DC--VA--MD Urban Area | Census urban areas |
| `congressionalDistrictName`, `congressionalDistrictGeoid`, `congress` | Congressional District 4 · 2404 · 120 | |
| `stateSenateDistrictName`, `stateHouseDistrictName` | State Senate District 24 · State Legislative District 24 | Plus their GEOIDs |
| `tigerLineId`, `side` | 657091557 · L | Matched TIGER/Line street segment |
| `inputId`, `inputAddress`, `matched`, `matchStatus`, `note` | 1 · ... · true · Match | Your id is kept; `note` explains rows that did not match |
| `benchmark`, `vintage`, `source`, `attribution`, `retrievedAt` | Public_AR_Current · Current_Current · ... · 2026-11-08T22:45:10Z | Provenance: which Census data answered, and when |

Every input address gets exactly one row, in input order, so the output lines up with your spreadsheet. The dataset has three table views: **Overview**, **Census codes** and **Places and districts**. Export as CSV, Excel, JSON or XML, or read it through the API.

### How to use it

1. **Paste addresses**, one per line, like `1600 Pennsylvania Ave NW, Washington, DC 20500`. Use the house number and street plus the city and state, or the ZIP code.
2. Or send **Records** with your own IDs (JSON), or **upload a CSV** with an `address` column or with `street`, `city`, `state` and `zip` columns, and an optional `id` column. Common header names such as `Street Address`, `ZIP Code` or `postal_code` are recognized. A `.txt` file with one address per line works too.
3. Click **Start**. The results are saved after every batch.

#### Input example

```json
{
  "addresses": [
    "4600 Silver Hill Rd, Washington, DC 20233",
    "1600 Pennsylvania Ave NW, Washington, DC 20500"
  ],
  "includeGeographies": true
}
```

Options:

- `includeGeographies` (default on): FIPS, county, tract, block group and block. Turn it off for coordinates only.
- `includePlaceAndDistricts` (default on): place, county subdivision, urban or rural status, and congressional and state legislative districts. This adds one Census lookup per matched location.
- `vintage`: `Current_Current` (default), `Census2020_Current`, `ACS2025_Current`, `ACS2024_Current`, `ACS2023_Current` or `Census2010_Current`. Pick the one that matches the data you will join to.
- `batchSize` (advanced): addresses per Census batch request, from 1 to 10,000 (default 1,000).

#### Real output (first row of the example above)

```json
{
  "inputId": "1",
  "inputAddress": "4600 Silver Hill Rd, Washington, DC 20233",
  "matched": true,
  "matchStatus": "Match",
  "matchType": "Exact",
  "matchedAddress": "4600 SILVER HILL RD, WASHINGTON, DC, 20233",
  "latitude": 38.84505589808,
  "longitude": -76.92836638093,
  "stateCode": "MD",
  "stateFips": "24",
  "countyName": "Prince George's County",
  "countyFips": "033",
  "countyGeoid": "24033",
  "tractCode": "802405",
  "tractGeoid": "24033802405",
  "blockGroup": "2",
  "blockGroupGeoid": "240338024052",
  "blockCode": "2004",
  "blockGeoid": "240338024052004",
  "placeName": "Suitland CDP",
  "placeGeoid": "2475725",
  "placeType": "Census designated place",
  "countySubdivisionName": "District 6, Spauldings",
  "countySubdivisionGeoid": "2403390524",
  "urbanRural": "Urban",
  "urbanAreaName": "Washington--Arlington, DC--VA--MD Urban Area",
  "urbanAreaGeoid": "92242",
  "congressionalDistrictName": "Congressional District 4",
  "congressionalDistrictGeoid": "2404",
  "congress": 120,
  "stateSenateDistrictName": "State Senate District 24",
  "stateSenateDistrictGeoid": "24024",
  "stateHouseDistrictName": "State Legislative District 24",
  "stateHouseDistrictGeoid": "24024",
  "tigerLineId": "657091557",
  "side": "L",
  "benchmark": "Public_AR_Current",
  "vintage": "Current_Current",
  "source": "U.S. Census Bureau Geocoder (geocoding.geo.census.gov)",
  "attribution": "This product uses the Census Bureau Data API but is not endorsed or certified by the Census Bureau.",
  "note": null
}
```

The Census Bureau's own building has a Washington, DC mailing address but sits in Suitland, Maryland, and the codes show that.

### Pricing

Pay per event. Compute is included, so there is no separate platform usage charge.

| What | Price |
|---|---|
| Matched address (saved to the dataset) | **$0.0001** = $0.10 per 1,000 |
| Run start (once per run) | $0.00005 |
| Unmatched, tied, invalid or failed address | **free** (no per-address charge) |

Examples: 1,000 matched addresses cost $0.10, 10,000 cost $1.00 and 50,000 cost $5.00. A one-address run from Zapier or Make costs $0.00015. Set a maximum cost per run in Apify and the Actor stops cleanly when it reaches it; you are only charged for rows already saved.

### Speed and limits

- **Speed**, measured on real addresses on 2026-11-08: 1,000 addresses in about 15 seconds with places and districts off, and about 1 to 1.5 minutes per 1,000 with them on. Census response times vary during the day. Requests are paced politely (one batch at a time, at most 4 place lookups in parallel) and retried with backoff if the service is busy.
- **Coverage**: the 50 states, DC and Puerto Rico. No other countries.
- **Match rate**: 88% (883 of 1,000) on a random sample of US bank-branch addresses from the FDIC's public branch list, tested 2026-11-08. Your rate depends on how clean your addresses are; clean street addresses match best. PO boxes, rural routes, building names without a street number, very new streets and some Puerto Rico addresses often do not match. Google-based geocoders match more messy addresses, but they rely on Google's service and return no census codes.
- **Precision**: coordinates are interpolated along the matched street segment from Census address ranges. They are not rooftop or parcel points, which is usually fine for assigning a tract or block.
- **Size**: up to 50,000 addresses per run; split bigger lists into several runs. The Actor sends them to the Census in batch requests of up to 10,000 (1,000 by default). The default run timeout is 2 hours, enough for 50,000 addresses with places and districts on.

### FAQ

**Is this legal?** The Actor uses a public U.S. government service: the Census Bureau publishes its geocoder for developers and the general public, including a documented batch mode ([geocoder documentation](https://geocoding.geo.census.gov/geocoder/Geocoding_Services_API.html)). No login, API key, CAPTCHA or proxy is involved, the Actor sends only the addresses you give it, and it returns geographic codes for them. You are responsible for having the right to process the addresses you upload. As the [Census Bureau API terms](https://www.census.gov/data/developers/about/terms-of-service.html) require: *This product uses the Census Bureau Data API but is not endorsed or certified by the Census Bureau.* Starry Night is not affiliated with the Census Bureau.

**Why did an address not match, or come back as a Tie?** The Census matches against its TIGER address ranges. No_Match means no range fits, so check the house number, street name and ZIP code. Tie means several ranges fit equally well; adding the city and ZIP code usually fixes it. Neither is charged.

**Which vintage should I pick?** Use **Current** for the Census Bureau's current geocoding vintage. Use **Census 2020** to join with 2020 Census tables, an **ACS** year to join with that year's American Community Survey tables, and **Census 2010** for 2010-based data. ACS vintages return tract codes but no block codes.

**Connecticut:** under **Current** and **Census 2020**, the Census batch geocoder still codes Connecticut addresses to the 8 old counties and their tracts (for example Hartford County 09003, tract 09003502100), because those vintages use 2020 census blocks. The Census Bureau's current map layers use the 9 planning regions that replaced the counties in 2022 (for example Capitol Planning Region 09110, tract 09110502100), and `countySubdivisionGeoid` from the place lookup already uses the planning region. To join Connecticut rows with ACS tables from 2022 on, pick an **ACS** vintage, which uses the planning regions.

**What if the platform restarts my run?** Rows are saved in input order after every batch. If Apify restarts a long run (for example when it moves the run to another server), the Actor continues after the last saved row, so no address is saved or charged twice.

**Do you store my addresses?** Addresses go to the Census Geocoder to be matched, and the results, including your input address, are saved only in your own Apify dataset. Starry Night does not keep a separate copy, and the run log shows counts, not addresses.

**Can I call it from code, Make, Zapier or n8n?** Yes. Use the Apify API, or the Apify apps for Make, Zapier and n8n. For a quick synchronous call:

```bash
curl -X POST "https://api.apify.com/v2/acts/singgendarhan~us-address-geocoding-census/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"addresses": ["1600 Pennsylvania Ave NW, Washington, DC 20500"]}'
```

**Can an AI agent use it?** Yes. Add the Actor to the Apify MCP server (`https://mcp.apify.com`) as `singgendarhan/us-address-geocoding-census`. Each input field and output field has a description the agent can read.

**My uploaded file could not be read. What now?** The Actor first reads the file link as is, then with the run's own Apify token. If your account keeps storage private and both fail, the run stops with a clear message before anything is charged. Open the key-value store that holds the file in Apify Console and allow anyone with the link to read it, use any public link (for example a Google Sheets "Publish to web" CSV link), or paste the addresses into the Addresses field.

**What about reverse geocoding (coordinates to address)?** Not in this Actor yet. Tell us in the Issues tab if you need it.

### Support

Open an issue on the Actor's **Issues** tab. Starry Night answers there.

### Changelog

- **1.0** (2026-11-08): first release. Census batch geocoding of up to 10,000 addresses per request, census tract, block group and block GEOIDs, county names, place, county subdivision, urban or rural status, congressional and state legislative districts, six boundary vintages, CSV upload, and billing for matched addresses only.

# Changelog

This Actor's version history is a separate document: https://apify.com/singgendarhan/us-address-geocoding-census/changelog.md

# Actor input Schema

## `addresses` (type: `array`):

US street addresses, one per line, for example "1600 Pennsylvania Ave NW, Washington, DC 20500". Include the house number and street plus the city and state or the ZIP code. Puerto Rico addresses work too. Each row of the output gets inputId = its line number (1, 2, 3...). To keep your own IDs, use Records or an uploaded file instead.

## `records` (type: `array`):

Optional. A JSON array of objects, each with an optional id and either one full address or separate street, city, state and zip fields. Examples: \[{"id": "A-17", "address": "350 5th Ave, New York, NY 10118"}] or \[{"id": "A-18", "street": "233 S Wacker Dr", "city": "Chicago", "state": "IL", "zip": "60606"}]. Your id is returned as inputId. Common column names such as zipcode, postal_code or street_address are recognized.

## `addressFile` (type: `string`):

Optional. Upload a file or paste a public link to one. CSV, TSV or semicolon files need a header row with either an address column, or street, city, state and zip columns; an id column is optional and is returned as inputId. A .txt file can simply list one address per line. Excel users: save as CSV first. Up to 50,000 addresses per run.

## `includeGeographies` (type: `boolean`):

On (default): adds state and county FIPS codes, county name, census tract, block group and block codes and their GEOIDs. Off: coordinates and the matched address only.

## `includePlaceAndDistricts` (type: `boolean`):

On (default): adds the Census place (city, town, village or census designated place), county subdivision, urban or rural flag and urban area, congressional district, and state senate and house districts. This needs one extra Census lookup per matched location, so allow about 1 to 1.5 minutes per 1,000 addresses. Turn it off for the fastest runs (about 15 seconds per 1,000 addresses). Needs census geographies on.

## `vintage` (type: `string`):

Which Census boundaries the codes come from. Current (default) is the Census Bureau's current geocoding vintage; for Connecticut it still uses the 8 old counties, like Census 2020. Census 2020 matches 2020 Census tables. The ACS options match American Community Survey tables for that year (they return tract codes but no block codes, and use the Connecticut planning regions). Census 2010 matches 2010-based data.

## `batchSize` (type: `integer`):

How many addresses go to the Census batch endpoint in one request (the Census maximum is 10,000). The default of 1,000 gives steady progress and quick retries; results are saved after every batch.

## Actor input object example

```json
{
  "addresses": [
    "4600 Silver Hill Rd, Washington, DC 20233",
    "1600 Pennsylvania Ave NW, Washington, DC 20500"
  ],
  "includeGeographies": true,
  "includePlaceAndDistricts": true,
  "vintage": "Current_Current",
  "batchSize": 1000
}
```

# Actor output Schema

## `results` (type: `string`):

All rows of the default dataset as JSON. Add ?format=csv or ?format=xlsx to the link for spreadsheets.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "addresses": [
        "4600 Silver Hill Rd, Washington, DC 20233",
        "1600 Pennsylvania Ave NW, Washington, DC 20500"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("singgendarhan/us-address-geocoding-census").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "addresses": [
        "4600 Silver Hill Rd, Washington, DC 20233",
        "1600 Pennsylvania Ave NW, Washington, DC 20500",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("singgendarhan/us-address-geocoding-census").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "addresses": [
    "4600 Silver Hill Rd, Washington, DC 20233",
    "1600 Pennsylvania Ave NW, Washington, DC 20500"
  ]
}' |
apify call singgendarhan/us-address-geocoding-census --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,singgendarhan/us-address-geocoding-census"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/rCYT1Crf86TQJ8d8M/builds/9R6aWoLBXTNmIbM9B/openapi.json
