How to Use Census dataset search in Gemini
Returns matching Census datasets with their reference years and metadata links. Use it to find the right statistical program before choosing measures or requesting observations.
Prompts to try with Census dataset search in Gemini
Copy an example into Gemini, or ask in your own words.
Use Census dataset search to find 2024 American Community Survey five-year housing datasets suitable for comparing census tracts in Wake County, North Carolina.
Use Census dataset search to look this up and give me the result as a table.
Pull the latest numbers from Census dataset search and tell me what changed since last week.
Check Census dataset search and summarize what you find in three bullet points.
Pull the newest data from Census dataset search and give me the result as a table.
How to set up Census dataset search in Gemini
Pick the way that suits you. Each takes about two minutes.
Use the Gemini connector
- Open Connected Apps
On your computer, go to gemini.google.com. At the bottom, click Settings › Connected Apps. If you don't see Connected Apps, click Personal Intelligence first, then Connected Apps.
- Add Spiral as a custom app
Under Custom apps, click Add a custom app and paste this MCP server URL:
https://api.spiral.ai/mcp
- Sign in to Spiral and approve
Follow the on-screen instructions. Spiral opens: sign in, pick the organization and click Authorize. No API key.
Use the Spiral skill
- Send Gemini this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Census dataset search
One request; the result comes back by polling or a webhook.
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/datasets", "input": { "vintage": 2000 } }'
Then paste one of the prompts above: Gemini finds Census dataset search on Spiral, shows the price and runs it.
Census dataset search providers and prices
Spiral runs Census dataset search through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask Gemini for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Vintage | 2000 to 2035 | Restrict to one vintage year (reads api.census.gov/data/{vintage}.json, ~0.5 s). Null searches the whole catalog (~5 MB, 5-10 s). | |
| Page size | 1 to 25 | 20 | page_size |
Every API field of US Census Bureau · Datasets is on its tool page: open its card above.
What can you do with Census dataset search in Gemini?
Turn Census statistics into a county briefing with population trends and income or poverty comparisons. The assistant can identify the relevant datasets, places, and measures before explaining the estimates and their uncertainty.
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.
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.
More on Census dataset search and Gemini
Overview
Census dataset search in other agents
Questions about Census dataset search in Gemini
Can Gemini use Census dataset search?
Yes. Add Spiral to Gemini as an MCP server, and Gemini can find and run Census dataset search like any built-in tool.
How much does Census dataset search cost in Gemini?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Gemini plan is separate.
Do I need an Alexandria account to use Census dataset search in Gemini?
No. Spiral runs Census dataset search on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up Census dataset search in Gemini?
About two minutes: open Connected Apps, then add Spiral as a custom app, then sign in to Spiral and approve.
Does Gemini wait while Census dataset search runs?
Census dataset search runs in the background. Gemini 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.
Start using Census dataset search in Gemini
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Gemini:
set up https://spiral.ai/SKILL.md


