[Integrations](https://spiral.ai/integrations) › [n8n](https://spiral.ai/integrations/n8n) › [Census geography lookup](https://spiral.ai/integrations/n8n/census-geography-lookup)

# How to Use Census geography lookup in n8n

Returns matching Census areas with geographic identifiers and the geography selections needed to retrieve data. Use it to distinguish a city from its county or resolve a named area before a statistical query.

|  |  |
| --- | --- |
| Model | Census geography lookup |
| Available through | Alexandria |
| Category | Public Records |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, with a Spiral API key |

## Prompts to try with Census geography lookup in n8n

- Every Monday at 9am: use Census geography lookup to look this up and give me the result as a table.
- Pull the latest numbers from Census geography lookup and tell me what changed since last week.
- Check Census geography lookup and summarize what you find in three bullet points.
- Pull the newest data from Census geography lookup and give me the result as a table.
- Check Census geography lookup every morning and tell me only when something changed.

## How to set up Census geography lookup in n8n

Pick the way that suits you. Each takes about two minutes.

### Use the Spiral skill

1. **Send n8n this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use Spiral's MCP server

1. **Create a key**: Create a key under API keys in the console.

2. **Add an MCP Client node**: In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

```text
https://api.spiral.ai/mcp
```

3. **Pick a tool**: The node lists Spiral's tools. In an MCP Client node pick one, such as `run`, and give it its arguments:

```json
{
  "provider": "fal",
  "model": "fal-ai/flux/schnell",
  "input": { "prompt": "a lighthouse at dawn" },
  "wait": true
}
```

4. **Run Census geography lookup in a workflow step**: Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds Census geography lookup, prices it and runs it each time the step fires.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Census geography lookup**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "census-gov/census/geographies",
    "input": {
      "query": "<query>"
    }
  }'
