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

# Variables

> List variables of one dataset vintage. Input: dataset path and vintage, plus a group (table id such as B01003 or DP05) and/or a free-text query matched against group descriptions and variable labels. Returns variable name, verbatim label, concept, predicate type, group and the unit phrase the label carries.

## Request contract

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

[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.variables",
  "method": "POST",
  "path": "/apis/v1/census-gov/census/variables",
  "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": {
              "dataset": "acs/acs5",
              "group": "B01003",
              "vintage": 2023
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "allOf": [
            {
              "anyOf": [
                {
                  "properties": {
                    "group": {}
                  },
                  "required": [
                    "group"
                  ]
                },
                {
                  "properties": {
                    "query": {}
                  },
                  "required": [
                    "query"
                  ]
                }
              ]
            }
          ],
          "properties": {
            "cursor": {
              "description": "cursor",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "dataset": {
              "description": "Data API dataset path, e.g. acs/acs5, acs/acs5/profile, dec/pl, cbp. Pattern: ^[A-Za-z0-9_/]+$.",
              "type": "string"
            },
            "group": {
              "description": "Table id, e.g. B01003, S0101, DP05, P1. Pattern: ^[A-Za-z0-9_]{1,40}$.",
              "type": "string"
            },
            "page_size": {
              "default": 20,
              "description": "page_size\n\nProvider reference: minimum 1; maximum 500; default 20.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 500,
                "min": 1
              }
            },
            "query": {
              "description": "Tokens matched against group name/description (when no group is given; the first 5 matching groups are listed) or variable name/label/concept (within a group). Datasets with at most 5 tables (cbp, pep/population) whose descriptions do not match are searched by variable label instead.",
              "type": "string"
            },
            "vintage": {
              "description": "vintage\n\nProvider reference: minimum 2000; maximum 2035.",
              "type": "number"
            }
          },
          "required": [
            "dataset",
            "vintage"
          ],
          "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/variables
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/variables:
    post:
      tags:
        - US Census Bureau
      summary: Variables
      description: >-
        List variables of one dataset vintage. Input: dataset path and vintage,
        plus a group (table id such as B01003 or DP05) and/or a free-text query
        matched against group descriptions and variable labels. Returns variable
        name, verbatim label, concept, predicate type, group and the unit phrase
        the label carries.
      operationId: census-gov.census.variables
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  dataset: acs/acs5
                  group: B01003
                  vintage: 2023
            schema:
              additionalProperties: true
              allOf:
                - anyOf:
                    - properties:
                        group: {}
                      required:
                        - group
                    - properties:
                        query: {}
                      required:
                        - query
              properties:
                cursor:
                  description: cursor
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                dataset:
                  description: >-
                    Data API dataset path, e.g. acs/acs5, acs/acs5/profile,
                    dec/pl, cbp. Pattern: ^[A-Za-z0-9_/]+$.
                  type: string
                group:
                  description: >-
                    Table id, e.g. B01003, S0101, DP05, P1. Pattern:
                    ^[A-Za-z0-9_]{1,40}$.
                  type: string
                page_size:
                  default: 20
                  description: |-
                    page_size

                    Provider reference: minimum 1; maximum 500; default 20.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 500
                    min: 1
                query:
                  description: >-
                    Tokens matched against group name/description (when no group
                    is given; the first 5 matching groups are listed) or
                    variable name/label/concept (within a group). Datasets with
                    at most 5 tables (cbp, pep/population) whose descriptions do
                    not match are searched by variable label instead.
                  type: string
                vintage:
                  description: |-
                    vintage

                    Provider reference: minimum 2000; maximum 2035.
                  type: number
              required:
                - dataset
                - vintage
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-09-11T00:00:00Z.
                  summary: Official provider example
                  value:
                    complete: true
                    count: 1
                    dataset: acs/acs5
                    group: B01003
                    next_cursor: null
                    observed_at_ms: 1789084800000
                    records:
                      - attributes: []
                        concept: Total Population
                        dataset: acs/acs5
                        group: B01003
                        label: Estimate!!Total
                        limit: 0
                        name: B01003_001E
                        predicate_only: true
                        predicate_type: int
                        scale: null
                        source_url: >-
                          https://api.census.gov/data/2023/acs/acs5/groups/B01003.json
                        unit: null
                        vintage: 2023
                    retrieved_at: '2026-09-11T00:00:00Z'
                    schema_version: 1.0.0
                    source_updated_at: null
                    source_url: >-
                      https://api.census.gov/data/2023/acs/acs5/groups/B01003.json
                    total: 6
                    vintage: 2023
                    warnings: []
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            List variables of one dataset vintage. Input: dataset path and
            vintage, plus a group (table id such as B01003 or DP05) and/or a
            free-text query matched against group descriptions and variable
            labels. Returns variable name, verbatim label, concept, predicate
            type, group and the unit phrase the label carries.


            The response contains the tool result directly.


            | Documented field | Provider type | Description |

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

            | `complete` | boolean | Whether this response fully satisfied the
            request (not whether all pages were consumed). false when a
            supplementary source (metadata, geography levels) failed or when
            results were truncated. |

            | `count` | number |  |

            | `dataset` | string |  |

            | `group` | string |  |

            | `next_cursor` | string | Opaque cursor for the next page; null at
            the end. Offsets strictly increase, so a cursor can never loop.
            Maximum depth 1,000,000 records. |

            | `observed_at_ms` | number |  |

            | `records` | object[] |  |

            | `retrieved_at` | string | RFC 3339 UTC time of this call. |

            | `schema_version` | string |  |

            | `source_updated_at` | string | Catalog `modified` timestamp of the
            dataset (published without a zone, labelled Z as given); null when
            the source does not publish one. |

            | `source_url` | string |  |

            | `total` | number |  |

            | `vintage` | number |  |

            | `warnings` | string[] |  |



            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.