> ## 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 get

> Fetch one county (Gallatin County 30 031) or one place (Billings city, place 06550) with every estimate year.

## Request contract

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

[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-get",
  "method": "POST",
  "path": "/apis/v1/census-gov/census/popest-get",
  "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": {
              "county": "031",
              "file": "counties",
              "state": "30"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "concit": {
              "description": "5-digit consolidated city FIPS (subcounty). Pattern: ^[0-9]{5}$.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "county": {
              "description": "3-digit county FIPS. Pattern: ^[0-9]{3}$.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "cousub": {
              "description": "5-digit county subdivision FIPS (subcounty; needs county). Pattern: ^[0-9]{5}$.",
              "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"
            },
            "place": {
              "description": "5-digit place FIPS (subcounty). Pattern: ^[0-9]{5}$.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "state": {
              "description": "2-digit state FIPS (30 = Montana). Pattern: ^[0-9]{2}$.",
              "type": "string"
            },
            "sumlev": {
              "description": "Summary level when the codes alone are ambiguous (e.g. 157 vs 162). 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",
            "state"
          ],
          "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-get
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-get:
    post:
      tags:
        - US Census Bureau
      summary: Popest get
      description: >-
        Fetch one county (Gallatin County 30 031) or one place (Billings city,
        place 06550) with every estimate year.
      operationId: census-gov.census.popest-get
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  county: '031'
                  file: counties
                  state: '30'
            schema:
              additionalProperties: true
              properties:
                concit:
                  description: >-
                    5-digit consolidated city FIPS (subcounty). Pattern:
                    ^[0-9]{5}$.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                county:
                  description: '3-digit county FIPS. Pattern: ^[0-9]{3}$.'
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                cousub:
                  description: >-
                    5-digit county subdivision FIPS (subcounty; needs county).
                    Pattern: ^[0-9]{5}$.
                  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
                place:
                  description: '5-digit place FIPS (subcounty). Pattern: ^[0-9]{5}$.'
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                state:
                  description: '2-digit state FIPS (30 = Montana). Pattern: ^[0-9]{2}$.'
                  type: string
                sumlev:
                  description: >-
                    Summary level when the codes alone are ambiguous (e.g. 157
                    vs 162). 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
                - state
              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
                    geography:
                      concit: null
                      county: '031'
                      cousub: null
                      geo_id: '30031'
                      name: Gallatin County
                      place: null
                      state: '30'
                      sumlev: '050'
                    hash_source: sha256:raw_file_bytes
                    last_modified: '2026-03-26T12:15:28Z'
                    observed_at_ms: 1792345644519
                    publication_id: v2025:co-est2025-alldata.csv:2026-03-26T12:15:28Z
                    records:
                      - births: 290
                        county: '031'
                        ctyname: Gallatin County
                        deaths: 133
                        division: '8'
                        domesticmig: 489
                        estimates_base_2020: 118957
                        file: counties
                        geo_id: '30031'
                        gqestimates: 4148
                        gqestimates_base_2020: 4158
                        internationalmig: 7
                        naturalchg: 157
                        netmig: 496
                        npopchg: 636
                        popestimate: 119593
                        publication_id: v2025:co-est2025-alldata.csv:2026-03-26T12:15:28Z
                        rbirth: null
                        rdeath: null
                        rdomesticmig: null
                        region: '4'
                        residual: -17
                        retrieved_at: '2026-10-18T17:47:24Z'
                        rinternationalmig: null
                        rnaturalchg: null
                        rnetmig: null
                        source_record_id: v2025:counties:050:30031:2020
                        source_url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/counties/totals/co-est2025-alldata.csv
                        state: '30'
                        stname: Montana
                        sumlev: '050'
                        vintage: 2025
                        year: 2020
                      - births: 1196
                        county: '031'
                        ctyname: Gallatin County
                        deaths: 649
                        division: '8'
                        domesticmig: 2944
                        estimates_base_2020: 118957
                        file: counties
                        geo_id: '30031'
                        gqestimates: 4138
                        gqestimates_base_2020: 4158
                        internationalmig: 131
                        naturalchg: 547
                        netmig: 3075
                        npopchg: 3510
                        popestimate: 123103
                        publication_id: v2025:co-est2025-alldata.csv:2026-03-26T12:15:28Z
                        rbirth: 9.855951478
                        rdeath: 5.348254607
                        rdomesticmig: 24.26080364
                        region: '4'
                        residual: -112
                        retrieved_at: '2026-10-18T17:47:24Z'
                        rinternationalmig: 1.079539836
                        rnaturalchg: 4.507696872
                        rnetmig: 25.34034348
                        source_record_id: v2025:counties:050:30031:2021
                        source_url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/counties/totals/co-est2025-alldata.csv
                        state: '30'
                        stname: Montana
                        sumlev: '050'
                        vintage: 2025
                        year: 2021
                      - births: 1224
                        county: '031'
                        ctyname: Gallatin County
                        deaths: 709
                        division: '8'
                        domesticmig: 883
                        estimates_base_2020: 118957
                        file: counties
                        geo_id: '30031'
                        gqestimates: 4162
                        gqestimates_base_2020: 4158
                        internationalmig: 189
                        naturalchg: 515
                        netmig: 1072
                        npopchg: 1610
                        popestimate: 124713
                        publication_id: v2025:co-est2025-alldata.csv:2026-03-26T12:15:28Z
                        rbirth: 9.878296801
                        rdeath: 5.721987281
                        rdomesticmig: 7.126254963
                        region: '4'
                        residual: 23
                        retrieved_at: '2026-10-18T17:47:24Z'
                        rinternationalmig: 1.525325241
                        rnaturalchg: 4.15630952
                        rnetmig: 8.651580205
                        source_record_id: v2025:counties:050:30031:2022
                        source_url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/counties/totals/co-est2025-alldata.csv
                        state: '30'
                        stname: Montana
                        sumlev: '050'
                        vintage: 2025
                        year: 2022
                      - births: 1122
                        county: '031'
                        ctyname: Gallatin County
                        deaths: 710
                        division: '8'
                        domesticmig: 639
                        estimates_base_2020: 118957
                        file: counties
                        geo_id: '30031'
                        gqestimates: 4164
                        gqestimates_base_2020: 4158
                        internationalmig: 175
                        naturalchg: 412
                        netmig: 814
                        npopchg: 1239
                        popestimate: 125952
                        publication_id: v2025:co-est2025-alldata.csv:2026-03-26T12:15:28Z
                        rbirth: 8.952187182
                        rdeath: 5.664931283
                        rdomesticmig: 5.098438155
                        region: '4'
                        residual: 13
                        retrieved_at: '2026-10-18T17:47:24Z'
                        rinternationalmig: 1.39628588
                        rnaturalchg: 3.287255899
                        rnetmig: 6.494724034
                        source_record_id: v2025:counties:050:30031:2023
                        source_url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/counties/totals/co-est2025-alldata.csv
                        state: '30'
                        stname: Montana
                        sumlev: '050'
                        vintage: 2025
                        year: 2023
                      - births: 1217
                        county: '031'
                        ctyname: Gallatin County
                        deaths: 707
                        division: '8'
                        domesticmig: 424
                        estimates_base_2020: 118957
                        file: counties
                        geo_id: '30031'
                        gqestimates: 4163
                        gqestimates_base_2020: 4158
                        internationalmig: 605
                        naturalchg: 510
                        netmig: 1029
                        npopchg: 1546
                        popestimate: 127498
                        publication_id: v2025:co-est2025-alldata.csv:2026-03-26T12:15:28Z
                        rbirth: 9.603472085
                        rdeath: 5.579009667
                        rdomesticmig: 3.345827579
                        region: '4'
                        residual: 7
                        retrieved_at: '2026-10-18T17:47:24Z'
                        rinternationalmig: 4.774117183
                        rnaturalchg: 4.024462419
                        rnetmig: 8.119944762
                        source_record_id: v2025:counties:050:30031:2024
                        source_url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/counties/totals/co-est2025-alldata.csv
                        state: '30'
                        stname: Montana
                        sumlev: '050'
                        vintage: 2025
                        year: 2024
                      - births: 1137
                        county: '031'
                        ctyname: Gallatin County
                        deaths: 700
                        division: '8'
                        domesticmig: 545
                        estimates_base_2020: 118957
                        file: counties
                        geo_id: '30031'
                        gqestimates: 4162
                        gqestimates_base_2020: 4158
                        internationalmig: 254
                        naturalchg: 437
                        netmig: 799
                        npopchg: 1242
                        popestimate: 128740
                        publication_id: v2025:co-est2025-alldata.csv:2026-03-26T12:15:28Z
                        rbirth: 8.874561931
                        rdeath: 5.463670494
                        rdomesticmig: 4.253857742
                        region: '4'
                        residual: 6
                        retrieved_at: '2026-10-18T17:47:24Z'
                        rinternationalmig: 1.982531865
                        rnaturalchg: 3.410891437
                        rnetmig: 6.236389607
                        source_record_id: v2025:counties:050:30031:2025
                        source_url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/counties/totals/co-est2025-alldata.csv
                        state: '30'
                        stname: Montana
                        sumlev: '050'
                        vintage: 2025
                        year: 2025
                    retrieved_at: '2026-10-18T17:47:24Z'
                    size_bytes: 2071735
                    source_url: >-
                      https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/counties/totals/co-est2025-alldata.csv
                    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: >-
            One PEP geography by its own codes, as its estimate-year records
            (same shape as popest_list). counties: state + county (county
            omitted or 000 = the state row). subcounty: the per-state file;
            select by place (default SUMLEV 162, or 157 together with county),
            cousub + county (SUMLEV 061), concit, or an explicit sumlev; nothing
            but state = the state row. More than one matching row is
            invalid_input asking for sumlev; none is not_found.


            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 | Number of year records (one per estimate year).
            |

            | `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 |  |

            | `geography` | object |  |

            | `hash_source` | string |  |

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

            | `observed_at_ms` | number |  |

            | `publication_id` | string |  |

            | `records` | object[] |  |

            | `retrieved_at` | string |  |

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

            | `source_url` | string |  |

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