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

> Before a collection run, to learn the current vintage and whether a PEP file changed since the last run.

## Request contract

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

[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-status",
  "method": "POST",
  "path": "/apis/v1/census-gov/census/popest-status",
  "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": {
              "state": "30"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "state": {
              "description": "Optional 2-digit state FIPS: also HEAD that state's sub-est<YYYY>_<state>.csv and report it under files. Pattern: ^[0-9]{2}$.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            }
          },
          "type": "object"
        }
      }
    },
    "required": false
  },
  "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-status
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-status:
    post:
      tags:
        - US Census Bureau
      summary: Popest status
      description: >-
        Before a collection run, to learn the current vintage and whether a PEP
        file changed since the last run.
      operationId: census-gov.census.popest-status
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  state: '30'
            schema:
              additionalProperties: true
              properties:
                state:
                  description: >-
                    Optional 2-digit state FIPS: also HEAD that state's
                    sub-est<YYYY>_<state>.csv and report it under files.
                    Pattern: ^[0-9]{2}$.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-10-18.
                  summary: Official provider example
                  value:
                    files:
                      - content_hash: null
                        file: counties
                        file_name: co-est2025-alldata.csv
                        last_modified: '2026-03-26T12:15:28Z'
                        publication_id: v2025:co-est2025-alldata.csv:2026-03-26T12:15:28Z
                        published_at: '2026-03-26T12:15:28Z'
                        size_bytes: 2071735
                        state: null
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/counties/totals/co-est2025-alldata.csv
                      - content_hash: null
                        file: subcounty
                        file_name: sub-est2025.csv
                        last_modified: '2026-05-14T12:45:32Z'
                        publication_id: v2025:sub-est2025.csv:2026-05-14T12:45:32Z
                        published_at: '2026-05-14T12:45:32Z'
                        size_bytes: 7464556
                        state: null
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025.csv
                      - content_hash: null
                        file: subcounty
                        file_name: sub-est2025_30.csv
                        last_modified: '2026-05-14T12:45:32Z'
                        publication_id: v2025:sub-est2025_30.csv:2026-05-14T12:45:32Z
                        published_at: '2026-05-14T12:45:32Z'
                        size_bytes: 33352
                        state: '30'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_30.csv
                    observed_at_ms: 1792345676966
                    retrieved_at: '2026-10-18T17:47:56Z'
                    source_url: https://www2.census.gov/programs-surveys/popest/datasets/
                    subcounty_state_files:
                      - file_name: sub-est2025_1.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 98K
                        state: '01'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_1.csv
                      - file_name: sub-est2025_2.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 29K
                        state: '02'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_2.csv
                      - file_name: sub-est2025_4.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 21K
                        state: '04'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_4.csv
                      - file_name: sub-est2025_5.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 102K
                        state: '05'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_5.csv
                      - file_name: sub-est2025_6.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 107K
                        state: '06'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_6.csv
                      - file_name: sub-est2025_8.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 62K
                        state: '08'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_8.csv
                      - file_name: sub-est2025_9.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 29K
                        state: '09'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_9.csv
                      - file_name: sub-est2025_10.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 11K
                        state: '10'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_10.csv
                      - file_name: sub-est2025_11.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: '674'
                        state: '11'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_11.csv
                      - file_name: sub-est2025_12.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 90K
                        state: '12'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_12.csv
                      - file_name: sub-est2025_13.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 131K
                        state: '13'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_13.csv
                      - file_name: sub-est2025_15.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 1.1K
                        state: '15'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_15.csv
                      - file_name: sub-est2025_16.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 42K
                        state: '16'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_16.csv
                      - file_name: sub-est2025_17.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 672K
                        state: '17'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_17.csv
                      - file_name: sub-est2025_18.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 343K
                        state: '18'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_18.csv
                      - file_name: sub-est2025_19.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 174K
                        state: '19'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_19.csv
                      - file_name: sub-est2025_20.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 345K
                        state: '20'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_20.csv
                      - file_name: sub-est2025_21.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 107K
                        state: '21'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_21.csv
                      - file_name: sub-est2025_22.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 68K
                        state: '22'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_22.csv
                      - file_name: sub-est2025_23.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 53K
                        state: '23'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_23.csv
                      - file_name: sub-est2025_24.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 34K
                        state: '24'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_24.csv
                      - file_name: sub-est2025_25.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 55K
                        state: '25'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_25.csv
                      - file_name: sub-est2025_26.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 340K
                        state: '26'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_26.csv
                      - file_name: sub-est2025_27.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 474K
                        state: '27'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_27.csv
                      - file_name: sub-est2025_28.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 72K
                        state: '28'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_28.csv
                      - file_name: sub-est2025_29.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 243K
                        state: '29'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_29.csv
                      - file_name: sub-est2025_30.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 33K
                        state: '30'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_30.csv
                      - file_name: sub-est2025_31.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 167K
                        state: '31'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_31.csv
                      - file_name: sub-est2025_32.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 6.3K
                        state: '32'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_32.csv
                      - file_name: sub-est2025_33.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 30K
                        state: '33'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_33.csv
                      - file_name: sub-est2025_34.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 154K
                        state: '34'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_34.csv
                      - file_name: sub-est2025_35.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 26K
                        state: '35'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_35.csv
                      - file_name: sub-est2025_36.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 315K
                        state: '36'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_36.csv
                      - file_name: sub-est2025_37.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 131K
                        state: '37'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_37.csv
                      - file_name: sub-est2025_38.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 244K
                        state: '38'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_38.csv
                      - file_name: sub-est2025_39.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 494K
                        state: '39'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_39.csv
                      - file_name: sub-est2025_40.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 119K
                        state: '40'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_40.csv
                      - file_name: sub-est2025_41.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 50K
                        state: '41'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_41.csv
                      - file_name: sub-est2025_42.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 550K
                        state: '42'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_42.csv
                      - file_name: sub-est2025_44.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 7.5K
                        state: '44'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_44.csv
                      - file_name: sub-est2025_45.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 64K
                        state: '45'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_45.csv
                      - file_name: sub-est2025_46.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 198K
                        state: '46'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_46.csv
                      - file_name: sub-est2025_47.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 86K
                        state: '47'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_47.csv
                      - file_name: sub-est2025_48.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 274K
                        state: '48'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_48.csv
                      - file_name: sub-est2025_49.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 49K
                        state: '49'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_49.csv
                      - file_name: sub-est2025_50.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 38K
                        state: '50'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_50.csv
                      - file_name: sub-est2025_51.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 63K
                        state: '51'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_51.csv
                      - file_name: sub-est2025_53.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 61K
                        state: '53'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_53.csv
                      - file_name: sub-est2025_54.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 55K
                        state: '54'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_54.csv
                      - file_name: sub-est2025_55.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 358K
                        state: '55'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_55.csv
                      - file_name: sub-est2025_56.csv
                        listing_modified: 2026-05-14 08:45
                        listing_size: 21K
                        state: '56'
                        url: >-
                          https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/cities/totals/sub-est2025_56.csv
                    vintage: 2025
                    vintage_directory: 2020-2025
                    vintage_url: >-
                      https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/
                    vintages_available:
                      - 2020-2021
                      - 2020-2022
                      - 2020-2023
                      - 2020-2024
                      - 2020-2025
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Cheap version check of the Population Estimates Program (PEP) file
            tree on www2.census.gov: newest 2020-YYYY vintage directory, then
            HEAD of counties/totals/co-est<YYYY>-alldata.csv and
            cities/totals/sub-est<YYYY>.csv (size, Last-Modified, publication_id
            = v<YYYY>:<file>:<Last-Modified>), plus the per-state sub-county
            files from the cities/totals listing. No publisher hash exists;
            popest_list reports the SHA-256 of the file it reads.


            The response contains the tool result directly.


            | Documented field | Provider type | Description |

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

            | `files` | object[] |  |

            | `observed_at_ms` | number |  |

            | `retrieved_at` | string |  |

            | `source_url` | string |  |

            | `subcounty_state_files` | object[] | Per-state sub-county files
            (sub-est<YYYY>_<n>.csv) from the cities/totals listing, ascending by
            state FIPS. |

            | `vintage` | number | Newest vintage YYYY (the 2020-YYYY
            directory). |

            | `vintage_directory` | string |  |

            | `vintage_url` | string |  |

            | `vintages_available` | string[] | Every 2020-YYYY directory in the
            listing, ascending. |



            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.