US Census Bureau · Datasets
census-gov/census/datasetsSearch public records with US Census Bureau · Datasets from Alexandria through one Spiral API key. Search the Census Data API catalog. Input: free-text query over dataset path, title and description plus an optional vintage (year). Returns one record per dataset/vintage with its API endpoint, metadata links, publication date and supported geography levels. It runs in the background and returns structured JSON. Pay as you go, with no subscription.
Pricing
$0.00873 per call.
Limits
- Runs
- In the background
- Returns
- json
- Longest queue wait
- 1 hour
- Run deadline
- 5 minutes
- Longest run, end to end
- 225 minutes
- Largest inline input
- 1 MB
- Largest input file
- 2 GB
- Largest output
- 5 GB
Input
| Field | Kind | Default | Description |
|---|---|---|---|
query | text | Case-insensitive tokens all of which must appear in the dataset path, title or description. Required (>= 2 characters) when vintage is null. | |
cursor | text | — | next_cursor from the previous page. |
vintage | number 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 | number 1 to 25 | 20 | page_size |
Same request in code
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
}
}'Frequently asked questions
How much does US Census Bureau · Datasets cost?
$0.00873 per call. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.
How do I use US Census Bureau · Datasets through an API?
Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "census-gov/census/datasets"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.
Do I need an account with Alexandria to use US Census Bureau · Datasets?
No. Spiral runs it on its own Alexandria account and charges your Spiral balance.
Can my AI agent use US Census Bureau · Datasets?
Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.