> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Popest list

> Full collection of county or sub-county population estimates (annual population, births, deaths, migration) for a vintage, optionally for one state.

## Request contract

* **Method and path:** POST /apis/v1/census-gov/census/popest-list
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/census-gov/census/popest-list`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/census-gov.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "census-gov.census.popest-list",
  "method": "POST",
  "path": "/apis/v1/census-gov/census/popest-list",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "examples": {
          "provider": {
            "summary": "Official provider example; checked against AIsa request constraints",
            "value": {
              "file": "counties",
              "page_size": 6,
              "state": "30"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "continuation": {
              "description": "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.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "file": {
              "description": "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.\n\nProvider reference: allowed values [\"counties\", \"subcounty\"].",
              "type": "string"
            },
            "page_size": {
              "description": "Records (geography-years) per page; default 500.\n\nProvider reference: minimum 1; maximum 2000.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 2000,
                "min": 1
              }
            },
            "state": {
              "description": "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}$.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "sumlev": {
              "description": "Optional summary level filter (050 counties only, 162 incorporated places, 061 county subdivisions ...). Pattern: ^[0-9]{3}$.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "vintage": {
              "description": "Vintage year YYYY of the 2020-YYYY directory. Default: the newest directory listed under popest/datasets/.\n\nProvider reference: minimum 2021; maximum 2035.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 2035,
                "min": 2021
              }
            }
          },
          "required": [
            "file"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Usage-based pricing. Default request estimate: \$0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi/census-gov.json POST /apis/v1/census-gov/census/popest-list
openapi: 3.1.0
info:
  description: ''
  title: US Census Bureau
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    census-gov:
      description: ''
      title: US Census Bureau
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: eaabe92020e77779a83c21c13467dbc8d97222591a3938cbb52d67ed4a3ca399
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/census-gov/census/data
    - /apis/v1/census-gov/census/datasets
    - /apis/v1/census-gov/census/geographies
    - /apis/v1/census-gov/census/popest-get
    - /apis/v1/census-gov/census/popest-list
    - /apis/v1/census-gov/census/popest-status
    - /apis/v1/census-gov/census/saipe-get
    - /apis/v1/census-gov/census/saipe-list
    - /apis/v1/census-gov/census/saipe-status
    - /apis/v1/census-gov/census/variables
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:87057e10a7fc2f9e702ee4693519b68dad96de5e093a92fe942fd1a157f483c6
    facts_hash: eaabe92020e77779a83c21c13467dbc8d97222591a3938cbb52d67ed4a3ca399
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: census-gov
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/census-gov/census/popest-list:
    post:
      tags:
        - US Census Bureau
      summary: Popest list
      description: >-
        Full collection of county or sub-county population estimates (annual
        population, births, deaths, migration) for a vintage, optionally for one
        state.
      operationId: census-gov.census.popest-list
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  file: counties
                  page_size: 6
                  state: '30'
            schema:
              additionalProperties: true
              properties:
                continuation:
                  description: >-
                    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.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                file:
                  description: >-
                    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.


                    Provider reference: allowed values ["counties",
                    "subcounty"].
                  type: string
                page_size:
                  description: |-
                    Records (geography-years) per page; default 500.

                    Provider reference: minimum 1; maximum 2000.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 2000
                    min: 1
                state:
                  description: >-
                    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}$.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                sumlev:
                  description: >-
                    Optional summary level filter (050 counties only, 162
                    incorporated places, 061 county subdivisions ...). Pattern:
                    ^[0-9]{3}$.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                vintage:
                  description: >-
                    Vintage year YYYY of the 2020-YYYY directory. Default: the
                    newest directory listed under popest/datasets/.


                    Provider reference: minimum 2021; maximum 2035.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 2035
                    min: 2021
              required:
                - file
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-10-18.
                  summary: Official provider example
                  value:
                    content_hash: >-
                      4f5a499d851e2cb48fd7a5405e5a9235453a8a66933657aacd10df0e264f35d5
                    count: 6
                    file: counties
                    file_name: co-est2025-alldata.csv
                    file_url: >-
                      https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/counties/totals/co-est2025-alldata.csv
                    has_more: true
                    hash_source: sha256:raw_file_bytes
                    last_modified: '2026-03-26T12:15:28Z'
                    next_cursor: pep1|2025|counties|30|-|2026-03-26T12:15:28Z|2071735|6
                    observed_at_ms: 1792345660693
                    offset: 0
                    publication_id: v2025:co-est2025-alldata.csv:2026-03-26T12:15:28Z
                    records:
                      - births: 2824
                        county: '000'
                        ctyname: Montana
                        deaths: 2535
                        division: '8'
                        domesticmig: 2715
                        estimates_base_2020: 1084221
                        file: counties
                        geo_id: '30000'
                        gqestimates: 29261
                        gqestimates_base_2020: 29285
                        internationalmig: 42
                        naturalchg: 289
                        netmig: 2757
                        npopchg: 2935
                        popestimate: 1087156
                        publication_id: v2025:co-est2025-alldata.csv:2026-03-26T12:15:28Z
                        rbirth: null
                        rdeath: null
                        rdomesticmig: null
                        region: '4'
                        residual: -111
                        retrieved_at: '2026-10-18T17:47:40Z'
                        rinternationalmig: null
                        rnaturalchg: null
                        rnetmig: null
                        source_record_id: v2025:counties:040:30000:2020
                        source_url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/counties/totals/co-est2025-alldata.csv
                        state: '30'
                        stname: Montana
                        sumlev: '040'
                        vintage: 2025
                        year: 2020
                      - births: 10851
                        county: '000'
                        ctyname: Montana
                        deaths: 12271
                        division: '8'
                        domesticmig: 20693
                        estimates_base_2020: 1084221
                        file: counties
                        geo_id: '30000'
                        gqestimates: 29271
                        gqestimates_base_2020: 29285
                        internationalmig: 712
                        naturalchg: -1420
                        netmig: 21405
                        npopchg: 19260
                        popestimate: 1106416
                        publication_id: v2025:co-est2025-alldata.csv:2026-03-26T12:15:28Z
                        rbirth: 9.893452323
                        rdeath: 11.18814427
                        rdomesticmig: 18.86694396
                        region: '4'
                        residual: -725
                        retrieved_at: '2026-10-18T17:47:40Z'
                        rinternationalmig: 0.649169483
                        rnaturalchg: -1.294691945
                        rnetmig: 19.51611344
                        source_record_id: v2025:counties:040:30000:2021
                        source_url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/counties/totals/co-est2025-alldata.csv
                        state: '30'
                        stname: Montana
                        sumlev: '040'
                        vintage: 2025
                        year: 2021
                      - births: 11210
                        county: '000'
                        ctyname: Montana
                        deaths: 12991
                        division: '8'
                        domesticmig: 15474
                        estimates_base_2020: 1084221
                        file: counties
                        geo_id: '30000'
                        gqestimates: 29239
                        gqestimates_base_2020: 29285
                        internationalmig: 798
                        naturalchg: -1781
                        netmig: 16272
                        npopchg: 15117
                        popestimate: 1121533
                        publication_id: v2025:co-est2025-alldata.csv:2026-03-26T12:15:28Z
                        rbirth: 10.06306697
                        rdeath: 11.66184684
                        rdomesticmig: 13.89080271
                        region: '4'
                        residual: 626
                        retrieved_at: '2026-10-18T17:47:40Z'
                        rinternationalmig: 0.71635392
                        rnaturalchg: -1.598779864
                        rnetmig: 14.60715663
                        source_record_id: v2025:counties:040:30000:2022
                        source_url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/counties/totals/co-est2025-alldata.csv
                        state: '30'
                        stname: Montana
                        sumlev: '040'
                        vintage: 2025
                        year: 2022
                      - births: 11027
                        county: '000'
                        ctyname: Montana
                        deaths: 11433
                        division: '8'
                        domesticmig: 9017
                        estimates_base_2020: 1084221
                        file: counties
                        geo_id: '30000'
                        gqestimates: 29265
                        gqestimates_base_2020: 29285
                        internationalmig: 412
                        naturalchg: -406
                        netmig: 9429
                        npopchg: 9079
                        popestimate: 1130612
                        publication_id: v2025:co-est2025-alldata.csv:2026-03-26T12:15:28Z
                        rbirth: 9.792442316
                        rdeath: 10.15298749
                        rdomesticmig: 8.007477316
                        region: '4'
                        residual: 56
                        retrieved_at: '2026-10-18T17:47:40Z'
                        rinternationalmig: 0.365873423
                        rnaturalchg: -0.360545169
                        rnetmig: 8.373350739
                        source_record_id: v2025:counties:040:30000:2023
                        source_url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/counties/totals/co-est2025-alldata.csv
                        state: '30'
                        stname: Montana
                        sumlev: '040'
                        vintage: 2025
                        year: 2023
                      - births: 11294
                        county: '000'
                        ctyname: Montana
                        deaths: 11517
                        division: '8'
                        domesticmig: 5263
                        estimates_base_2020: 1084221
                        file: counties
                        geo_id: '30000'
                        gqestimates: 29332
                        gqestimates_base_2020: 29285
                        internationalmig: 1929
                        naturalchg: -223
                        netmig: 7192
                        npopchg: 6945
                        popestimate: 1137557
                        publication_id: v2025:co-est2025-alldata.csv:2026-03-26T12:15:28Z
                        rbirth: 9.958693554
                        rdeath: 10.15532793
                        rdomesticmig: 4.640747669
                        region: '4'
                        residual: -24
                        retrieved_at: '2026-10-18T17:47:40Z'
                        rinternationalmig: 1.700931456
                        rnaturalchg: -0.196634378
                        rnetmig: 6.341679125
                        source_record_id: v2025:counties:040:30000:2024
                        source_url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/counties/totals/co-est2025-alldata.csv
                        state: '30'
                        stname: Montana
                        sumlev: '040'
                        vintage: 2025
                        year: 2024
                      - births: 11348
                        county: '000'
                        ctyname: Montana
                        deaths: 11438
                        division: '8'
                        domesticmig: 6348
                        estimates_base_2020: 1084221
                        file: counties
                        geo_id: '30000'
                        gqestimates: 29282
                        gqestimates_base_2020: 29285
                        internationalmig: 899
                        naturalchg: -90
                        netmig: 7247
                        npopchg: 7137
                        popestimate: 1144694
                        publication_id: v2025:co-est2025-alldata.csv:2026-03-26T12:15:28Z
                        rbirth: 9.944567885
                        rdeath: 10.02343739
                        rdomesticmig: 5.56292888
                        region: '4'
                        residual: -20
                        retrieved_at: '2026-10-18T17:47:40Z'
                        rinternationalmig: 0.787818693
                        rnaturalchg: -0.078869502
                        rnetmig: 6.350747573
                        source_record_id: v2025:counties:040:30000:2025
                        source_url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/counties/totals/co-est2025-alldata.csv
                        state: '30'
                        stname: Montana
                        sumlev: '040'
                        vintage: 2025
                        year: 2025
                    retrieved_at: '2026-10-18T17:47:40Z'
                    size_bytes: 2071735
                    source_url: >-
                      https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/counties/totals/co-est2025-alldata.csv
                    state: '30'
                    sumlev: null
                    total_geographies: 57
                    total_records: 342
                    vintage: 2025
                    vintage_directory: 2020-2025
                    years:
                      - 2020
                      - 2021
                      - 2022
                      - 2023
                      - 2024
                      - 2025
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            List Vintage 2020-YYYY population estimates from one PEP file as one
            record per geography and estimate year: counties (SUMLEV 040 states
            and 050 counties; components of change, group quarters and per-1,000
            rates) or subcounty (places, county subdivisions, consolidated
            cities; population only). The whole file is fetched per call (2.1 MB
            counties, 7.5 MB national subcounty, ~30 KB per state) and paged
            from memory; the cursor pins vintage, file, Last-Modified and size
            and a changed file fails with publication_changed. source_record_id
            = v<vintage>:<file>:<sumlev>:<geo_id>:<year>. Names are decoded from
            Latin-1.


            The response contains the tool result directly.


            | Documented field | Provider type | Description |

            | --- | --- | --- |

            | `content_hash` | string | SHA-256 of the raw file bytes as served
            (the publisher posts no hash). |

            | `count` | number |  |

            | `file` | string | 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. |

            | `file_name` | string |  |

            | `file_url` | string |  |

            | `has_more` | boolean |  |

            | `hash_source` | string |  |

            | `last_modified` | string | Last-Modified header of the file, ISO
            8601. |

            | `next_cursor` | string |  |

            | `observed_at_ms` | number |  |

            | `offset` | number |  |

            | `publication_id` | string |  |

            | `records` | object[] |  |

            | `retrieved_at` | string |  |

            | `size_bytes` | number | Content-Length of the file (raw bytes as
            served). |

            | `source_url` | string |  |

            | `state` | string |  |

            | `sumlev` | string |  |

            | `total_geographies` | number | Rows of the file after the
            state/sumlev filter. |

            | `total_records` | number | total_geographies x years. |

            | `vintage` | number |  |

            | `vintage_directory` | string |  |

            | `years` | number[] | Estimate years carried by the file
            (POPESTIMATE<year> columns). |



            These are the provider's documented fields. Field requiredness,
            nullability and nested object structures are specified only where
            the descriptions explicitly say so.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.