# US Census Bureau · Popest list

Search public records with US Census Bureau · Popest list from Alexandria through one Spiral API key. Full collection of county or sub-county population estimates (annual population, births, deaths, migration) for a vintage, optionally for one state. 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_list`
- Page: https://spiral.ai/tools/alexandria/census-gov/census/popest_list

## 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` | text |  | — | Optional 2-digit state FIPS. counties: keeps that state's rows (state row included). subcounty: reads the per-state file sub-est<YYYY>_<n>.csv instead of the national file. Pattern: ^[0-9]{2}$. |
| `sumlev` | text |  | — | Optional summary level filter (050 counties only, 162 incorporated places, 061 county subdivisions ...). 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/. |
| `page_size` | number | 1 to 2000 | — | Records (geography-years) per page; default 500. |
| `continuation` | text |  | — | Opaque cursor from the previous page's next_cursor. It pins the vintage, file, Last-Modified and size; when the source has moved on the call fails with invalid_input at /continuation (issue code publication_changed) instead of mixing versions. |

## 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_list",
    "input": {
      "file": "counties"
    }
  }'
```

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

## Common questions

### US Census Bureau · Popest list

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

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

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

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

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

