# US Census Bureau · Popest get

Search public records with US Census Bureau · Popest get from Alexandria through one Spiral API key. Fetch one county (Gallatin County 30 031) or one place (Billings city, place 06550) with every estimate year. It runs in the background and returns structured JSON. Pay as you go, with no subscription.

- Provider: Alexandria
- Category: Public Records
- Runs: In the background
- Returns: json
- Tool id: `alexandria` / `census-gov/census/popest_get`
- Page: https://spiral.ai/tools/alexandria/census-gov/census/popest_get

## Pricing

$0.00873 per call.

## Limits

- 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 | Allowed | Default | Description |
| --- | --- | --- | --- | --- |
| `file` (required) | one of | counties, subcounty | — | counties: counties/totals/co-est<YYYY>-alldata.csv (states and counties). subcounty: cities/totals/sub-est<YYYY>.csv (national, ~7.5 MB) or, with state, sub-est<YYYY>_<state>.csv. |
| `state` (required) | text |  | — | 2-digit state FIPS (30 = Montana). Pattern: ^[0-9]{2}$. |
| `place` | text |  | — | 5-digit place FIPS (subcounty). Pattern: ^[0-9]{5}$. |
| `concit` | text |  | — | 5-digit consolidated city FIPS (subcounty). Pattern: ^[0-9]{5}$. |
| `county` | text |  | — | 3-digit county FIPS. Pattern: ^[0-9]{3}$. |
| `cousub` | text |  | — | 5-digit county subdivision FIPS (subcounty; needs county). Pattern: ^[0-9]{5}$. |
| `sumlev` | text |  | — | Summary level when the codes alone are ambiguous (e.g. 157 vs 162). Pattern: ^[0-9]{3}$. |
| `vintage` | number | 2021 to 2035 | — | Vintage year YYYY of the 2020-YYYY directory. Default: the newest directory listed under popest/datasets/. |

## Example

```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/popest_get",
    "input": {
      "file": "counties",
      "state": "<state>"
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=alexandria&model=census-gov%2Fcensus%2Fpopest_get

## Common questions

### US Census Bureau · Popest get

**How much does US Census Bureau · Popest get 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 · Popest get through an API?**

Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "census-gov/census/popest_get"` 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 · Popest get?**

No. Spiral runs it on its own Alexandria account and charges your Spiral balance.

**Can my AI agent use US Census Bureau · Popest get?**

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.