```

Then paste one of the prompts above: n8n finds Census geography lookup on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/n8n

## Census geography lookup tools and prices

- [US Census Bureau · Geographies](https://spiral.ai/tools/alexandria/census-gov/census/geographies) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| level |  | — | Keep only this summary level: us, region, division, state, county, county subdivision, tract, block group, place, metropolitan statistical area/micropolitan statistical area, combined statistical area, urban area, public use microdata area, zip code tabulation area, school district (unified), american indian area/alaska native area/hawaiian home land. |
| limit | 1 to 50 | 10 | limit |

## What can you do with Census geography lookup in n8n?

Keep a regional Census briefing current by checking publications and refreshing county comparisons when new data appear. Track population vintages and poverty estimate years separately so revisions do not look like newly observed annual changes.

### Maintain a county community report

Build a report for Travis County, Texas, with ACS characteristics, population history, and poverty estimates. Find the datasets and variable definitions, resolve county identifiers, check publication status, compare statewide collections, and retrieve the county details for the narrative.

### Prepare a grant needs assessment

Document population change, poverty, income, and housing conditions for a proposed county service area. Use statewide collections as benchmarks, local records as evidence, dataset and variable documentation to define measures, and publication checks to keep the assessment current.

### Compare counties for business expansion

Compare North Carolina counties using population trends, household income, poverty, and ACS housing characteristics. Identify the appropriate datasets, measures, and county codes; check publication changes; rank the county collections; then examine shortlisted counties in detail.

### Plan regional library outreach

Compare Montana counties for outreach planning using population change, poverty, and ACS characteristics. Resolve service-area counties, find and define the measures, check publication status, compare the statewide collections, and add local population and income detail to each county brief.

### Rank population growth

Rank Texas counties by population change within one vintage, then inspect the annual history of the fastest-growing counties. Resolve county identifiers and check the population publication before refreshing the ranking.

### Build a county poverty map

Map poverty rates and median household income across Ohio counties for one estimate year. Resolve the county identifiers, inspect selected counties with their confidence intervals, and check the poverty publication before updating the map.

### Compare neighborhood characteristics

Compare ACS five-year housing measures across census tracts in Wake County, North Carolina. Find the dataset, inspect variable definitions, resolve the geographic hierarchy, and retrieve estimates with their margins of error.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All n8n guides](https://spiral.ai/integrations/n8n)

## Census geography lookup in other agents

- [Amp](https://spiral.ai/integrations/amp/census-geography-lookup)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/census-geography-lookup)
- [Claude](https://spiral.ai/integrations/claude-desktop/census-geography-lookup)
- [Claude Code](https://spiral.ai/integrations/claude-code/census-geography-lookup)
- [Cline](https://spiral.ai/integrations/cline/census-geography-lookup)
- [Codex](https://spiral.ai/integrations/codex/census-geography-lookup)
- [Cursor](https://spiral.ai/integrations/cursor/census-geography-lookup)
- [Devin](https://spiral.ai/integrations/devin/census-geography-lookup)
- [dots](https://spiral.ai/integrations/dots/census-geography-lookup)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/census-geography-lookup)
- [Gemini](https://spiral.ai/integrations/gemini/census-geography-lookup)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/census-geography-lookup)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/census-geography-lookup)
- [goose](https://spiral.ai/integrations/goose/census-geography-lookup)
- [Grok](https://spiral.ai/integrations/grok/census-geography-lookup)
- [Grok Build](https://spiral.ai/integrations/grok-build/census-geography-lookup)
- [Hermes](https://spiral.ai/integrations/hermes/census-geography-lookup)
- [Instinct](https://spiral.ai/integrations/instinct/census-geography-lookup)
- [Manus](https://spiral.ai/integrations/manus/census-geography-lookup)
- [Muse](https://spiral.ai/integrations/muse/census-geography-lookup)
- [Muse Code](https://spiral.ai/integrations/muse-code/census-geography-lookup)
- [Notion](https://spiral.ai/integrations/notion/census-geography-lookup)
- [OpenClaw](https://spiral.ai/integrations/openclaw/census-geography-lookup)
- [opencode](https://spiral.ai/integrations/opencode/census-geography-lookup)
- [Perplexity](https://spiral.ai/integrations/perplexity/census-geography-lookup)
- [Raycast](https://spiral.ai/integrations/raycast/census-geography-lookup)
- [VS Code](https://spiral.ai/integrations/vscode/census-geography-lookup)
- [Windsurf](https://spiral.ai/integrations/windsurf/census-geography-lookup)
- [Zapier](https://spiral.ai/integrations/zapier/census-geography-lookup)

## More n8n guides

- [Census dataset search](https://spiral.ai/integrations/n8n/census-dataset-search)
- [Census local population history](https://spiral.ai/integrations/n8n/census-local-population-history)
- [Census county poverty and income](https://spiral.ai/integrations/n8n/census-county-poverty-and-income)
- [Census population estimates collection](https://spiral.ai/integrations/n8n/census-population-estimates-collection)
- [CelesTrak satellite orbit search](https://spiral.ai/integrations/n8n/celestrak-satellite-orbit-search)
- [Census population publication status](https://spiral.ai/integrations/n8n/census-population-publication-status)

## Questions about Census geography lookup in n8n

**Can n8n use Census geography lookup?**

Yes. Add Spiral to n8n as an MCP server, and n8n can find and run Census geography lookup like any built-in tool.

**How much does Census geography lookup cost in n8n?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your n8n plan is separate.

**Do I need an Alexandria account to use Census geography lookup in n8n?**

You need no Alexandria account. n8n uses one Spiral API key for every tool, and Spiral runs Census geography lookup on its own Alexandria account.

**How long does it take to set up Census geography lookup in n8n?**

About two minutes: create a key, then add an MCP Client node, then pick a tool.

**Does n8n wait while Census geography lookup runs?**

Census geography lookup runs in the background. n8n starts the run, checks on it and gives you the json when it's ready.

**How small an area can Census statistics describe?**

Coverage depends on the program and table. ACS five-year Detailed Tables reach block groups, while Subject Tables and Data Profiles reach census tracts; the SAIPE state and county files describe those larger jurisdictions.

**How current are Census estimates?**

Population estimates and SAIPE estimates are produced annually. An ACS five-year estimate combines 60 months of collected data, so its ending year does not make it a snapshot of that year alone.

**Why can an older population estimate change?**

Each new population estimates vintage revises the series back to the most recent census. The newest vintage supersedes previously published estimates for those dates, so a growth calculation should use one vintage throughout.

**Are poverty estimates exact counts?**

SAIPE uses statistical models to estimate income and poverty. Each state and county estimate is published with a 90% confidence interval, which matters when comparing counties with similar results.

**Why might an ACS one-year table omit a small community?**

Standard ACS one-year estimates cover areas with at least 65,000 residents. ACS five-year estimates cover all areas and are the appropriate product to investigate for smaller communities.

